multiple php on apache centos
Several notices from me:
yum install php php-cli mod_fastcgi
is not correct. mod_php should not be enabled. alsomod_fastcgi
can be installed without external repository usingmod_fcgid
- For PHP 5.2 and libxml>=1.2.9 you have to apply this patch libxml29_compat.patch
to set php version for all host without mod_php enabled add this to httpd.conf
<Directory "/var/www"> Options All +ExecCGI AddHandler php-cgi .php Action php-cgi /cgi-bin/php.fastcgi.5.5.18</Directory>
- when compiling on 64bit systems the compilation fails because of lib64 folder so you should add
--with-libdir=lib64
to configoptions