PDA

View Full Version : Apache wont grant permission


dlux45
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.

linuxwin2k
13th October 2011, 02:09 PM
Try $firefox localhost &
# chown apache.apache -R /var/www

jpollard
13th October 2011, 02:45 PM

No.

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.

leigh123linux
14th October 2011, 08:52 AM
Moved to EOL (End Of Life) Versions (http://forums.fedoraforum.org/forumdisplay.php?f=75)