Question

Updation of PHP

  • Posted on November 15, 2022
  • PHP
  • krAnemoneAsked by kr

Dear Hosting Provider,

I would like to verify if my hosting account is running PHP 7.4 or newer, and if I’m also running the latest version of WordPress. If I am not already on the latest version of PHP or WP, please let me know what steps I need to take to update.

Thanks!


Submit an answer
Answer a question...

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
November 15, 2022

Hi there,

Before making any major server upgrades, I would suggest taking a backup of your Droplet:

https://docs.digitalocean.com/products/images/backups/

That way if something goes wrong during the upgrade, you can revert to a working version.

After that you can check your PHP version by running the following command:

php -v

If you want to upgrade to a specific version, you could follow the steps from this answer here:

https://www.digitalocean.com/community/questions/how-to-upgrade-php-version-from-7-2-to-php-7-3-in-ubuntu-16-04

The example is with PHP 7.3 but will also work with newer versions.

For your WordPress version, you can check that directly via your WordPress admin dashboard at /wp-admin.

Hope that this helps!

Best,

Bobby