Problems with PHP version

I have been running a while with an older version of PHP but got my webhost to upgrade so I could get ready to run V4. Now in Cpanel I can pick 5.2, 5.3, 5.4 and 5.5. Cscart works fine for v5.2 if I use Cpanel to swap to version 5.3 nothing works, customer frontend and admin do not laod and I get a blank screen, if I use Cpanel to swap to V 5.4 I get this error - “PHP version from 5.1.0 to 5.3.x is required. PHP 5.4.x and later are not supported. Your PHP is version 5.4.13, please ask your host to install a supported version.” Why can't I get v5.3 and higher to work and how do I get v4 working in test mode when CSCArt 3 wants V5.3 and CSCart 4 wants V5.4+ of PHP. Would really appreciate some help please.

You will need to add a line at the top of each installations .htaccess file to use different PHP versions. The following example is showing 5.3.x.


AddHandler application/x-httpd-php53 .php .php5 .php4 .php3

OK, I tried this but not working. When I visit my website is now comes up with an Explorer " Do you want to open or save this file". I have a phpinfo() file also and it comes up with the same. I put this line in the .htaccess file in the root directory. This is the what the file looks like

DirectoryIndex index.html index.php

AddHandler application/x-httpd-php53 .php .php5 .php4 .php3



RewriteEngine on

Pleas note that RewriteBase setting is obsolete use it only in case you experience some problems with SEO addon.

Some hostings require RewriteBase to be uncommented

Example:

Your store url is [url=“http://www.yourcompany.com/store/cart”]http://www.yourcompany.com/store/cart[/url]

So “RewriteBase” should be:

RewriteBase /store/cart

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !.(png|gif|ico|swf|jpe?g|js|css)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php?sef_rewrite=1 [L,QSA]



I can change the version from Cpanel and the phpinfo() shows the selected version but CScart then stops working. Any ideas ? Thanks