Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Transfer from localhost to online

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: 2312 Views
  • Aioli
    Avatar
    Community Member
    10 Posts

    Transfer from localhost to online Link to this post

    Hi,
    I've built my site on a localhost. I've now successfully installed silverstripe on an online server, copied over my assets folder, mysite files, and my theme files. I know I need to copy over my 'database schema' but I'm not sure exactly what files these would be? So far nothing has changed on my online silverstripe site (i.e. still default install pages, not my own site).
    It's probably a simple explanation, i'm just not up with the database terminology.
    Thank you!

  • socks
    Avatar
    Community Member
    190 Posts

    Re: Transfer from localhost to online Link to this post

    It depends on your setup. If your using MAMP or something similar...

    Go into phpMyAdmin and export the database. Save the file as SQL or one of the Zip file choices (godaddy didn't like zip, but I think gzip works fine). I've included a screenshot. Maybe someone else can confirm that these settings are proper.

    Then you go to your host database and Import that saved file.

    Run dev/build?flush=all once everything is there.

    Note - your passwords will most likely not work http://silverstripe.org/general-questions/show/270913?start=0#post270934, so put a default user/pass in mysite > _config.

    Security::setDefaultAdmin(’admin’,’password’);

    Attached Files
  • Aioli
    Avatar
    Community Member
    10 Posts

    Re: Transfer from localhost to online Link to this post

    Thanks for the quick help! I installed phpmyadmin and exported the database successfully and yes my passwords don't work. I've added that code to my config file but I still can't login to my host or silverstripe using my old login details or 'admin/password'. what login details am I supposed to use or is there something else I'm missing?? Hopefully its something simple that i'm not aware of yet!?
    Cheers

  • socks
    Avatar
    Community Member
    190 Posts

    Re: Transfer from localhost to online Link to this post

    Your old password will have to be re-entered once you get into the admin. You could try the Lost Password link on the Login form (assuming you used your real email address when you set it up).

    Having that line in the _config should get you in. Assuming you didn't change that line, you would visit yoursite.com/admin and then to login you would type in admin for the email field and password for the password field.

    Feel free to post your _config or a link to your site, but I can't imagine what else could be wrong. You uploaded the new _config file to your host, right?

    2312 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.