Need help with PHP 5.2.3 install with Apache

Issues related to applications and software problems
Posts: 1
Joined: 2012/11/14 21:48:02

Need help with PHP 5.2.3 install with Apache

Postby sothardw » 2012/11/14 21:52:22

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!

User avatar
Posts: 839
Joined: 2006/12/30 03:00:04
Location: Western Slope Colorado

Need help with PHP 5.2.3 install with Apache

Postby vonskippy » 2012/11/14 22:06:48

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.

User avatar
Forum Moderator
Posts: 20332
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Need help with PHP 5.2.3 install with Apache

Postby TrevorH » 2012/11/14 22:06:57

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/ 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.