How do I update PHP on my WordPress site?

How do I update PHP to 7.4 in WordPress?


  1. Login to your hosting cPanel.
  2. Search for PHP version on the top field.
  3. Click on Select PHP version.
  4. Click on the drop-down next to the current PHP version and select the latest one (at the time of writing, 7.4 is the latest one)
  5. Click set as current.


Do I need to update PHP WordPress?

PHP, like WordPress, is maintained by its community. Because PHP is so popular, it is a target for hackers – but the latest version will have the latest security features. Older versions of PHP do not have this, so updating is essential to keep your WordPress site secure.

What PHP version is my WordPress site running?

Step 1: Access your web hosting account and go to cPanel. Step 2: Here, you should find a section called Software. You’ll see ‘Select PHP Version’. Step 3: Upon clicking that, you’ll be redirected to a new page where you can view what PHP version your WordPress site is running on.

IT IS INTERESTING:  How do I add a select option in WooCommerce?

How do I upgrade PHP?

Upgrading PHP with cPanel

If you’re with a host that provides cPanel access to your site, you can simply log in to cPanel and change your version of PHP there. All you need to do it scroll down to the Software section and choose “Select PHP Version.”

Which PHP version is best for WordPress 2020?

WordPress themselves recommend running PHP 7.3 as a minimum and also state: “Note: WordPress also works in legacy environments with PHP 5.6. 20+ and MySQL 5.0+.

Will updating PHP break my site?

There are very little chances of a PHP update breaking your WordPress site. However, with the abundance of free and paid plugins, a single line of poor code can result into an error.

How do I check my PHP version?

If you have PHP installed locally, you can use the Command Prompt or Terminal to check the version.

Fix the version not appearing in Windows.

  1. Find the location of your php.exe file. …
  2. Type set PATH=%PATH%;C:phpphp.exe and press ↵ Enter . …
  3. Run php -v again.

What is the latest PHP version?

W3Techs reports that, as of April 2021, “PHP is used by 79.2% of all the websites whose server-side programming language we know.”


Designed by Rasmus Lerdorf
Developer The PHP Development Team, Zend Technologies
First appeared 1995
Stable release 8.0.8 / 1 July 2021
Major implementations

How do I downgrade my PHP version in WordPress?


  1. Downgrade your WordPress site manually.
  2. Use WP Downgrade to run a previous version of WordPress.
  3. Restore a previous backup to undo changes to your site.
  4. Manually downgrade a plugin or theme.
  5. Rollback plugin and theme updates with WP Rollback.
  6. Revert to an older version of PHP.
IT IS INTERESTING:  How do I show form in WordPress?


How do you fix WordPress has detected that your site is running on an insecure version of PHP?

Here are the steps we follow with our clients:

  1. Make sure you have access to your hosting panel (Cpanel) and your WordPress website.
  2. Do a full backup of your Database and Website files.
  3. Make sure your plugins & themes are fully up to date. …
  4. Confirm the plugins & themes have updated.


What is the latest version of WordPress?

The latest WordPress version is 5.6 “Simone” which came out on December 8th, 2020. Other recent versions include: WordPress 5.5.

How long does it take to update PHP?

Updating your package can take 2 to 4 hours and may cause downtime on your website.

How do I install the latest version of PHP?

Install PHP

  1. Step 1: Download the PHP files. Get the latest PHP 8 x64 Thread Safe ZIP package from
  2. Step 2: Extract the files. …
  3. Step 3: Configure php. …
  4. Step 4: Add C:php to the PATH environment variable. …
  5. Step 5: Configure PHP as an Apache module. …
  6. Step 6: Test a PHP file.


Best WordPress Themes