How to change PHP version for subfolders or subdomains?

 

In case you'd like to change the PHP version for a specific subdomain or subfolder, all you need to do is:

 Open your .htaccess file

First, access your File Manager:

Then, access the folder to which you would like to apply a different PHP version. If you want to edit a subdomain, access its folder. In this folder, open the .htaccess file by double-clicking on it.

 

If the file doesn't exist, you can create it directly in the File Manager. Make sure to include a dot (.) at the beginning of the filename!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to switch php version

  How to switch php version in cpanel To change the PHP version used for your account, follow...

Fast CGI for PHP

FastCGI for PHP makes all your PHP applications persistent. There is no pre-request startup and...

How To Increase The PHP Memory Limit

Generating a new php.ini file Using the File ManagerLocate the Files section Click the File...

Differences between PHP memory limit and RAM

PHP memory limit setting applies to the maximum memory limit which is used by a single...

How can I modify the PHP time zone setting for my website?

Open Hosting → Manage → PHP Configuration page. There, open the PHP options tab and edit the...