Hey Everyone,
I have a server that I have to stand up. It is running CentOS 6.2 with apache 2.2.15 installed. Due to the age of a website being moved I have to use PHP 5.2.3. After we get the site moved over and working it will be upgraded to be able to use current PHP builds. In the meantime I have to get this running. I had to install php 5.2.3 via a tar package. I went through the motions and everything successfully installed... so I thought. I am not able to get Apache to interpret any PHP files... got to looking and I have no mod-php5 in the modules folder in apache...
I am not sure how I need to go about getting this fixed. Let me know what info anyone needs to help me out on this.
Thank you!
Need help with PHP 5.2.3 install with Apache
Need help with PHP 5.2.3 install with Apache
Why not just use CentOS 5.8 which has PHP 5.1.6
Then install CentOS 6.x with all it's shiny new apps in a VM and work out why your Web App won't run on current software.
Then install CentOS 6.x with all it's shiny new apps in a VM and work out why your Web App won't run on current software.
Re: Need help with PHP 5.2.3 install with Apache
You probably don't want to know this but php 5.2.3 is riddled with security holes and definitely should not be used on anything that is externally facing. Even the latest 5.2.17 is unsupported and likewise has some vulnerabilities but at least it's within living memory :-)
As far as knowing which module to load, you'd need to look in the modules directory for one that looks hopefully named - on php 5.1.6 on CentOS 5.8, the /etc/httpd/conf.d/php.conf file loads modules/libphp5.so and on CentOS 6.3 with php 5.3.3 it loads the same file. A source build may not use the same module names but a quick `ls -la /etc/httpd/modules/*php*` should give you a clue.
As far as knowing which module to load, you'd need to look in the modules directory for one that looks hopefully named - on php 5.1.6 on CentOS 5.8, the /etc/httpd/conf.d/php.conf file loads modules/libphp5.so and on CentOS 6.3 with php 5.3.3 it loads the same file. A source build may not use the same module names but a quick `ls -la /etc/httpd/modules/*php*` should give you a clue.