Jump to:

4876 Posts in 7042 Topics by 1473 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Help "reinstalling" a site on a 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: 973 Views
  • Sue
    Avatar
    Community Member
    26 Posts

    Help "reinstalling" a site on a new server Link to this post

    I have received a DVD with SilverStrip 2.3.7 on it along with a site created in SilverStrip and the SQL dump. How do I install this previously created site on my server. I uploaded the created site to the server and the obviously doesn't work because there is no connection to a database. Any assistance greatly appreciated.

    Sue

  • martimiz
    Avatar
    Forum Moderator
    1035 Posts

    Re: Help "reinstalling" a site on a new server Link to this post

    if you still need this?

    you need access to a (mysql) database, then use the database dump to update the database. Next you need to update the database credentials you'll find in the /mysite/_config.php settings.

    Make sure you have a /silverstripe-cache/ directory and make it writable (if it exists and there are still any files in it, you can throw them away first).

    Make sure the /assets/ directory and all that's in it is writable as well. Take it from there...

  • Sue
    Avatar
    Community Member
    26 Posts

    Re: Help "reinstalling" a site on a new server Link to this post

    I definitely need this. Will try on Monday when I get back to work. Thanks

  • Sue
    Avatar
    Community Member
    26 Posts

    Re: Help "reinstalling" a site on a new server Link to this post

    When you say writable - what number should the permissions be set at (who has permission to write)?

    Thanks
    Sue

  • Plato
    Avatar
    Community Member
    26 Posts

    Re: Help "reinstalling" a site on a new server Link to this post

    Your web user needs to be able to write and read from /assets.

    assuming your web user is www-data, you should either make this user the owner of the files, or you can chmod 777 all folders in assets, and chmod 666 all files (in assets/) excepting .htaccess of course.

    The silverstripe-cache folder is actually optional, as silverstripe will use whatever temp dir you have available. However if you have issues writing to a temp folder (such as no write permissions for /tmp) then creating silverstripe-cache will save a heck of a lot of headache. This folder should be 777 also.

    Make sure to turn PHP Safe Mode off (and open_basedir too sometimes causes issues, post back about that as it's a bit more invovled).

  • martimiz
    Avatar
    Forum Moderator
    1035 Posts

    Re: Help "reinstalling" a site on a new server Link to this post

    To add to that: although creating a silverstripe-cache directory is optional, the SilverStripe cache is a very substantial part of the way SilverStripe operates, and I feel better to always 'know where it is' in case of trouble - especially on shared hosting, and not let my host decide for me... But that's just how I do it - and it doesn't take much effort

    Partial caches are also stored in the silverstripe-cache directory - I wonder if they can they be located anywhere else? Never checked - and I do occasionally want to distroy them...

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