multiphp

How to Set the PHP Version per Directory in cPanel

Do you want to use different PHP versions per directory? You can do this using cPanel and the dot htaccess file. Log in to your cPanel account. In the Software section, click on MultiPHP Manager. The first thing we need to do is to get the code generated by cPanel. Scroll down to the bottom of the page. Select your domain from the left side of the screen. You can view the PHP Version from the drop-down menu on the right. Please, select the appropriate PHP version from it and click on Apply. First, open the /public_html/.htaccess file in the cPanel File Manager, and you will find the code generated by cPanel. After you copy the code, should you wish to set the PHP to version 8 in the directory forums, create a .htaccess file in the directory /forums/ and paste the code generated in the previous step. Congratulations, now

Related: cpanel, multiphp, php


August 28, 2023

How to Set the PHP Version per Domain in cPanel

Do you have multiple domains and want to set the PHP version per domain? You can set PHP 7.0 on the Example2 domain and PHP 8.1 on Example1. You can do this in cPanel. Log in to your cPanel account. In the Software section, click on MultiPHP Manager. Scroll down to the bottom of the page. Select your domain from the left side of the screen. You can view the PHP Version from the drop-down menu on the right. Please, select the appropriate PHP version from it and click on Apply. Now you want to set PHP 7.0 on Example2. Scroll down and select the example2 domain. Then set the PHP version to 7.0. Congratulations, both of your domains are now using different PHP versions.


August 28, 2023

How to Change the PHP Version on Your Domain in cPanel

Some software requires a different version of PHP. You can switch the PHP versions using cPanel. Log in to your cPanel account. In the Software section, click on MultiPHP Manager. Scroll down to the bottom of the page. Select your domain from the left side of the screen. You can view the PHP Version from the drop-down menu on the right. Please, select the appropriate PHP version from it and click on Apply. Changing the PHP version to your selected version takes a few seconds.


August 28, 2023

How to Reset the PHP Version to the Default Version in cPanel

If you want to reset the PHP version to the default version, follow these instructions: Log in to your cPanel account. In the Software section, click on MultiPHP Manager. Scroll down to the bottom of the page. Select your domain from the left side of the screen. You can view the PHP Version from the drop-down menu on the right. Please, select the appropriate PHP version from it and click on Apply. It will take a few seconds, after which your PHP version will reset to the default version.


July 5, 2023