Solved

Web Server Providing 403 Error: Forbidden, this website requires you to login when browsing locally, but works well from external machines

Posted on 2010-11-25
3
1,076 Views
Last Modified: 2012-08-14
Hi there,

I've setup a new server running Apache, PHP, MySQL. Its running very well, doing everything it needs to. However locally, I cannot browse to the website/s as it provides the error:

'403 Error: Forbidden, this website requires you to login when browsing locally'

There is no reason I can find that this is occuring. IIt has been working before also.

I've given the c:\www (where the web files are stored) everyone priveleges to test. and that did not resolve the issue.

I need to fix this because the web application running on the server actuallly runs scans of newsletters before they are sent, and the scans say that links are invalid. Which I assume is the cause of this.

Cheers
0
Comment
Question by:lemonville
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Accepted Solution

by:
Amar Bardoliwala earned 250 total points
ID: 34215644
Hello lemonville,

Normally 403 forbidden error comes when something is wrong with your permission settings.

Look at following links to see if it helps you

http://www.cyberciti.biz/faq/apache-403-forbidden-error-and-solution/

http://windows.fyicenter.com/73_Apache_PHP_Getting_HTTP_403_Forbidden_Error_on_PHP_Scripts.html

Thanks.
0
 
LVL 15

Assisted Solution

by:samri
samri earned 250 total points
ID: 34247680
hi lemonville,

amar is right on the permission issue -- either the user who are requesting the page does not provide a valid credential, or the server itself is having some permission issue while fetching the related resources.

Check in apache error log (most likely to be in c:\program files\apache foundation\apache2\logs\error.log).  

Attempt to reproduce the error, and post the corresponding lines in the logfile -- to have some clue.

Some links (after I googled it), that could be related to PHP configuration.  -- http://windows.fyicenter.com/73_Apache_PHP_Getting_HTTP_403_Forbidden_Error_on_PHP_Scripts.html

Anyway, check the logs to be certain.
0
 
LVL 1

Author Comment

by:lemonville
ID: 34333263
I ended up moving the directory back to the previous www folder (moving it initially was potentially the reason for breaking it).

I still don't know the exact reason.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question