Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » multiple installation on localhost

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1631 Views
  • Briohny
    Avatar
    Community Member
    199 Posts

    multiple installation on localhost Link to this post

    I'm new to SilverStripe and have to say... it's great! I have a site/project up and running perfectly on my localhost.

    I now want to start a new site on my localhost. I'm not sure how i should be doing this? I tried to download SilverStripe again (renamed folder) and followed same instructions to install on wamp server however this messed up my first project.

    If someone could clarify this for me.

    Very much appreciated.

  • Fuzz10
    Avatar
    Community Member
    786 Posts

    Re: multiple installation on localhost Link to this post

    Welcome!

    I don't know how WAMP works , but maybe the easiest solution would be to put the different Silverstripe installations in their own subdirectory in the webroot.

  • Briohny
    Avatar
    Community Member
    199 Posts

    Re: multiple installation on localhost Link to this post

    Thanks Fuzz10. My current project is installed in /wamp/www/project1

    I tried to install fresh silverstripe files into /wamp/www/project2

    but this seemed to mess up my first project for some reason. After installation, it used the default blue template but picked up the content of my first project. Then my first site lost some of it's formatting.

    Is this the correct method... and i did something wrong?
    or
    Am i trying to install into the incorrect directory?

    Thanks again.

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: multiple installation on localhost Link to this post

    Should work fine if you have them in separate folders eg projecta, projectb and you should also install them on different databases so if you make a change to the code in 1 it doesnt affect the other.

  • Briohny
    Avatar
    Community Member
    199 Posts

    Re: multiple installation on localhost Link to this post

    Thanks Willr. How do i go about installing on different databases? When i initially installed Silverstripe it created it's own database automatically. Is this new database something that i can create an installation set-up of Silverstripe or do i configure it prior to installing?

    Thanks again.

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: multiple installation on localhost Link to this post

    When you run the installer it will ask for a database name. You can just make this a different value every time. Thats if you run the installer for each project.. If instead you just copied the files from 1 folder and pasted again in the new folder then you will need to edit the database config file - in /mysite/_config.php you need to edit the "database" => "MySite", string so that each project has a separate database.

  • Briohny
    Avatar
    Community Member
    199 Posts

    Re: multiple installation on localhost Link to this post

    Brilliant. Thanks Willr.

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