Results 11 to 13 of 13
I'm having the same problem. I've been banging my head against the wall for the last 36 hours... PHP will not parse the files, I'm just getting a "download" notification ...
- 12-10-2006 #11Just Joined!
- Join Date
- Dec 2006
- Posts
- 1
...
I'm having the same problem. I've been banging my head against the wall for the last 36 hours... PHP will not parse the files, I'm just getting a "download" notification from the browser.
- 12-10-2006 #12
so does this file exist libphp5.so and is it located or symlinked in the apache modules directory?
- 12-11-2006 #13Just Joined!
- Join Date
- Dec 2006
- Posts
- 5
two lines is all you need
Change /etc/httpd/conf/httpd.conf
append entries to DirectoryIndex:
DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
add the line somewhere:
AddType application/x-httpd-php .php
If httpd does not have php compiled in, you might need to add the following to the LoadModule block:
LoadModule php5_module path/to/your/php/module
on FC5, this would be
LoadModule php5_module modules/libphp5.so
Remember that the path is relative to the ServerRoot defined at the beginning of the httpd.conf. In my case, ServerRoot "/etc/httpd".
Other distros will have webexec/libphp5.so, and/or require
AddModule mod_php5.c
underneath. Just have a look at the other entries in httpd.conf.
I have reported this omission to Fedora bugzilla, hopefully future updates will run PHP out of the box. There's probably some twisted security ******** reason why they disabled it. Some Linux people seem to have the philosophy that broken = secure, I reckon a Apache server without PHP support... is useless. Most of the web runs on PHP code now. Jeez.


Reply With Quote