View Full Version : Apache wont grant permission
13th October 2011, 04:40 AM
Apache's running on my fedora 13 but wont grant me permission to view my websites in the doc root director /var/www/html. Please how do i get past this.
13th October 2011, 02:09 PM
Try $firefox localhost &
# chown apache.apache -R /var/www
13th October 2011, 02:45 PM
Apache should not own the files - this provides some protection against attacks on apache from defacing the site.
What is the error you get? There should be two - the one returned to the browser (usually "permission denied") and one in the apache logs. There may also be some SELinux violations going on. Depending on how the files are put in /var/www, they may have the wrong security labels. Also it is possible that SELinux has not been directed to permit apache to access files.
Again, this is for the protection of the data to prevent improper data release (can't export files that aren't properly labeled for export).
The apache account should only own files/directories that are designated to be updated via web access. Anything else means that vulnerabilities/bugs in CGI procedures may allow damage to data that should not be modified or export data that should not be seen.
14th October 2011, 08:52 AM
Moved to EOL (End Of Life) Versions (http://forums.fedoraforum.org/forumdisplay.php?f=75)
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.