Hi -

I have been developing a D7 site locally and have just deployed to a remote test server. The site works perfectly but I can't login to the admin area.

Going to http://www.mydomain.com/user brings up the login screen but upon entering details and submitting the form it just cycles back to the same page without any error message (or in Firebug). Deliberately submitting incorrect details doesn't even being up the red-box warning. I have tried deploying without and with clean URLs enabled but no difference.

My hunch is that the server is not finding the form action script, maybe because of a base url problem, but I have added the $baseurl to settings.php

Any help greatly appreciated,
Thanks

Comments

WillHall’s picture

verify that $cookie_domain is set properly in settings.php

martinduys’s picture

What exactly would 'set properly' be?
That line is commented out in my settings.php file.

WillHall’s picture

That's fine then.

* Truncate all of your cache tables.
* Check your htaccess for RewriteBase rule.

dmsid’s picture

This is just what I needed.  It maybe a 7 year old answer, but it is still the right one. 

perhenrik’s picture

Check that rewrite_module is enabled in Apache

Bogdan Balan’s picture

Had the same problem, this was the solution. Thanks!

artemboiko’s picture

Thanks

Dajka’s picture

This was it for me too. Thanks.

joe_wood’s picture

Thanks

dustinsilva@gmail.com’s picture

THANKS!

JEmbry’s picture

I had the same problem after migrating. I was hitting my /user page trying to login but couldn't. I figured if I was served /user instead of getting a 404 then mod_rewrite was on and running but it wasn't. Enabling it fixed the problem.

arsunyiu’s picture

fixed!

a2enmod rewrite

Restart apache2 after

service apache2 restart

joe_wood’s picture

Thanks