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
Asked
Active
Viewed 326 times
-3
-
1hi.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 04 '11 at 18:59
-
Have you restarted Apache? – Rilindo Oct 04 '11 at 19:00
-
@Rilindo of course man!!! – user Oct 04 '11 at 19:03
-
I have to be sure. :) – Rilindo Oct 04 '11 at 19:26
-
Wait, how did you install PHP? Through yum or did you compile it from scratch? – Rilindo Oct 04 '11 at 19:44
-
@Rilindo Both. See his other question: http://serverfault.com/questions/313927/why-php-igrep-php-ini-is-not-finding-the-correct-path-to-php-ini – mailq Oct 04 '11 at 19:47
-
Based on the current version on CentOS 5, he is using the compiled version. It sounds like php module is not enabled in Apache. – Rilindo Oct 04 '11 at 19:50
-
@Rilindo i installed it using yum but then when i installed the newest version i removed the old one and compiled the new one from source so the current one is installed from source – user Oct 04 '11 at 20:11
-
Okay, in that case, look at @Lazy Badger's response, as that is the fix there. – Rilindo Oct 04 '11 at 20:14
-
Small request: show result of `rpm -qi php` command – Lazy Badger Oct 05 '11 at 16:03
1 Answers
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
-
-
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