Page 1 of 1

[solved] Can't login after server move

Posted: Fri Jul 25, 2014 3:43 am
by paulbaker
A hosting fu mix up meant that a site went offline for a while. Someone managed to grab .sql dump file and a zip of the files.

All files uploaded to new server. SQL data edited before upload to remove about 80MB of lines of data in the cms_module_stat tables (Statistics module). SQL uploaded OK in phpmyadmin.

It's a fairly old version of CMSMS - cms_version table shows version 32. So 1.10.3 perhaps?

Front end works fine.

Back end uses ZURA theme. I can't login. I try to login with existing user/pass and the screen just refreshes to login page again, no other message shown.

Tried
http://docs.cmsmadesimple.org/troublesh ... d-recovery
to update password. This appears to change the data in cms_users table. But doesn't change the fact you can't login; same thing happens as above.

BTW there is no "sitemask" value in table cms_siteprefs.

Tried resetting user/pass to admin admin using this
http://forum.cmsmadesimple.org/viewtopi ... 727#p70727
but that doesn't work either - same thing happens when you try to login.

Need sleep now, but...........help? ???

Re: Can't login after server move

Posted: Fri Jul 25, 2014 4:40 am
by calguy1000
Back end uses ZURA theme. I can't login. I try to login with existing user/pass and the screen just refreshes to login page again, no other message shown.
I'll bet money that either your config.php is messed up and/or the .htaccess.
disable pretty urls in the config.php, make sure the paths are proper, move the .htaccess file out of the way, and manually remove the cache files. you will probably then be able to login.

Re: Can't login after server move

Posted: Fri Jul 25, 2014 10:36 pm
by paulbaker
calguy1000 wrote:I'll bet money that either your config.php is messed up
Calguy, I owe you another beer. You got it in one. The config.php file had

Code: Select all

$config['root_url'] = 'http://www.domain.co.uk';
but the new server was set to forward http://www.... requests to "http://domain.co.uk without the www.

I removed the "www." from the config.php and I was able to login.

BTW it's version 1.6.6.....I'll be upgrading asap!

Thanks again ;D