Centos – php not working with apache install

apache-2.2centosPHP

I have a centos server. I have installed apache 2.2.17 from a .tar.gz file. I've also install php 5.3 from the ius repository. That worked fine and apache is functioning and so is php 5.3. However, when i put a phpinfo.php file in the directory that apache should be serving files from, it doesn't work. I can only seem to get php to work if i use yum install httpd which installs an older vesion of apache. Any ideas? Thanks.

Best Answer

Assuming that you're installing a PHP module for Apache, you need to be using the same version of Apache it was built against. It's a bad idea to try to mix-and-match source packages and binary packages like this. Either find a reputable repository and install everything from there, or build everything from source, but trying to mix it up like this will usually lead to this sort of problem.

Related Topic