cancel
Showing results for 
Search instead for 
Did you mean: 
New

PHP 5.3 for directory with htaccess in Ultimate Linux Hosting with cPanel

Hi,

 

I would like to change one of a subdirectory php version to 5.3 on my site, but keep the default to the others. How can I make this happen with htaccess.

3 REPLIES 3
Highlighted
Helper II

Re: PHP 5.3 for directory with htaccess in Ultimate Linux Hosting with cPanel

I don't think you can run 2 php processes at the same time.... try upgrading the apps should work .. if not you could tweak the php script to adapt to the newer php

Re: PHP 5.3 for directory with htaccess in Ultimate Linux Hosting with cPanel

You have to be using EasyApache4 (if my memory is correct). Then you install both the php53 and 55 (or whatever the default you want). Go into CPANEL (not whm) and there should be a "MultiPHP Manager". It will allow you to select which php version you want for each subdomain. 

 

It does this by adding something like 

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php70” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php70 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

 

into your .htaccess (I am using php7) for the selected subdomain

 Edit 1:

https://documentation.cpanel.net/display/EA4/PHP+Home - Here is the documentation on multiphp

 

Edit 2: 

Note: https://features.cpanel.net/topic/allow-to-install-php-5-3-in-easy-apache-4

How to show hidden files like .htaccess

I have an Economy Web Hosting Windows account. I am trying to find the hidden files so I can edit the .htaccess file. I just want to add a MIME type so that my SVG images will appear in browsers.