


PHP versionĪddHandler application/x-httpd-alt-php44. Change the middle line to one of these according to the version you want to use. You can use this method for any PHP version you want to use. htaccess file: ĪddHandler application/x-httpd-alt-php54.
#LITESPEED WEB SERVER VERSION 5.3 REWRITE CODE#
In our example, we set the PHP 5.4 version in a single folder by adding this code in the. The file editor will then open where you can enter these instructions to set a specific PHP version. Just click on Settings at the top right of the cPanel and then check the item Show hidden files (dotfiles).Īfter creating it, you can edit the file by right-clicking on it and then on Edit. htaccess file is not visible, and to see hidden files you will need to modify the settings. Otherwise, you must edit the existing one. htaccess file inside the folder yet, you will need to create one first. You can do this from the cPanel file manager or by connecting via FTP. The first thing to do is to access the folder you are interested in. You might need it if you require to use a script that needs a different PHP versions. It is also possible to set different PHP versions by folder. Change the PHP version for a folder using. If you have created a site staging environment on a subdomain or have a multidomain account, you can choose to set up different PHP versions with a tool in cPanel. Then from the drop-down menu beside the PHP version, select the version and click the Apply button. Select the subdomain, as in our example, (or the domain) for which you want to change the PHP version by checking the box next to it: After opening it, you will find yourself in front of the list of domains associated with your account.
#LITESPEED WEB SERVER VERSION 5.3 REWRITE SOFTWARE#
The MultiPHP Manager tool is located in the Software section of the cPanel. In fact, from the MultiPHP Manager, you can set a different PHP version for each domain (or subdomain). In the next screen, click on the drop-down menu next to the Current PHP version and choose the version you want.Īfter that, you will need to click on Set as current.įrom the PHP Selector, by clicking on the Extensions tab, you can also manage the extensions to activate or deactivate the different available PHP modules.įrom the Options tab, on the other hand, you can access several parameters that can be managed, for example, by changing the memory limit or setting a maximum limit for the uploaded files. From here, you will have to click on Select PHP Version, as you see indicated in this screen: To change the PHP version, you need to access the cPanel and scroll down to the Software section. On the next page, along with other server information, such as the Kernel version or your IP address, you will also see the PHP version. We will look at these three methods, but first, let’s see where to find information about the current PHP version.Īfter logging in to cPanel, click on Server Info from the right-side panel on the cPanel main page to check the current PHP version, where it says Server information.

Let’s see how you can change the PHP version from cPanel with a few simple steps.įrom cPanel, it is possible to change the PHP version by setting one version for the whole site, or you can also set a different version for each folder or subdomain.
