Help. Apache doesn't read PHP files
Hi everyone,
Yesterday my apache 2 webserver stopped serving PHP files. If I try to access a directory that has index.php as its index, all i get is a 403 Access Forbidden! If i try to read from the php file directly, my browser just wants to download the file. Nothing changed from what I can see: Here is the entry in my log: Code:
[Tue Sep 19 19:05:51 2006] [error] [client 66.213.158.39] Directory index forbidden by Options directive: /srv/www/htdocs/ Code:
# NAME DEFAULT NULL Code:
<Directory /> I have mod_php5 installed. Here is the line in /etc/apache2/sysconfig.d/ Code:
LoadModule php5_module /usr/lib/apache2/mod_php5.so I have the following line in mime.types which is just a symbolic link to /etc/mime.types: Code:
application/x-php php php3 php4 |
you get a forbidden because you dont have a index file and apache doesnt wants to list all the contents of the dir.
this what is in my httpd.conf, try it Quote:
|
Hi w3bd3vil,
Thanks for the reply. Do i put that in the main mime.types or directly in the Apache httpd.conf? Also if its in the apache httpd.conf file, does it go in the virtual host config or in the main conf? |
Looks like that did the trick. Thanks for the help!
|
All times are GMT -5. The time now is 07:44 PM. |