Skip to main content
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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



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.

Helper II

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

Getting Started

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
# php -- END cPanel-generated handler, do not edit


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

 Edit 1: - Here is the documentation on multiphp


Edit 2: 


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.