Jump to content

Authentication Required when accessing Localhost


Minklet

Recommended Posts

Hi, firstly my apologies for asking what is probably a relatively straightforward question. However, I really have looked for the solution for the best part of 20 hours this week.

 

Ive finally managed to get mySQL, Apache and PHP working, after much shouting and crashing. However, when I try to access http://localhost I get an 'Authentication Required' box asking for username and password. I havent set anything like this on this machine and deliberately left all password fields blank for later editing, in case such a problem.

 

I really don't know what to do...

 

If i do have to uninstall all three, what files should I delete after the uninstall process? Obviously I dont want to reinstall with the same configuration still on the machine. I would rather not have to do this though, so any other solutions would be better.

 

 

Any help you can give me would be greatly appreciated. I'm really am getting quite desperate now, just want to be able to build a site.

 

 

Thanks

Link to comment
Share on other sites

Not enough info I'm afraid.

 

Check to see if you have allowed an override which will enable .htaccess files (not recommended if you own the box)

http://httpd.apache.org/docs/2.0/howto/htaccess.html#when

 

If you don't want .htaccess files enabled see the above link and set AllowOverride None for the root folder

If you DO have .htaccess files enabled check that you've not accidentally copied one which has authentication enabled in it

 

Check your httpd conf file to see if you have played with authentication at some time and left authentication directives enabled.

 

As I have no idea what PHP code you have enabled on your box (but you managed to get PHP+MySQL working) I guess you might be triggering some PHP-code which then activates a PHP/SQL login somewhere. So it might even be a DB authentication.

 

Above all, if you are in the dark remember that your log files (access and error) are your friends. Always check your logs as a first point of call to see what exactly is happening on your server!.

 

Sorry but there's really not enough info other than to poke randomly at this one ;)

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.