One way to find your account PHP settings is to upload a PHP info script. This works on any account that supports PHP.
Viewing this page will show you what version of PHP you are running, as well as all of the installed PHP modules and their settings.
ChemiCloud uses CloudLinux as the OS on our servers to improve server stability. A major feature of CloudLinux is that each cPanel account can select the global PHP version they want to have for their websites.
Need to set a different PHP version for an Addon Domain instead?
If you want to set a different PHP version for on of your Addon domains, you can easily do so using a .htaccess handler as described in this guide.
You can easily change the PHP version on your account by following these steps:
How to change PHP version in cPanel
PHP 8.1 is now available at ChemiCloud for all environments.
1. Log in to your cPanel account.
2. Navigate to the Software section and click on Select PHP Version.
cPanel > Software > Select PHP Version
3. Click on the PHP Version drop-down box and select your preferred PHP version
PHP Selector – PHP Version
4. Click on Set as current button to save your PHP version change.
It is important that you know which PHP version you need for your web applications, in order to avoid any unwanted mishaps. In case you see any error on your website once you’ve changed the PHP version, please revert back to the previous PHP version which your site was using.
We hope this short article has been helpful and remember: never stop learning and as a result, you will develop your skills in no time!
Last modified: July 8, 2022
Websites frequently use the PHP scripting language for applications and content. EasyApache allows you to easily install and modify PHP for your server.
When you install cPanel & WHM, the installation process automatically installs PHP with some common PHP options.
For more information about PHP, read the PHP website.
How Apache handles PHP
By default, cPanel & WHM configures your Apache web server to use the CGI PHP handler to handle requests that it receives for PHP content.
The PHP handler that you select affects the speed and security of your web server. For more information about PHP handlers, read our PHP Handlers documentation.
The cPanel default profile includes PHP versions 7.4 and PHP 8.
EasyApache 4 supports PHP versions 5.4 through 5.6, PHP versions 7.0 through 7.4, and PHP 8.0 through 8.1.
EasyApache 4 adheres to the php.net supported versions timeline. The profiles that we supply in WHM’s EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4) only provide PHP versions that php.net currently supports.
Packages for unsupported versions of PHP will remain on the cPanel L.L.C. mirrors and servers, but we will not provide any further updates.
When the PHP development team makes a new version of PHP available, we test and then make the new version available in EasyApache.
Minor version number changes do not impact functionality, but major updates may require changes to your configuration. In many cases, the EasyApache software will make the necessary adjustments automatically. Custom configurations may require further manual adjustments.
For more information on PHP versions and extensions available in EasyApache 4, read our PHP Options documentation.
EasyApache 4 supports multiple versions of PHP.
To change your server’s default version of PHP or a virtual host’s version of PHP, use WHM’s MultiPHP Manager interface (WHM >> Home >> Software >> MultiPHP Manager).
If the version of PHP that you wish to use does not exist on your server, you can install it with the EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4). To install your PHP version with yum, read our How to Locate and Install a PHP Version or Extension documentation.
Vendor-provided PHP versions
In cPanel & WHM version 66 and later, EasyApache 4 allows you to use PHP versions that cPanel, L.L.C. does not provide. These PHP versions must
be a Software Collection Library (SCL) package and cannot start with the
Some potential issues exist in vendor-provided versions of PHP.
Vendor-provided php.ini does not exist
In some cases, a vendor-provided PHP version’s
To create the
symlink, use the following command, where
If you installed the PHP version before you created the symlink, you must reinstall the PHP version with the following command, where
PHP CLI and PHP CGI binaries in different locations
Some PHP versions include the PHP CLI and PHP CLI binaries in different locations than cPanel & WHM’s implementation. In these cases, the PHP installation reverses the location of these binaries. If your PHP version does this, then the following issues may occur:
To fix this issue, use
the following commands, where
You can use several methods to modify your PHP configuration. For more information, read the following documentation:
To more easily allow you to call the PHP binaries directly, we provide the following symlinks for each version of PHP installed on your system:
To more easily allow you to install PECL and PEAR extensions, we provide the following symlinks:
Adjust configuration files
To further customize your PHP configuration, you can edit your
To ensure that your PHP version stays up to date, use one of the following options:
For more information about PHP security, read the following documentation:
How do I see my PHP version?
1. Type the following command, replacing [location] with the path to your PHP installation. 2. Typing php -v now shows the PHP version installed on your Windows system.
What is PHP version in cPanel?
The cPanel default profile includes PHP versions 7.4 and PHP 8. EasyApache 4 supports PHP versions 5.4 through 5.6, PHP versions 7.0 through 7.4, and PHP 8.0 through 8.1.
How do I update PHP version in cPanel?
Log into cPanel..
In the Software section, click the PHP Selector icon..
Navigate to the directory of the website you wish to upgrade the PHP. The document root for the primary site on your account is the public_html folder..
Select the version of PHP you want to use from the dropdown menu, then click upgrade..