My wordpress displayed a warning to upgrade my php. I followed the instuctions from digital ocean and using the console I upgraded from 7.2 to 7.3. My wordpress site still gives me the warning to upgrade my PHP. I installed the plugin Display PHP version and it says- WordPress 5.3.2 running Divi theme. Running PHP version: 5.6.40. How do I correct this?
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!
Accepted Answer
Hi @michaelp92927f1eef1ba6d626,
Most probably you have multiple PHP versions on your droplet and your website is using it.
WHat I’ll recommend doing in order to confirm this is, SSH to your droplet
ssh root@DropletIp
Go to your website’s DocumentRoot
cd /path/to/website
create an info.php file there like so
touch info.php
As soon as you have created it add the following content
<?php phpinfo();
Save the file and load it in the browser, there you should be able to see the full php PATH of our application. Most probably you are using the default one located
/usr/bin/php
You’ll need to change it to use the newest PHP version you have installed by chaning the path in your vhost configuration file.
Regards, KDSys
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.