...localhost lock out?
markgriffith - June 12, 2008 - 10:57
I find I'm locked out of localhost on my laptop by a password check. I don't remember giving a username and password for my own laptop when I installed Drupal along with XAMPP some weeks ago - neither does the techie friend who helped me with the installation.
It didn't ask me for a password last week. So I press the button for a password reminder, and I get an error message about why I can't be mailed a password reminder, or a new password.
Has anyone seen this fault before? Very grateful for any ideas.
Mark

Who is asking
Who is asking for a password?
Is it a Drupal page? An Apache page? A Drupal error about connecting to the localhost database server?
What is the exact message?
Thank you cog
I think it is a Drupal page.
The message is
<<
Sorry, unrecognized username or password. Have you forgotten your password?
Welcome to your new Drupal website!
>>
...then cannot send me a new password
The odder part, I thought, is that it will not send me a password reminder or let me set a new password, because
<<
* warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\drupal\includes\mail.inc on line 193.
* Unable to send e-mail. Please contact the site admin, if the problem persists.
>>
My off-the-top-of-my-head guess is that is something in the XAMPP bit [judging also by the filepath up there, but I really am lost...] that is going wrong...
It is usual for local XAMP
It is usual for local XAMP packages not to set up email.
Have you registered the first user to Drupal? Check the database, the "users" table. It should contain 2 users, with uid=0 and uid=1.
If user 1 does not exist, you need to register it.
If user 1 does exist, you can set a new password with an SQL statement like
UPDATE users SET pass = md5('new-password') WHERE uid = 1;Alternatively, in the second case, you can edit user 1 directly using phpmyadmin, set the new password and select Function md5.
Thanks, cog...
Cog, that's extremely kind - I shall try to do all that. Thanks!
...planning to reinstal
Planning to reinstal.
...have reinstalled
What does "register the first user to Drupal" mean exactly?
What do I type or press, and where?
Just click "Create new
Just click "Create new account" and register yourself as a user. Set your password and remember it.
The first Drupal user, with user ID 1, is a privileged user and can do anything in Drupal. The next users will need permissions.
...thanks, cog
cog, thank you. Sorry to be a nuisance.
Are you attending Drupalcon in Szeged next month? I can buy you a drink if you are!
Heh, no, I won't be there,
Heh, no, I won't be there, but the thought counts.