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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
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…
The viewer will learn how to dynamically set the form action using jQuery.
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 …

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now