# Switch PHP version on Centos 6.4

I'm using CentOS 6.4 and I got Apache 2.2 and MySQL, but the PHP version is 5.5.1 which is a problem for me, because the application which we develop is working with php 5.3 and lower versions. I use this tutorial to install everything: http://www.if-not-true-then-false.com/2010/lamp-linux-apache-mysql-php-on-fedora-centos-red-hat-rhel/

Bust I can't find any answer in web to configure the server correctly to switch php version with cgi or fastcgi.

Can you help me?

-
How did you end up with PHP 5.5.1? –  Michael Hampton Aug 1 '13 at 13:39
Running PHP via CGI is not a very good idea. And if it's apache pre-fork then I'd recommend mod_php over fastCGI –  symcbean Aug 1 '13 at 15:58
@symcbean, just give me the steps and I'll try :) MichaelHampton, I just follow the steps. –  T0m3kk Aug 2 '13 at 6:09

2. yum remove php\*
3. set enabled=0 in /etc/yum.repos.d/<php5.5.51-repository-file>
4. yum install php (check if yum will catch correct version)
This is as fast as it can be. php.ini will be saved after unistallation as php.ini.rpmsave so you can use it. I'm not sure if all config options are same for 5.5 and 5.3. –  stderr Aug 2 '13 at 7:31