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,058 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

733 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