Apache misconfigureation??!
I can't get it... I try so hard to chmod my .anything fiels... html mpeg etc nothing works.. finally i give everything EVERYTHING everyone has read write and exeucute... still forbidden
Forbidden You don't have permission to access /file.html on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.0.54 (Fedora) Server at (myserver) Port 80 i tried this already chmod a+x /var/www/html and i tried giving everyong everything so it couldn't fail but it still did.. EDIT: PHP files work, but not HTML or MPEG... JPEG also work.. i'm confused. |
anyone?
|
are you running SE Linux? if yes you have change security context.
To find out use ls -Z /var/www/html you should see something similar to this -rw-r--r-- apache apache user_u:object_r:httpd_sys_content_t index.html |
Well, when I do an ls -Z on /var/www the HTML folder looks like this:
drwxr-xr-x root root root:object_r:httpd_sys_content_t html and when I do an ls -Z on /var/www/html like you said, it gives me a list of the files and they say this on one of the files that I can't access: -rwxr-xr-x root root root:object_r:user_home_t thing.txt I'm on Fedora Core 4 |
som thngs 2 chk
1. check if your document root is on the right location your /etc/httpd/httpd.conf should contain DocumentRoot "/var/www/html" 2. Change your owner:group permission chown -R apache:apache /var/www 3. Change Security Context chcon -R -h -u user_u -t httpd_sys_content_t /var/www/html |
All times are GMT -5. The time now is 11:27 PM. |