Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have centos 5...php 5.3.8 and apache 2.2.21...I had this problem now i have another problem... first of all i see apache test page even though my script is still there ( but that problem i can fix), but apache is not working, if you go to you can see that apache is not working

share|improve this question
hi.php actually shows that Apache is working - we wouldn't see anything if it wasn't, just a "server not responding" error. You just haven't configured mod_php properly. – ceejayoz Oct 4 '11 at 18:59
Have you restarted Apache? – Rilindo Oct 4 '11 at 19:00
@Rilindo of course man!!! – user Oct 4 '11 at 19:03
I have to be sure. :) – Rilindo Oct 4 '11 at 19:26
Wait, how did you install PHP? Through yum or did you compile it from scratch? – Rilindo Oct 4 '11 at 19:44
up vote 2 down vote accepted

Apache working. You have not finished mod_php configuration. In minimal form it's something like

PHPIniDir "path here"
LoadModule php5_module "path to module"
AddType application/x-httpd-php phtml php
share|improve this answer
sir where to find mod_php in order to configure it? and you said In minimal form it's something like that so what is the ideal form then? – user Oct 5 '11 at 8:22
Know nothing about CentOS, but - if you know there to find httpd.conf, you can open it and see at strings LoadModule (module have relative path before filename). PHP module must be (if apache-package compiled w|php)at the same (?) location. Last action after solving troubles will be addidng index.php to base DirectoryIndex – Lazy Badger Oct 5 '11 at 15:43
It seems /usr/lib/php/modules/ is CentOS path, but must be tested – Lazy Badger Oct 5 '11 at 15:48
my vps has expired and the other will expire very soon so I'll get a new one and start over... – user Oct 7 '11 at 9:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.