Join Our Affiliate Network & Earn Up To $125 Per Sale! Earn Thousands!

Screenshot 2022 02 06 221007

How to Set the PHP Version per Folder?

istockphoto 1204400218 170667a

Reading Time: 2 minutes Do you have a single domain or wish to use  different PHP version per folder? Do you have an installed PHP 5.x software in a folder/blog and want to use a PHP 7.x instead? If so, you can do this using cPanel and the .htaccess file. 1. Log into your cPanel account.2. In the “Software” section, click on the “MultiPHP Manager” icon. 3. Assume that we are new to this and the first thing we will need to do is to get the code generated by cPanel. 4. Scroll down to the end of page, select your domain from the left side and you will see the option “PHP Version” with a drop-down list on the right side. Select the appropriate PHP version from the drop-down menu and click the Apply button. 5. Now open the /public_html/.htaccess file in the cPanel File Manager or in your FTP client and you will find the code generated by cPanel. 6. After you copy the code, you will wish to set the PHP version to version 7 in the folder/forum, which means you will need to create a .htaccess file in the folder /forum/ and paste the code which was generated in the previous step in it. 7. Congratulations, now your folder/forum uses PHP 7, and if you wish to set any other folder to use the same version of PHP as well, you will only need to copy the code from the .htaccess file and paste it into that folder. Reset your PHP version from your main domain. If you wish to use a different PHP version on any folder, you will need to follow steps 5 and 6, generate the code, copy that code from /public_html/.htaccess and paste it into any folder where you wish to set your selected PHP version.

Setting PHP Version per Domain in cPanel?

cheap blog hosting platforms 1300x620 1

Reading Time: 2 minutes Do you have multiple domains and you wish to set the PHP version per domain? For example, you have the domains Example1 and Example2 and you want to set PHP7 on Example2 domain and PHP 5.6 on Example1. You will need to do this from the cPanel. 1. Log into your cPanel account.2. In the “Software” section, click on the “MultiPHP Manager” Icon. 3. Scroll down to the end of page, select your domain from the left side and you will see the option “PHP Version” with a drop-down list on the right side. Select the appropriate PHP version from the drop-down menu and then click on Apply. 4. Now that you want to set PHP 5.6 on Example2, scroll down and select the example2 domain. Then set the PHP version to 5.6. Congratulations, both of your domains use different different PHP versions now.

Resetting PHP Version to Default in cPanel?

cloud storage background remixed from public domain by nasa

Reading Time: < 1 minute If you wish to reset the PHP version to the default version, follow these instructions: 1. Log into your cPanel account.2. In the “Software” section, click on the “MultiPHP Manager” Icon. 3. Scroll down to the end of the page, select your domain from the left side and you will see the option “PHP Version” with a drop-down on the right side. Select the “inherit” option from the drop-down menu and click the Apply button. If will take a few seconds, after which your PHP version will reset to the default version.

Changing PHP Version in cPanel for Your Domain?

hosting

Reading Time: < 1 minute Some software requires older version of PHP like 5.6 while other asks for PHP7. If it happens you need either of the versions, you can switch to it from cPanel. 1. Log into your cPanel account.2. In the “Software” section, click on the “MultiPHP Manager” Icon. 3. Scroll down to the bottom of the page, select your domain from the left side of the screen and you will see an option “PHP Version” with a drop-down menu on the right side. Select the appropriate PHP version from it and click the Apply button. If will take a few seconds and then your PHP version will change to your selected version.