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 a customer with RackSRV for many years. They are very responsive to queries and are always willing to help us. Even when it involves after hours service! Solids servers and solid support.

    Adrian
  • I've been with racksrv for only a week, but so far any tickets raised have been answered in under 10 minutes. If this is the customer service I am to expect from RackSRV, I do hope if a serious problem arises it will be resolved in the same manner. I'll definitely write another review in a years time. Thank you RackSRV...

    Sammy
  • Well so far and 3 months in I only have praise for the team at RackSRV. After being let down over the years with empty promises, poor service, failing hardware, I moved to RackSRV to host all our business sites and personal busy forums. To date 3 months on, reliability has been 100%, performance better than I expect...

    Paul - Navigate IT
  • We have been using several of RackSRV services for over a decade now and we have always been incredibly impressed with the quality of service that they provide. We have used their rackspace service for over 4 years and I cannot remember the last time that there was an outage (I know that our uptime for the previous ...

    Alex - Callout Computers UK Ltd
  • My community (Aprilon Network) and I have wanted to try out a dedicated server to host gameservers on. This has turned out to be a success, your dedicated server and network is excellent! We've had significant traffic to our Team Fortress 2 servers (along with exclusive events that were a success), that it has ...

    Karl Juan
  • Having been with Racksrv for a year I can highly recommend there services and dedicated servers. Support are always very helpful and reply (Even at stupid o'clock in the morning!) And always went out of their way to assist us. The network and infrastructure is fantastic and we experienced no downtime at all du...

    James
  • 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
0