Page 1 of 1

Browser login

PostPosted: 27. October 2008 09:01
by witham
Hi I have installed XAMPP and find it excellent but I want to get rid of the login box the browser produces when it try and enter the index.php.
I have searched and read about the different authentication methods and I have changed the login from http to cookie in the phpmyadmin config.inc file but I still get the browser login prompt?
I am running XAMPP on Window XP with IE 6 is it a setting on this or do I need to make a further amendment to a config file elswhere?

Re: Browser login

PostPosted: 27. October 2008 09:30
by Sharley
witham wrote:Hi I have installed XAMPP and find it excellent but I want to get rid of the login box the browser produces when it try and enter the index.php.
I have searched and read about the different authentication methods and I have changed the login from http to cookie in the phpmyadmin config.inc file but I still get the browser login prompt?
I am running XAMPP on Window XP with IE 6 is it a setting on this or do I need to make a further amendment to a config file elswhere?

I take it you mean you are getting the XAMPP login screen when typing in your browser http://localhost?

Go to .\xampp\security\htdocs and delete the .htaccess file
Now go back a folder to .\xampp\security and delete the .htpasswd file.

Both these files relate to your issue of asking for the password you set in the http://localhost/security page.

Tip - rename the files instead of deleting them then all you need do to restore the password box is rename the files back to their original names.

phpMyAdmin will always ask for a user name to access but if you did not set a password then root is all you need to enter in the first box for the User.

If you set a password for phpMyAdmin/MySQL then see this recent post for details of how to remove the password but be warned this is very dangerous and insecure - read the warning in red.
http://community.apachefriends.org/f/viewtopi ... 332#128332

BTW, you can always get your browser to remember user/pass details and enter then automagically when you access the login page.

Browser login

PostPosted: 27. October 2008 10:32
by witham
Thanks for that I have moved the files out of the folder but I still get the login box do I have to do anything in phpmyadmin to flush priveliges??

Re: Browser login

PostPosted: 27. October 2008 11:39
by Sharley
witham wrote:Thanks for that I have moved the files out of the folder but I still get the login box do I have to do anything in phpmyadmin to flush priveliges??

Which login box are you talking about?

Please try and be a bit more detailed with your posts as I, nor anyone else, can see what you are seeing on your PC screen or what you are doing to arrive at that screen, also what you are trying to achieve and why - thanks.

Browser Login

PostPosted: 27. October 2008 12:29
by witham
Sorry please accept my apologies!

I have XAMPP loaded on a PC on my home network with the IP address
192.168.0.5 and when I browse to http://192.168.0.5/xampp/index.php
I get a login prompt from the browser saying

The server 192.168.0.5 at xampp user requires a username and password.

Warning: This server is requesting that your username and password be sent in an insecure manner (basic authentication without a secure connection).

If i put in the username and password it takes me to the index.php but this is the login box I want to get rid of!

PostPosted: 27. October 2008 13:12
by Sharley
Sorry, I can't help as I don't have a network and only know about localhost - 127.0.0.1

However if you type http://localhost in your browser does it still produce a login box?

IMHO, the .htaccess and the .htpasswd files you removed only relate to localhost not your local network address.

phpMyAdmin has nothing to do with your login box issue nor will flushing MySQL privileges, so those ideas can be shelved.

Only a guess but has this anything to do with your router configuration?

Perhaps another member who reads this thread will have more of a handle on your local network login box issue...

...I have not seen that particular login box text message you posted in anything XAMPP nor in any of the XAMPP language files, if that's any help.

Browser login

PostPosted: 27. October 2008 13:27
by witham
I have gone directly to the PC xampp is loaded on and gone into http://localhost/xampp/index.php and I still get the login box??
It has a login that says in the top title bar connect to localhost??
So it seems it may be something to do with xampp but I am unsure what?

Re: Browser login

PostPosted: 27. October 2008 13:42
by Sharley
witham wrote:I have gone directly to the PC xampp is loaded on and gone into http://localhost/xampp/index.php and I still get the login box??
It has a login that says in the top title bar connect to localhost??
So it seems it may be something to do with xampp but I am unsure what?

In .\xampp\htdocs\xampp folder there may be another .htaccess file.
Do what you did with those in the security folder - either delete or rename or move it out of the xampp folder.

Also make sure that those 2 files in the security folder have not been recreated - if they have then do what you did before so that all 3 files are no longer in the xampp tree.

See if that fixes it.

Browser Login

PostPosted: 27. October 2008 14:17
by witham
Thanks Sharley sorted it was that "sneaky" extra .htaccess file. I really appreciate all your help.