Changing or updating your version of PHP for WordPress

It’s a good idea to change or update the version of PHP if you want to keep your website running smoothly. First of all we will figure out the reason why we need to upgrade and how to upgrade our server to PHP 7.

Why we should upgrade WordPress to PHP 7q1

If you are running a WP site on your server, you may installed PHP already. So why we need to upgrade when everything seems to be fine. There are some popular reasons for this questions:

  • The plugins and scripts you have set up are no longer adaptable with the version you are using
  • The minimum requirements to run WordPress have been increased.
  • There are security holes in your using version and the upgrade includes a patch.
  • You need to change to a stable version
  • You expect to test a different version on a local installation of WordPress
  • There are conflict between the version you are using and the plugins, themes or scripts that you have installed

These are valid reasons, but before you update PHP, you should care about and plan for upgrading drawbacks.

Possible side effects include …

The main thing you should focus on before upgrading is that not all your plugins, themes and scripts are not necessary to adaptable all with the latest version of PHP you want to use. If the issue exists, your site could be broken partly or completely.

There are some variation of improvements and possible fixes, security issue and structures to code in each version of PHP. Some updates are less inclusive than others while many versions contain changes and improvements that make certain parts of older versions no longer in use.

In some cases, you will not receive any supports for versions like PHP 4 and older. If you use plugins, themes or scripts that rely on outdated PHP code and you upgrade to newer version of PHP, the changes from the upgrade would make your old code to be unadaptable and then break. It does not happen regularly, but it’s important to review the changes you hope to see in the version of PHP that you want to use before you finish the upgrade. There is some plugins available for doing a scan of your site automatically and determine whether your site would be adaptable when you update.

Checking PHP Compatibility

You may look for some plugins that apply your quest for PHP compatibility and here are some options for you:

  • PHP compatibility checker: this plugin allows you choose a version of PHP and your site will be scanned for compatibility issues. It has a report as well so you know what need to be fixed.
  • PHP Pseudo Compiler: it can help you check for undefined functions or methods
  • Error Log Monitor: you can enable a log to keep track of all errors to help you know what needs fixing if there are errors.

If you find out that a plugin, theme or script you are using isn’t compatible with your expected version of PHP, you can contact with author or developer to help resolve the issue.

Changing your php version

When you tested your WordPress site completely for compatibility, you can change the version of PHP you are using via SSH or cPanel. If it doesn’t meet your need, you can contact your hosting provider for updating or arrangements.

Upgrade or switch via SSH

When the SSH demands for upgrading or installing other versions of PHP are different relies on the type of server have not one set of commands can be applied widely. You should remember that if you want to use the commands provided in these links, you need to remove the outdated PHP package from your server that no longer need.  You can visit for detail information on how to change the version of PHP for web requests.

Updating or changing PHP in cPanel.

If you want to pick the PHP version for your server with a few clicks, you can do so by blogging into your cPanel account. It seems to be impossible with all types of hosting but if you see a PHP version manager button in control panel, you can make the switch whenever you are ready. It may be in different positions depending on your host but you need to click PHP version manager and navigate directly to position where your site is located that you need to upgrade too. Choose one of PHP version from the list that meet your need then click Save buttonq2

That’s everything you need to do. If you are success, you will receive a message noticing that your upgrade was successful.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s