Jump to:

4873 Posts in 7242 Topics by 1471 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Logins Fail when migrating to new server

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1226 Views
  • Double-A-Ron
    Avatar
    Community Member
    603 Posts

    Logins Fail when migrating to new server Link to this post

    Does anyone else have an ongoing problem when trying to move or make a copy of an existing Silverstripe site?

    Here's the senario:

    1. I have a Silverstripe site online and live
    2. I am wanted to upgrade this site to 2.3.1
    3. I make a copy of the live database and copy it to a WAMP localhost (Yes, table case names are exactly the same)
    4. When I try to login to the dev site using the same login that works on the live site, it fails.

    I have tried copying the database by downloading a dump from PHPMyAdmin and using SQLYog to sync the two. Both have the same result. The copied site seems to function, but I cannot get into the CMS or do a db/build.

    Any ideas? This is a consistant problem I have noticed for months using two different workstations running WAMP.

    It has to be something quirky with SS. I do similar copies with Drupal and Wordpress no problems at all.

    Cheers
    Aaron

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Logins Fail when migrating to new server Link to this post

    One of the issues I sometimes run into which is like this is when the way password encryption works is different. SilverStripe uses a couple different hashing methods to protect the password (not at the same time!) and these often rely on floating point numbers or precision variables which can be different on some setups.

    No idea what WP / Drupal do to get round this or if this is even the bug that you are experiencing. Maybe try hard coding a member login in your _config file - Security::setDefaultAdmin('admin', 'password'); then logging in with that to change your password then logout and try with your account again.

  • Double-A-Ron
    Avatar
    Community Member
    603 Posts

    Re: Logins Fail when migrating to new server Link to this post

    Thanks Will,

    That's exactly what I have been doing in the config file. I'm just trying to work out possible causes as this will be a rather common operation.

    Cheers
    Aaron

    1226 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.