You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by jeff00seattle <je...@earthlink.net> on 2009/04/27 18:32:14 UTC
[users@httpd] Sorry: Trying to Diagnose 403 Error
Sorry
I know this is the most common error diagnosis request on this site, but I
am stumped.
--- Telnet Test Failed ---
[root@zzzz]# telnet 0 8085
Trying 0.0.0.0...
Connected to 0 (0.0.0.0).
Escape character is '^]'.
HEAD / HTTP/1.0
HTTP/1.1 403 Forbidden
Date:
Server: Apache/2.2.3 (Red Hat)
Connection: close
Content-Type: text/html; charset=iso-8859-1
--- Telnet Test Success: Port 80 ---
# telnet 0 80
Trying 0.0.0.0...
Connected to 0 (0.0.0.0).
Escape character is '^]'.
HEAD / HTTP/1.0
HTTP/1.1 200 OK
Date: ...
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.9
...
--- httpd Setup Syntax Check ---
[root@zzzz]# httpd -t -D DUMP_VHOSTS
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:8085 localhost
(/etc/httpd/conf/extras/virtual-host.tmobile_pm_drupal_site.admin.8085.conf:14)
Syntax OK
--- httpd VirtualHost Config File ---
# Admin Port
Listen 8085
# Admin root
<Directory "/home/dev/sites/project_site.admin.8085/web/admin">
Options Indexes FollowSymLinks
Order Allow,Deny
AllowOverride All
Allow from all
</Directory>
# Virtual Host
<VirtualHost *:8085>
DocumentRoot "/home/dev/sites/project_site.admin.8085/web/admin"
DirectoryIndex index.php
ServerSignature On
</VirtualHost>
--- Expected Mode 755 prior and within to DocumentRoot---
# cd <DocumentRoot>
# cd ..
# chmod 755 -R admin/
# ls -al
drwxr-xr-x 5 root root 4096 Apr 27 07:10 admin
My apologies again for submitting such a common error diagnosis request.
Jeff in Seattle
--
View this message in context: http://www.nabble.com/Sorry%3A-Trying-to-Diagnose-403-Error-tp23260116p23260116.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
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
Re: [users@httpd] Sorry: Trying to Diagnose 403 Error
Posted by jeff00seattle <je...@earthlink.net>.
Thank you Mr. Gingras!
It was the command namei -m that did the trick to helped diagnosis this
problem (a command I had did know and now I do).
This was after reading the very helpful
http://wiki.apache.org/httpd/13PermissionDenied
# namei -m /home/dev/sites/project_site.admin.8085/web/admin/index.php
f: /home/dev/sites/project_site.admin.8085/web/admin/index.php
drwxr-xr-x /
drwxr-xr-x home
drwx------ dev
drwxrwxrwx sites
drwxr-xr-x project_site.admin.8085
drwxr-xr-x web
drwxr-xr-x admin
-rw-r-xr-x index.php
Changed directory home/dev to mode 755, and all was well.
Jeff in Seattle
--
View this message in context: http://www.nabble.com/Sorry%3A-Trying-to-Diagnose-403-Error-tp23260116p23261503.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
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
Re: [users@httpd] Sorry: Trying to Diagnose 403 Error
Posted by Frank Gingras <fr...@gmail.com>.
Jeff,
As the link mentioned, you need to check from /.
jeff00seattle wrote:
> And I had mentioned that I believe I had set the permissions correctly:
> --- Expected Mode 755 prior and within to DocumentRoot---
> # cd <DocumentRoot>
> # cd ..
> # chmod 755 -R admin/
> # ls -al
> drwxr-xr-x 5 root root 4096 Apr 27 07:10 admin
>
> Jeff in Seattle
>
---------------------------------------------------------------------
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
Re: [users@httpd] Sorry: Trying to Diagnose 403 Error
Posted by jeff00seattle <je...@earthlink.net>.
And I had mentioned that I believe I had set the permissions correctly:
--- Expected Mode 755 prior and within to DocumentRoot---
# cd <DocumentRoot>
# cd ..
# chmod 755 -R admin/
# ls -al
drwxr-xr-x 5 root root 4096 Apr 27 07:10 admin
Jeff in Seattle
--
View this message in context: http://www.nabble.com/Sorry%3A-Trying-to-Diagnose-403-Error-tp23260116p23260503.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
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
Re: [users@httpd] Sorry: Trying to Diagnose 403 Error
Posted by Frank Gingras <fr...@gmail.com>.
See http://wiki.apache.org/httpd/13PermissionDenied
jeff00seattle wrote:
> Hi Frank
>
> I was just about to put this in:
>
> (13) Permission denied: access to / denied
>
> Jeff in Seattle
>
---------------------------------------------------------------------
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
Re: [users@httpd] Sorry: Trying to Diagnose 403 Error
Posted by jeff00seattle <je...@earthlink.net>.
Hi Frank
I was just about to put this in:
(13) Permission denied: access to / denied
Jeff in Seattle
--
View this message in context: http://www.nabble.com/Sorry%3A-Trying-to-Diagnose-403-Error-tp23260116p23260427.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
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
Re: [users@httpd] Sorry: Trying to Diagnose 403 Error
Posted by Frank Gingras <fr...@gmail.com>.
Jeff,
Look in your error log, and you'll see the error. From there, you can
diagnose the problem.
Frank
jeff00seattle wrote:
> Sorry
>
> I know this is the most common error diagnosis request on this site, but I
> am stumped.
>
> --- Telnet Test Failed ---
> [root@zzzz]# telnet 0 8085
> Trying 0.0.0.0...
> Connected to 0 (0.0.0.0).
> Escape character is '^]'.
> HEAD / HTTP/1.0
> HTTP/1.1 403 Forbidden
> Date:
> Server: Apache/2.2.3 (Red Hat)
> Connection: close
> Content-Type: text/html; charset=iso-8859-1
>
> --- Telnet Test Success: Port 80 ---
> # telnet 0 80
> Trying 0.0.0.0...
> Connected to 0 (0.0.0.0).
> Escape character is '^]'.
> HEAD / HTTP/1.0
> HTTP/1.1 200 OK
> Date: ...
> Server: Apache/2.2.3 (Red Hat)
> X-Powered-By: PHP/5.2.9
> ...
>
> --- httpd Setup Syntax Check ---
> [root@zzzz]# httpd -t -D DUMP_VHOSTS
> VirtualHost configuration:
> wildcard NameVirtualHosts and _default_ servers:
> *:8085 localhost
> (/etc/httpd/conf/extras/virtual-host.tmobile_pm_drupal_site.admin.8085.conf:14)
> Syntax OK
>
> --- httpd VirtualHost Config File ---
> # Admin Port
> Listen 8085
> # Admin root
> <Directory "/home/dev/sites/project_site.admin.8085/web/admin">
> Options Indexes FollowSymLinks
> Order Allow,Deny
> AllowOverride All
> Allow from all
> </Directory>
> # Virtual Host
> <VirtualHost *:8085>
> DocumentRoot "/home/dev/sites/project_site.admin.8085/web/admin"
> DirectoryIndex index.php
> ServerSignature On
> </VirtualHost>
>
> --- Expected Mode 755 prior and within to DocumentRoot---
> # cd <DocumentRoot>
> # cd ..
> # chmod 755 -R admin/
> # ls -al
> drwxr-xr-x 5 root root 4096 Apr 27 07:10 admin
>
> My apologies again for submitting such a common error diagnosis request.
>
> Jeff in Seattle
>
>
---------------------------------------------------------------------
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