Divi: the easiest WordPress theme to use
Are you looking for the best WordPress themes and plugins?
Download the best plugins and WordPress themes on Envato and easily create your website. Already more than 49.720.000 downloads. [EXCLUSIVE]
If you want your blog, your website or your Online Store is working normally, it would be ideal to consider modifying or updating the PHP version that you use on your website. The new version of PHP (PHP7) is not yet widespread enough, but it will not be long, because it brings a lot of novelties and it is very likely that it is required for the installation or use of the next version of WordPress.
This article assumes that you have already created a website or a WordPress blog. Otherwise, see this detailed guide.
But if you have already done so let's continue.
Why should you upgrade to PHP 7?
If you use WordPress on your server, you obviously have PHP already installed. So, why upgrade when everything seems to work so well?
Here are some of the most common reasons why you should consider upgrading your version of PHP:
- The plugins and the scripts that you have installed are no longer compatible with the version you are using
- The minimum requirements to run WordPress have increased
- The version you are using has security flaws and the upgrade includes a patch
- You need to migrate towards a more stable version
- You want to test a different version on a WordPress installation or on a test environment
- You have found conflicts between the version you are using and the plugins, themes, or scripts that you have installed
Have you ever thought about protecting your blog or website? here is Some tips for securing your WordPress blog
These are all valid reasons, but before you go ahead and update your version of PHP, there are disadvantages to the upgrade that you should consider ...
Some important disadvantages to consider ...
Switching to a newer version of PHP has some risks. Here is a premium WordPress plugin that will back up your website entirely and restore it in case of failure.
The main thing you need to keep in mind before doing the upgrade is that all your plugins, themes and scripts are not necessarily compatible with the latest version of PHP you want to use.
In case of incompatibility, it is likely that your website is no longer usable or you see many bugs. Besides, WordPress now tells you if a plugin is compatible with your version of PHP or not.
Each version of PHP offers new variations, improvements and corrections, security patches and code structure. While some updates are less complete than others, many versions offer improvements or modifications that make some parts of older versions obsolete.
Divi: The best WordPress theme of all time!
With over 600.000 downloads, Divi is the most popular WordPress theme in the world. It is complete, easy to use and comes with more than 62 free templates. [Recommended]
Discover too Some WordPress security plugins for your blog
In some cases, whole versions such as PHP 4 and above are no longer supported. If you use plugins, themes, or scripts on your website that depend on outdated PHP code and upgrade to a newer version of PHP, this upgrade will make the code obsolete and thus break the operation. of your blog.
Although it is not DO NOT always the case, it is important to realize that the changes you bring will have consequences. In this way, you can consider the different compatibility issues. But if you need a premium WordPress theme that will always be up to date check out the following list according to your niche.
In addition to manually checking your website to discover the possible weak points, there are many plugins that will let you know whether or not your environment is compatible with the upgrade. The good news is actually being able to downgrade the previously activated version. In other words, if you notice any bugs, it is still possible to restore the previous version of PHP ... so to go for example version 5.5 version 7.x and if everything does not work well, you can go back to the 5.5 version.
Check PHP compatibility
Here are some plugins that you can use to check the compatibility of your environment with an updated version of PHP:
- Compatibility Checker PHP - This plugin allows you to define a version of PHP and make an analysis compared to the current version of PHP of your host. It also creates a report, to tell you what to fix.
- Error Log Monitor - If there are errors, you can activate a log to keep track of all errors, which will help you to fix them more easily.
You can also activate manually un journal vehicule of error using " WP_DEBUG ". You can also see what has changed for each version of PHP before the upgrade:
- Migrating from PHP 4 to PHP 5.0.x
- Migrating from PHP 5.0.x to PHP 5.1.x
- Migrating from PHP 5.1.x to PHP 5.2.x
- Migrating from PHP 5.2.x to PHP 5.3.x
- Migrating from PHP 5.3.x to PHP 5.4.x
- Migration from 5.4.x PHP for PHP 5.5.x
- Migration from 5.5.x PHP for PHP 5.6.x
- Migration from 5.6.x PHP for PHP 7.0.x
- Migration from 7.0.x PHP for PHP 7.1.x
- Migration to the latest version of PHP
If you find that you are using a plugin, theme or script that is not compatible with the version of PHP you want to use, you can contact the author or developer to help you solve the problem. If you need a hand, you can leave a comment in this article, I will be happy to provide you with answers.
How to change the PHP version
So, once your blog has passed the compatibility test, you can change the version of PHP you are using via SSH or cPanel. If this is not an option to which you have access, contact your web host. In most cases, they can update for you or perform other tasks.
Easily create your Online Store
Download free WooCommerce, the best e-commerce plugins to sell your physical and digital products on WordPress. [FREE]
Upgrade via SSH (advanced users)
Since the SSH commands for upgrading or installing other versions of PHP are different depending on the type of server, then there are no universal commands that work everywhere.
Protect your blog or website by consulting our tutorial: Sucuri: An effective tool to protect against attacks on WordPress
Click one of the resources below to view details based on your server type:
Keep in mind that if you use the commands provided in these links, you must also remove the old PHP package from your server. Because the commands to delete old versions will also vary depending on your type of server, check your server documentation for exact commands.
PHP update or modification in the cPanel
If you prefer to choose In a few clicks a version of PHP for your server, you can do this by logging into your cPanel account. However, this option is only available in default cPanel versions. If this is not the case at home, you will need to contact your web hosting provider for this.
I will show you how to access it from your cPanel. Once you are logged in, go to the "Software" section and then click on "MultiPHP Manager".
Clicking on it will take you to PHP versioning for the different domains & subdomains available. All you have to do is choose the right version of PHP and apply it to the domain of your choice.
The procedure to follow can be done in 3 simple steps like on the following image:
You will notice that the interface will be similar to the one offered by the WHM (if you have a dedicated server).
How to edit from the WHM
If you have a server, you probably have a WHM installation, which allows you to manage your server. From the WHM, you can also change the version by default PHP on your cPanel. Just access MultiPHP Manager and change the version of PHP you want to use on each domain.
The version backup is done automatically when you change version.
To go further, we will recommend some articles that will help you understand how having an updated php version is important.
- Initiation to understanding php errors on WordPress
- How to Fix Pluggable.php Files on WordPress
- What can you do with the functions.php file?
That's about all you can do to update your version of PHP. If you have any questions, feel free to leave them in the comment section. You can also discover additional resources by going to this page.
And if you liked this article, share it on your different social networks.