RE: /index.php generates Forbidden error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




-----Original Message-----
From: Frank Gingras [mailto:francois.gingras@xxxxxxxxx] 
Sent: Monday, June 27, 2011 5:34 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  /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@xxxxxxxxxxxxxxxx
>     "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>

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 



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux