Please don't LOL at this newbie ... about a month ago, I installed Drupal on WAMP and played with it for several days to become more familiar with how it works. My work got insanely busy ... I just got a block of time to go back and explore some more but I can't remember how to login to the localhost! Unfortunately, all of my browser history is cleared so I'm not getting any autocomplete help. I'd appreciate the help of an expert.

Comments

steveadamo’s picture

no worries... it happens to the best of us... ;)

you are unable to login to your new site on localhost, or you cant get into the SQL backend (using something link phpMyAdmin)?

davidkirk’s picture

Duh: I did not have the WAMp server. I was able to use the WAMP interface to get to localhost and from there to my Drupal "project." Thanks for helping me out -- and for not laughing!

fultonchain’s picture

On my WAMP setup, pretty much at the installation defaults, the login URL is: http://localhost/DIRECTORY-IN-WWW-DIRECTORY-NAME/user

darkomi’s picture

Hm, I`m confuse because on many of this post when someone ask how to solve the problem now one give a answer, and question is for example how to fix a problem on localhost when email server did not work, and system send password different than password which you put when you make registration. I have feeling like I`m along on this website, so I wonder is any of you now answer, because probbable many of user hade same problem when start to use drupal. I check phpMySql and pasword there is not corect.

suffering drupal’s picture

"I have feeling like I`m along on this website"

That's kindof normal darkomi, I have this feeling ever since I started with Drupal (2007). And now even more since I have my site on a Drupal focussed server (shut down my site without warning, without replying questions and definitly without helping). It's seems some kind of general rule that if you're on Drupal, you should at least "know enough" or else just go and find it out for yourself. A genuine open-source mentallity!!
Rest asured that if you are on Drupal (and you're not a program freak), you are ALONE!
(this thread is a nice example, no answer in over a year!! get accostumed to it ;( )

I started with Drupal in 2007 and then my life got stuck...

suffering drupal’s picture

In despair and without very much hope for an answer, at least I drop my problem here.
Same thing: can't login on my localhost WEBSITE. Xampp is running, web is working, but username+password do not give me any access.

I am using a copy of an old version on my localhost (might be not fully or correctly downloaded) from which I try to reestablish the website, since my nice, helpfull Drupal-dedicated server in Belglium simply shut down my live website, without warning, without explanations, without help and without any worries of the concequences (one year of difficult work gone to the dogs, loss of traffic, loss of positioning in Google - I suppose he understands that as collateral damage).

Anyway, after many times trying to acces, I decided to copy all the user dates from another partially working copy (less developed, but I CAN access there). So I got the tables: user, user-roles, role and even did system and variables, since they were empty. But still no luck.

Any essential field or table that still should be copied?? Some setting in Xampp??
Just in case and before anyone anwsers my question with yet another question as frequently happens - I AM able to access other website-tryouts under localhost.

It would be nice for once to receive help from the Drupal community.

I started with Drupal in 2007 and then my life got stuck...

godler’s picture

I had the same problem with login to drupal on localhost . I solved this problem by installing mod_rewrite module on apache2 server.

markosaurus’s picture

I had the same issue.

If anyone is using MAMP/WAMP/XAMPP, you usually find that the apache mod_rewrite module is diabled by default.

Go to your system tray > wamp > apache > apache modules > mod_rewrite

Restart all services and you should be good to go.

Chandru Ranganathan’s picture

I had a same issue when I reinstalled the apache server. I have enabled rewrite by sudo a2enmod rewrite. Now its working as expected.

EmilSamson’s picture

If you can't login in to drupal 6, drupal 7 or drupal 8 on wamp server you have to activate/install rewrite_module.

Path to do it is very simple left click on Wamp icon that appears when Wamp is on and then fallow this path.

Apache -> Apache modules -> rewrite_module

make sure that ✓ rewrite_module
is ticked : )

to go down fast to rewrite_module use arrows on the keyboard.

ceramicheights’s picture

I was setting up a localhost backup of my live drupal7 site, and kept having the issue of logging in. I've even read this thread before. But I finally tried the Apache Mod_rewrite, and that was totally my issue. It was not a checkbox for me (using LAMP), I had to:

sudo a2enmod rewrite then restart Apache2 and clear cookies. Problem finally solved.

knalstaaf’s picture

The first option you may want to try is the following (user login) Drush command:

drush uli -l your-local-url.dev

This command will provide a one-time URL that you can copy paste to your browser's address bar. This URL will log you in immediately.

If that doesn't do it for you this may do the trick (works in MAMP Pro, PHP 5.6.2 too):

  1. Delete all browser cookies (sometimes it suffices to do only this step)
  2. Set the temporary folder path with drush ("tmp" in this case, whatever you like):
    drush vset file_temporary_path 'tmp'
  3. Log in

You can do this as often as you like, using the same path everytime.
(Source)

If you don't have access to drush, you can simply try by changing the $cookie_domain in your settings.php to something that makes sense, and save it. If doesn't help, undo the change, save it again, delete all browser cookies, and try once again to log in.

Also make sure you have the following covered:

  • the $cookie_domain in your settings.php should be set up right on your local installation (delete your browser cookies if you changed this just now)
  • restarting your MAMP may also be helpful.

It may also be worth checking this issue: #2385567: PHP 5.6.2 breaks login on local install for Chrome or Firefox

halth’s picture

Thank you @knalstaaf

Adjusting $cookie_domain was the answer to me.

--
Heitor Althmann
Drupal Developer

muranod’s picture

Thanks everyone - this was a lifesaver.

Running Drupal 8, I used this:
drush (fill in your USERNAME)//localhost/drupal8.dev

That gave me a link that went directly to the user password page where I could change the info.