How to use the cPanel MultiPHP Manager to change PHP Version
The latest version of cPanel now includes the cPanel MultiPHP Manager. The ability to change the php version your website uses from your cPanel interface. In the past to achieve this you had to use a 3rd party addon. It was developed by a company called 1h software. This, unfortunately, didn’t work correctly with the new paper_lantern theme. By default, and if we installed cPanel for you will have three PHP versions to offer
PHP 5.6, 7.0, 7.2,7.4
You can add more PHP versions by using Easy Apache 4 but to change to an already installed PHP version. Login to the cPanel account of the domain you want to use a different PHP version and click “MultiPHP Manager”

From this page, tick the domain name you want to modify the PHP version for. If you have add-on domain names these will also be listed here. Once you have selected the domain name. On the right-hand side, you will now notice a drop-down box. You can choose the PHP version for the domain in question and click apply.
CloudLinux NVMe Web Hosting

After you have clicked apply cPanel will then add a line to the domain in questions .htaccess file redirecting the server to use the requested PHP version. It’s not yet possible to specify the PHP version on a per folder basis automatically using your cPanel account but you can do this manually. If you want specific folders to use different PHP versions you can add a .htaccess file to each folder and specify the version of PHP required as below.
For PHP 7.1, add the below to your .htaccess file
<IfModule mime_module>
AddType application/x-httpd-ea-php71 .php .php7 .phtml
</IfModule>
To use 7.0, add the below to your .htaccess file
<IfModule mime_module>
AddType application/x-httpd-ea-php71 .php .php7 .phtml
</IfModule>
To use 5.6, add the below to your .htaccess file
<IfModule mime_module>
AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
How was this article?
You might also like
More from cPanel
How To Install A Cloudflare Origin SSL Certificate In cPanel
Free SSL Certificates from places like cPanel or Let's Encrypt are great. When Let's Encrypt first introduces free SSL Certificates …
Create a SWAP partition on CentOS, RHEL and AlmaLinux without a reboot
SWAP is a memory type that Linux NVMe VPS Servers use to process requests. Memory will be held in SWAP …
Help fixing Error: last request failed: [AUTH] Authentication failed.
The Error: last request failed: [AUTH] Authentication failed error can be caused by a range of things. It could be …