httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Morton <george.mor...@gmail.com>
Subject [users@httpd] /index.php generates Forbidden error
Date Mon, 27 Jun 2011 11:57:43 GMT
Symptoms:
---------
When attempting to access index.php in my DocumentRoot, (via http from
any of several browsers), I receive a 403 Forbidden error.  When I copy
the file to test.php and access that, it is served as expected.  Also,
if I access index.html it is served as expected.

My server environment:
----------------------
Scientific Linux 6.0 (x86_64)
Apache/2.2.15 (Scientific Linux)

My httpd.conf (relevant portions, I think):
--------------------------------------------
Include conf.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
    Options MultiViews All
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
DirectoryIndex index.html index.html.var
DefaultType text/plain
----------------------------------------------

The included .conf files are:
mod_dnssd.conf:
---------------
LoadModule dnssd_module modules/mod_dnssd.so

DNSSDEnable on
-----------------

and php.conf:
-------------
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.php
--------------------------------------------------

I do not have .htaccess file.
---------------------------------------------------

My file permissions seem to be appropriate (/var/www/html directory
listing):
-------------------------------------------
drwxr-xr-x. 3 root root 4096 Jun 25 22:21 .
drwxr-xr-x. 6 root root 4096 Jun 25 00:40 ..
-rw-r--r--. 1 root root   72 Jun 25 16:44 index.html
-rw-r--r--. 1 root root   20 Jun 25 21:24 index.php
drwxr-xr-x. 2 root root 4096 Jun 25 22:22 testdir
-rw-r--r--. 1 root root   20 Jun 25 20:30 test.php
--------------------------------------------------

What, if anything should I change about my
environment/configuration/file permissions to enable the serving of
index.php?

Regards,

George


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message