LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to access file on web server (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-access-file-on-web-server-684631/)

Ryan_Sutton 11-19-2008 10:15 AM

Unable to access file on web server
 
I am trying to access the forum config file on my web server VIA the internet and am getting "403 Forbidden". I've set permissions on the file I'm trying to access to 777. I don't have any .htaccess files in my web root. Can anyone advise how to troubleshoot?

Additional info: Running Fedora 9, Apache 2.2.9, php5.2.6 and mySQL 5.0. I am just setting this web server up and when I punch in the IP of the server I get the Apache test page. It's when I drill down to the forum files I get a 403.

Thanks!

[edit] - I reinstalled my forum software and now have access to said files.

mazhar_theone 11-19-2008 03:18 PM

Quote:

Originally Posted by Ryan_Sutton (Post 3347627)
I am trying to access the forum config file on my web server VIA the internet and am getting "403 Forbidden". I've set permissions on the file I'm trying to access to 777. I don't have any .htaccess files in my web root. Can anyone advise how to troubleshoot?

Additional info: Running Fedora 9, Apache 2.2.9, php5.2.6 and mySQL 5.0. I am just setting this web server up and when I punch in the IP of the server I get the Apache test page. It's when I drill down to the forum files I get a 403.

Thanks!

[edit] - I reinstalled my forum software and now have access to said files.

the 403 error can be caused either if webserver not have read permissions to file and or execute permissions to folder or holding web-contents.

Or

if the hotlink protection is enabled by settings Rewrite rule in .htaccess file in your DocumentRoot or any parent directory.

Specific reason could be found by monitoring apache error log file.

tail -f /var/log/httpd/error_log


Mazhar
http://mazhar.co.in/blogs/

Ryan_Sutton 11-19-2008 03:21 PM

Quote:

Originally Posted by mazhar_theone (Post 3347920)
the 403 error can be caused either if webserver not have read permissions to file and or execute permissions to folder or holding web-contents.

Or

if the hotlink protection is enabled by settings Rewrite rule in .htaccess file in your DocumentRoot or any parent directory.

Specific reason could be found by monitoring apache error log file.

tail -f /var/log/httpd/error_log


Mazhar
http://mazhar.co.in/blogs/

Notice my comments about setting the permissions to 777 and not having any .htaccess files, but thank you nonetheless. I did look at the error_log file but I couldn't figure out what the problem was. It ended up being easier to just reinstall my software, which I am now able to access VIA the web!


All times are GMT -5. The time now is 04:41 PM.