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've used RackSRV for some time and have always been impressed with the level of service. They're always willing to go the extra mile - there always seems to be someone available to help us out, regardless of the time of day. I strongly recommend them to anyone looking for a reliable hosting provider!

    Iain - Piquant Technologies
  • I am really happy with the service overall and would suggest to any business which require co-location services. I would rate 4.5 out of 5 with the services.

    Balakrishnan - BTR India Pvt Ltd
  • I would highly recommend the services of RackSRV to anyone looking to rent a server overseas. Not only was the customer support and service great and enjoyable but it was also for an affordable price. Keep it up!

    William
  • Service is awesome, lovely bandwidth, nice tidy racks! Support is top notch; Jon is extremely efficient in fixing problems rapidly.

    Rohan - DediShack
  • Over the past 2 weeks we have been hit by every conceivable problem a hosted service might have - catastrophic hardware failure, DDoS attack and overwhelmingly high organic load - all at once. We have had to lean heavily on the guys at RackSRV to get us through. On every occasion, they responded calmly, professionally...

    Ian - Chalkface Project Ltd
  • RackSRV are a fantastic company to deal with. They tailor a server for you in no time at all, and had mine set up within 24 hours. After around a year with them I have had nothing but perfect customer service and brilliant prices. Cannot fault them at all. Thanks RackSRV!

    Duncan - Cypher Gaming
  • I have been with RackSRV since 2010, I came with a very specific requirement, i was never turned away rather the opposite i was looked after and helped getting everything up and running, 4yrs later its now time for a brand new server. The whole team made sure that everything was 100% perfect for my budget and requireme...

    Clifford - CMWebHosting
0