Apache - 403 Forbidden Warning
I can access the default page at http://localhost, but when I try to browse to something under /var/www/html, I get the 403 forbidden error. Now I've seen posts about changing permissions of the folder and files under /var/www/html, but do I set them to the user that the webserver has defined it is settings (apache:apache)? Whatever I try does not seem to work.
[root@linuxmcarey /]# chown -R apache:apache /var/www/html [root@linuxmcarey /]# chmod 755 /var/www/html Also, I've seen posts about checking the httpd file, but when I do a search, a couple come up. How do I tell which httpd file it is using? |
check in your apache configuration that it is infact apache:apache and make sure its uncommented, different distros change this to different things sometimes.
|
Sorry, this is RedHat 4. Not sure what version of apache.
Yes, when I open up the Web Server applet, the user and group both have apache. The folder I'm trying to access is cacti: [root@linuxmcarey html]# ls -al total 1132 drwxr-xr-x 3 apache apache 4096 Feb 19 16:35 . drwxr-xr-x 9 root root 4096 Feb 19 15:35 .. drwxr-xr-x 11 apache apache 4096 Feb 19 16:32 cacti -rwxr-xr-x 1 apache apache 1126337 Feb 19 15:17 cacti-0.8.6j.tar.gz [root@linuxmcarey html]# |
Has to do with SElinux policy, if you disable then there will be no errors, however to work with SElinux polix do
>chcon -R -h -t httpd_sys_content_t /home/www/html/* Ref: http://www.linuxhomenetworking.com/w...hat_.2F_Fedora Quote:
|
All times are GMT -5. The time now is 02:42 AM. |