• +91 8249083497
  • Cart
  • SIGN IN
Newsys
  • Hosting
    • SSD Shared Hosting
    • SSD Budget Hosting
    • Reseller Hosting
  • Domains
    • Register a Domain
    • Transfer your Domain
    • Free with Every Domain
    • View Domain Pricing
  • Security
    • SSL Certificates
  • Support
    • Support Center
    • Contact Us
    • Knowledge Base
    • Announcements
    • Uptime Checker
    • Tools
      • IP Address Information
      • Verify SSL Certificate
  • Company
    • About us
    • Newsys Blog
    • Customer Review

How to Set the PHP Version per Folder?

/cPanel - Control Panel /How to Set the PHP Version per Folder?
  • 11/02/2017
  • Support Team
  • cPanel - Control Panel

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.

budget-hosting
Related Articles
  • How to use Git in your cpanel

  • How to Access cPanel Web Disk?

  • How to Create an Additional Web Disk Account in cPanel?

  • How to edit or remove a Record in cPanel using the DNS Zone Editor?

  • How to edit or remove CNAME Record in cPanel using the DNS Zone Editor?

  • How to add CNAME Record in cPanel using the DNS Zone Editor?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest help articles

  • How to use Git in your cpanel
  • How to Install Unclassified NewsBoard via Softaculous in cPanel?
  • How to Install TangoBB Forum via Softaculous in cPanel?
  • How to Change the Display Name of a WordPress User Account?
  • How to Change the Password of a WordPress Account?
  • How to Forcefully Update a Plugin in WordPress?
  • How to Deactivate and Delete a Plugin in WordPress?
  • How to Manually Install a Plugin in WordPress?
  • How to Install a Plugin in WordPress?
  • How to Install Pimcore via Softaculous in cPanel?

ABOUT US

  • About Us
  • Affiliate Programme
  • Offers & Discounts
  • How to Pay
  • Legal Documents

OUR PRODUCTS

  • SSD Shared Hosting
  • SSD Budget Hosting
  • Linux Reseller Hosting
  • SSL Certificates
  • Domain Registration

SUPPORT

  • Submit Support Ticket
  • Update and Announcements
  • Knowledgebase Articles
  • Website Migration
  • External Uptime Checker

CONTACT US

We’re available by phone +91 8249083497 Monday – Saturday, 10 a.m.– 7 p.m. IST and by chat every day 24 X 7.

  • ADDRESS: ME-03, Khandagiri, Bhubaneswar, Odisha, India - 751030
  • CONTACT SALES: +91 8249083497
  • SALES EMAIL: sales[at]newsys.in

Copyright © 2013-19 Newsys. All Rights Reserved