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 showpill.com/hi.php you can see that apache is not working

  • 1
    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, 2011 at 18:59
  • Have you restarted Apache?
    – Rilindo
    Oct 4, 2011 at 19:00
  • @Rilindo of course man!!!
    – user
    Oct 4, 2011 at 19:03
  • I have to be sure. :)
    – Rilindo
    Oct 4, 2011 at 19:26
  • Wait, how did you install PHP? Through yum or did you compile it from scratch?
    – Rilindo
    Oct 4, 2011 at 19:44

1 Answer 1


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
  • 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, 2011 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 Oct 5, 2011 at 15:43
  • It seems /usr/lib/php/modules/ is CentOS path, but must be tested Oct 5, 2011 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, 2011 at 9:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .