How to move an existing installation to a new server

Permalink
I want to move my existing website to a new server. I copied all the files (with rsync) and copied the database using mysqladmin. But I can't log in.

The new site rejects any attempt to log in, saying things like "Invalid email address" even though this is incorrect.

Any suggestions?

rickb
 
arrestingdevelopment replied on at Permalink Reply
arrestingdevelopment
Rick,

Did you edit the "/config/site.php" file on the new server to give it the correct database location, name and login credentials?
rickb replied on at Permalink Reply
rickb
Yes, it's all the same as on the old server.
noXstyle replied on at Permalink Reply
noXstyle
Heya,

Did you solve this already?

Are we talking about a site with lots of users? If not, you might want to regenerate the password by using:
md5($uPassword . ':' . $salt);

and updating that to the database manually. At least that's what got me around the same problem the last time I encountered it.

Also was there any failed transfers during the transfer? If so, it can be a real pain in the ass to get the site working as it used to and I strongly advice to re-sync the files.

I've also noticed that by far the most reliable way to transfer a site is to create a new c5 installation to the destination server and then to transfer the db & all files excluding config/ concrete/ and cache/. After that you only need to change the pw salt from site config.

And to arrestingdevelopment,
If the DB credentials were to be wrong, it would throw a database error rather than wrong login credentials.
rickb replied on at Permalink Reply
rickb
Thanks for the help. I have some new information: my new server has HTTPS enabled. I disabled it (i.e back to HTTP as per the old server) and everything works fine.

So it seems the problem arises from using HTTPS, and I may have to investigate this a bit further. I had naively hoped that it would be a drop-in replacement - but that was too optimistic.

Rick