httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Morton <>
Subject [users@httpd] /index.php generates Forbidden error
Date Mon, 27 Jun 2011 11:57:43 GMT
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
DirectoryIndex index.html index.html.var
DefaultType text/plain

The included .conf files are:
LoadModule dnssd_module modules/

DNSSDEnable on

and php.conf:
<IfModule prefork.c>
  LoadModule php5_module modules/
<IfModule worker.c>
  LoadModule php5_module modules/
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
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



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message