Minklet Posted January 30, 2008 Share Posted January 30, 2008 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 Quote Link to comment Share on other sites More sharing options...
Minklet Posted January 30, 2008 Author Share Posted January 30, 2008 I should also add that when i try to access a specific file, i.e. http://localhost/test.php It tells me that it cannot find it. Quote Link to comment Share on other sites More sharing options...
madmax Posted January 31, 2008 Share Posted January 31, 2008 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.