Jump to:

4952 Posts in 14256 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Install Silverstripe when DB is not on 'localhost'

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: 359 Views
  • Cliff
    Avatar
    Community Member
    2 Posts

    Install Silverstripe when DB is not on 'localhost' Link to this post

    I'm trying to install SilverStripe but not on a LAMP stack. I have Apache on the localhost and MySQL on another server. How do I get SilverStripe to install under these conditions? I've looked for the DB connection information in the downloaded files but I've haven't (so far) been able to find it. Is it hard-coded somewhere?

    Cheers,

    Cliff

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Install Silverstripe when DB is not on 'localhost' Link to this post

    Your database details will either be in the _ss_environment file or in mysite/_config.php. If it is in the _config.php file do a search for the $db variable and replace localhost with the IP or server name of my MySQL server.

  • Cliff
    Avatar
    Community Member
    2 Posts

    Re: Install Silverstripe when DB is not on 'localhost' Link to this post

    Thanks, as it happens I didn't need to look there or change that.

    On the install page I simply went down to the database section and filled in the details there. I was confused by the fact that the error and the "Recheck" button appears *before* the section where you put in the database details. I put my DB server name and details into the DB section, clicked the "Recheck" button *above* the details and it all worked. I note that there is a "Recheck" button *after* the database details too.

    After it installed and the dust settled I looked at the _config.php and there were my DB details. Cool.

    That will teach me to read everything on the page....

    Cheers,

    Cliff

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