Can't get PHP to run
Hi folks. :newbie: here.. :/
I've installed RH 9.0.. struggled like mad to get my network card running.. and then I read the docs.. :) I've got apache running, but PHP doesn't seem to be working. I found a page on google where if PHP is working, it should pass the info to the browser, and it's not. Code:
<html> PHP Test An Example of PHP in Action PHP Information I've searched high and low for a FAQ or doc, but having no luck. What'd I forget or miss? Thanks for the help. |
What does php -v from a terminal get you?
|
Quote:
Version 4.2.2 |
Been a bit since I've messed with this, but in httpd.conf, you should have:
AddType application/x-httpd-php .php and a LoadModule line. Can you post your httpd.conf? I'm by no means an expert, but I'll help as much as I can. :) |
Also, I'm pretty sure the following needs to be in http.conf:
Code:
<Files *.php> |
Quote:
I didn't have any of the lines.. I added AddType, and tried to do the AddModule.. but I'm not sure what needs to be in there.. so I did some searching and some guessing, however I didn't have much luck. I did manage to get httpd started again (with a warning message) but php still doesn't seem to work. Code:
[root@localhost conf]# service httpd start Code:
LoadModule access_module modules/mod_access.so Thanks a bunch Seventh!! |
All times are GMT -5. The time now is 09:01 PM. |