Browser login

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Browser login

Postby witham » 27. October 2008 09:01

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?
witham
 
Posts: 28
Joined: 03. August 2006 21:53

Re: Browser login

Postby Sharley » 27. October 2008 09:30

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Browser login

Postby witham » 27. October 2008 10:32

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??
witham
 
Posts: 28
Joined: 03. August 2006 21:53

Re: Browser login

Postby Sharley » 27. October 2008 11:39

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Browser Login

Postby witham » 27. October 2008 12:29

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!
witham
 
Posts: 28
Joined: 03. August 2006 21:53

Postby Sharley » 27. October 2008 13:12

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Browser login

Postby witham » 27. October 2008 13:27

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?
witham
 
Posts: 28
Joined: 03. August 2006 21:53

Re: Browser login

Postby Sharley » 27. October 2008 13:42

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Browser Login

Postby witham » 27. October 2008 14:17

Thanks Sharley sorted it was that "sneaky" extra .htaccess file. I really appreciate all your help.
witham
 
Posts: 28
Joined: 03. August 2006 21:53


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 65 guests