By todderik
I have two droplets running ubuntu and apache, both with wordpress installed. One is a production site and one is a staging site. I have both droplets updated with php7.4 (shows php7.4 when I run “php -v”). However, only the staging site wordpress updated to use php7.4. The production site wordpress is still using php7.2. I did not do anything differently on the two when installing or trying to update. Is there a way to “force” wordpress to use a specific PHP version? Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there @todderik,
Depending on whether you are using Nginx or Apache, you would need to update your virtual host config for your website and change the location to the PHP FPM socket so that it matches the PHP version that you are using.
Note that you need to make sure that the PHP FPM service for the new PHP version is running, then update the config, and finally restart Nginx or Apache.
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.