Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » How to Setup a Multisite with Version 3.0.5?

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: 495 Views
  • ELF
    Avatar
    Community Member
    7 Posts

    How to Setup a Multisite with Version 3.0.5? Link to this post

    So the recipe for a multi-site install (not using the subsites module) .
    1. Copy the silverstripe files to a master silverstripe directory; ex. "silverstripe305"
    2. Don't install it (perhaps thats ok too?)
    3. Copy assets, mysite, & themes folders to another directory; ex. "mysymlinkedsite" [do I also copy the index.php?]

    4. Set the correct rights to these folders [what rights are those 777 for write access of 655?]

    5. Create symlinks to the shared folders (saphhire, cms, etc.)
    [OK, this is old, my versions doesn't have a sapphire folder? and what about all the files that are just in the silverstripe305 folder not its subfolders? How do I symlink this stuff and which ones?]

    6. Create a "silverstripe-cache" folder in your "mysymlinkedsite"
    [just out of curiosity why? am I supposed to reference it in a file somewhere of will silverstripe do that automatically?]

    7. Proceed with the installation as normal (by visiting e.g. localhost/mysymlinkedsite)
    8. to install it on additional addon-domains in the future: copy assets, mysite, & themes folders to the newsites directory; ex. "mynewsymlinkedsite". and then do whhat? create another index.php for it? Symlink some files like in step 5 again...

    Could you guys help me clarify, Thanks a lot. I really appreciate it.

  • leepoooo
    Avatar
    Community Member
    2 Posts

    Re: How to Setup a Multisite with Version 3.0.5? Link to this post

    Modify the _ss_environment.php

    global $databaseConfig;
    global $ASSETS_DIR;

    if((strpos($_SERVER['SERVER_NAME'], '**') !== false))
    {
       $databaseConfig = array(
       "type" => 'MySQLDatabase',
       "server" => '',
       "username" => '',
       "password" => '',
       "database" => '',
       "path" => '',   
    );
    define('ASSETS_DIR', '');

    }

    else{
       $databaseConfig = array(
       "type" => 'MySQLDatabase',
       "server" => '',
       "username" => '',
       "password" => '',
       "database" => '',
       "path" => '',   
    );
    define('ASSETS_DIR', '');
    }

    And change theme in the table siteconfig

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