Portal Home > Knowledgebase > Articles Database > How to use PHP 5.2 instead of 5.3 ?


How to use PHP 5.2 instead of 5.3 ?




Posted by mixmox, 12-09-2011, 02:14 PM
is it work on all servers which compile with php 5.3 ? If your website has compatabilty issues with PHP 5.3 and the only solution is to use PHP 5.2.x use the following. Create the file public_html/.htaccess Inside the file, put the following at the top: AddType application/x-httpd-php52 php

Posted by lastminutehosting, 12-09-2011, 04:41 PM
how about just downgrade php on the server and go from there?

Posted by terraGirl, 12-09-2011, 07:07 PM
The switch command you posted will only work if your server runs both PHP versions. You will need to check with your server admins / hosting provider to see if PHP5.2 is available to you.

Posted by CH-Shaun, 12-10-2011, 09:43 AM
I'll assume your on shared hosting so you would need to ask your web host if they have servers with PHP 5.2 available. If you do really need PHP 5.2, they might need to move you to another server.

Posted by msam029, 12-11-2011, 09:38 PM
Yes we need to check if both php version are avilable in hosting

Posted by ServerManagement, 12-11-2011, 10:40 PM
Even if you have both php versions installed, the application type name differs slightly from server to server. Don't just copy that line into your .htaccess before knowing what your exact application type name is. You can check the httpd.conf for your server's specific setting.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
DedicatedNow Down? (Views: 617)