Page 1 of 1

cannot login to xampp

PostPosted: 11. February 2014 23:33
by fhbc2003
Hi,
I moved to Windows 8.1 on a new computer and installed XAMPP (control panel v.3.2.1). Apache and mysql are running properly (php executes database queries); Apache is using port 8080.
I tried to login to phpMyAdmin to update a database, and was unable. So I tried to go to the XAMPP security page to check settings, and found I was unable to access any of the provided pages. If I type http://localhost:8080/ or the specific address of the security page, I get a dialog box that asks for user name and password.

I have entered the username [root] and password listed in /security/xamppdirpasswd.txt (as well as many other combinations) without success.
The Apache error log says: AH01618: user root not found: /xampp/

Apparently, I did something to corrupt my credentials; how can I add a user "root", or do a total reset of XAMPP's security?

Re: cannot login to xampp

PostPosted: 11. February 2014 23:54
by Altrea
Hi fhbc2003,

fhbc2003 wrote:Apache is using port 8080.

... if you are happy with that ...
fhbc2003 wrote:I tried to login to phpMyAdmin to update a database, and was unable. So I tried to go to the XAMPP security page to check settings, and found I was unable to access any of the provided pages. If I type http://localhost:8080/ or the specific address of the security page, I get a dialog box that asks for user name and password.

phpmyadmin and the xampp folder have different credentials.

fhbc2003 wrote:I have entered the username [root] and password listed in /security/xamppdirpasswd.txt (as well as many other combinations) without success.
The Apache error log says: AH01618: user root not found: /xampp/

Then your folder protection user is not named root.

fhbc2003 wrote:Apparently, I did something to corrupt my credentials;

Executing the xamppsecurity script corrupts many many xampp installations. Don't do that. It suggest you an amount of security it can not provide.

fhbc2003 wrote:how can I add a user "root", or do a total reset of XAMPP's security?

You could add a new user to your htpasswd file with help of the command line tool htpasswd.
Or delete all .htaccess and .htpasswd files the securitytool has created to disable the folder protection.

But all of this will not help you to login to phpmyadmin.

best wishes,
Altrea

Re: cannot login to xampp

PostPosted: 12. February 2014 02:36
by fhbc2003
Hi Altrea,
Problems solved: deleting the .htaccess files allowed me to get access to the XAMPP files again. Then I was able to figure out the right credentials for phpmyadmin.

Thanks for your quick(!) help.

Re: cannot login to xampp

PostPosted: 12. February 2014 06:07
by Altrea
You are welcome 8)