-3

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

user
  • 849
  • 3
  • 13
  • 18

1 Answers1

2

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
Lazy Badger
  • 3,137
  • 15
  • 13
  • 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 05 '11 at 08: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 05 '11 at 15:43
  • It seems /usr/lib/php/modules/ is CentOS path, but must be tested – Lazy Badger Oct 05 '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 07 '11 at 09:13