httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashwin Kesavan <ashwi...@yahoo-inc.com>
Subject RE: [users@httpd] /index.php generates Forbidden error
Date Mon, 27 Jun 2011 12:19:47 GMT


-----Original Message-----
From: Frank Gingras [mailto:francois.gingras@gmail.com] 
Sent: Monday, June 27, 2011 5:34 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] /index.php generates Forbidden error



On 06/27/2011 07:57 AM, George Morton wrote:
> 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
>

George,

You surely spent an awful lot of time providing information that won't 
help us. What, exactly, does the error log say?

Frank

Hi Frank,

You must really appreciate this guys effort in formatting this information. Not many people
I have seen do this to this level of professionalism. But yes you are correct in that the
error log and access log would provide lot more information than the above details. But still
it is not complete useless. This in combination with error log lines pertaining to the index.php
would be all that might be required to find where the problem lies and hence the solution.

--ashwin 
Mime
View raw message