Home>Article>CMS Tutorial> What should I do if the WordPress PHP version is too low?
Solution to the wordpress PHP version that is too low: 1. Log in to the cPanel panel and select the PHP version that needs to be adjusted; 2. After installing the PHP version, select and replace the PHP version of the site.
The operating environment of this article: Windows 7 system, WordPress version 5.4.2, DELL G3 computer
What should I do if the wordpress php version is too low?
Methods and ideas to solve the problem that the PHP version of the WordPress program is too low
If we pay more attention to the new version of the WordPress program, we will see a prompt in the background of the website that there is a new WordPress program that needs to be upgraded. At that time, if our current WEB system PHP version is lower than version 5.6, we cannot click the button to directly upgrade online. Because starting from WordPress version 5.2, a minimum of PHP5.6 is required, and according to official information, PHP7.x may be required later.
In other words, if we are using the WordPress program and want to use the new version, you must be PHP5.6. If you do not upgrade, you will not be able to use the new version of WP. It is so arbitrary. So what should we do if our current WEB system does not support PHP5.6?
First, if we are a virtual host
If we are using a virtual host, such as a cPanel panel, most merchants support online adjustment of the PHP version. We need to log in to the cPanel panel, then select the current site in the PHP version settings, and then select the PHP version that needs to be adjusted. We need to check whether the current website theme and plug-ins support the set PHP version. Some netizens like to choose the highest PHP7.3, but some plug-ins or themes do not support it, so we will lower it appropriately.
Second, if we are a server
If we are a server, we need to see if our WEB suite supports the installation of multiple versions of PHP software. For example, we installed the Pagoda panel, or other WEB panels can install multiple versions of PHP. (Reference: Pagoda panel installation to switch between multiple PHP versions and different sites to set up different PHP environments) After installing the PHP version, select and replace the site with PHP.
Similarly we need to check whether the theme and plug-in are compatible. However, if we compile the WEB system ourselves, we need to adjust it manually. If we are not familiar with it, it is recommended to backup the data honestly and reformat it before installing the WEB system suite. Lao Jiang personally suggests that PHP can be installed to version 7.2 or directly upgraded to the latest version of PHP7.3, which is currently a stable version.
In summary, it is recommended that netizens upgrade to the latest version of WP because it involves security issues. Although I hate them to keep upgrading versions, what can I do?
Recommended: "WordPress Tutorial"
The above is the detailed content of What should I do if the WordPress PHP version is too low?. For more information, please follow other related articles on the PHP Chinese website!