Enter promo code HALFMANAGED at checkout for 50% off your first month’s bill on any managed service!
50% off managed hosting with code HALFMANAGED

Need help? We may have the answer for you already!

How to Set the PHP Version per Folder?

Do you have a single domain or wish to use different PHP versions 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 the page, select your domain from the left side, and see the PHP Version option. 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 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.

News @ RackSRV

Customer Feedback

  • We have been very satisfied with the quality of service, and especially the level of support given for an unmanaged server, Jon is always there to help out. Very professional and polite, will be considering this company again!

    Keith
  • I have used RackSRV for around two years now for colocation and the service has been fantastic. The network is incredibly fast and reliable, any planned maintenance has always been announced well before it is carried out. The level of customer service Jon and his team provide is also faultless and they are often exceed...

    Chris - The Hosting Heroes Ltd
  • Having been a user of remote servers from multiple hosts over many years (far more than I like to remember) I have left them all due to terrible customer after service once they had my custom. After leaving a major provider a few years ago I was pointed in the direction of racksrv. Racksrv are a different breed of ...

    Graham
  • I moved my hosting to RackSRV 10 years ago after a friend recommended them. In that time my support tickets have always been answered instantly, any issues I've had with my website have been sorted quickly and I don't remember any downtime. Excellent service, I can't recommend this company and team en...

    James - Talk Chelsea
  • Racksrv are definitely geared towards the professional user. Setup is fast and efficient. I got exactly the server that I wanted, with the distro of my choice ready to go. The real test of a provider though is how they deal with problems, and after I crashed my server recently (I misconfigured the NIC - oops!) they ...

    Ian - Richardson Digital
  • I have been a customer of RackSRV with three co-located servers for over 5 years now and cannot fault the reliability of the service or the commitment of Jon and his team when I have needed assistance. I would happily recommend RackSRV to anyone :)

    Ed
  • Racksrv are great, had a dedicated server with them since 2010. Really great service from Jon and the team, virtually no issues and when issues have occurred outside racksrv's control customers are kept really up to date with a level of openness I have not seen in any other host - keep up the good work.

    Alex - Pulse Tech Uk Ltd
0