You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2012/03/29 19:53:18 UTC
[Httpd Wiki] Update of "13PermissionDenied" by thumbs
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The "13PermissionDenied" page has been changed by thumbs:
http://wiki.apache.org/httpd/13PermissionDenied?action=diff&rev1=16&rev2=17
{{{
namei -m /usr/local/apache2/htdocs/foo/bar.html
}}}
+ If your system doesn't have namei, you can use parsepath. It can be obtained from [[http://people.apache.org/~igalic/hacks/parsepath|here]].
+
If all the standard permissions are correct and you still get a {{{Permission Denied}}} error, you should check for extended-permissions. For example you can use the command {{{setenforce 0}}} to turn off SELinux and check to see if the problem goes away. If so, {{{ls -alZ}}} can be used to view SELinux permission and {{{chcon}}} to fix them.
In rare cases, this can be caused by other issues, such as a file permissions problem elsewhere in your apache2.conf file. For example, a WSGIScriptAlias directive not mapping to an actual file. The error message may not be accurate about which file was unreadable.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org