I'm trying to move a site I'm developing from a development port - localhost:8888 - to a web-accessible port - localhost:8080. Here's what I'm experiencing:

1. Backed up db on localhost:8888
2. Copied my entire site directory from localhost:8888 to the localhost:8080 directory
3. Created a new db with the same name on localhost:8080
4. Restored new db from the backup

So, now - the site works fine (db connects, site and contents load and work, etc) EXCEPT that I can't login. Whenever I try to login I get an access denied.

I'm using drupal 5.2, php 5.2.4, MySQL 5.0.45, Apache 1.3 ....
(Login problems persist using Firefox 2, 1.5, Safari 3, IE 7, IE 6, IE 5.5)

This might have nothing to do with the ports - in fact that's what I'm guessing - but I'm stumped!

Thanks in advance for you help...

- Jason

Comments

gregobrien’s picture

ive seen so many people with the same problem...i dont remember how to correct it but you can go into phpmyadmin or something and just change your password, very easily. check some old posts!

cog.rusty’s picture

Exactly same Drupal version?
Is your settings.php file in the sites/default directory or in a sites/8888.localhost directory?
Does it contain anything specific to the old one
- in the $base_url?
- in the cookie_domain?

And of course try the standard miracle cures:
- clearing your browser's cookies and restarting your browser
- emptying the sessions table and all the cache tables in the database

doddinc’s picture

Things to try...doing them worked for me.

clear cach and session tables...
use the change password link...

zvischutz’s picture

:(:)

cog.rusty’s picture

They probably mean the "Request new password" link in the login form.

If you ever need to change your password to login after moving the site, especially if your old username or password contained non-english characters, this may mean that your new database has a different character set/collation, which is a problem.

When creating a new database for Drupal and before running the installer (or before uploading a database backup), it is a good idea to check the empty database with phpmyadmin, go to the Operations tab, and set its default collation to utf8_general_ci (or even utf8_unicode_ci).