?
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
Medium Priority
?
1,141 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 1000 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 1000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

770 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