Jump to:

23023 Posts in 11882 Topics by 2830 members

General Questions

SilverStripe Forums » General Questions » multisites possible?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Go to End
Author Topic: 16717 Views
  • JL
    Avatar
    Community Member
    10 Posts

    Re: multisites possible? Link to this post

    FullWebService, are you using SS 2.4.2? I have the same infinite redirect problem if I follow the instructions by Banal in http://silverstripe.org/general-questions/show/251650?start=56#post289221

    I think the _ss_environment.php handling might have changed since 2.4.1. Here's what i do to make it work:

    1) create _ss_environment.php with

    define('BASE_PATH', rtrim(dirname(dirname($_SERVER['SCRIPT_FILENAME'])), DIRECTORY_SEPARATOR));

    2) Do NOT add require_once('conf/ConfigureFromEnv.php'); into mysite/_config.php

    The rest of the symlinks creations are the same.

  • FullWebService
    Avatar
    Community Member
    36 Posts

    Re: multisites possible? Link to this post

    The folder thing were some symlinks gone rogue... I got that fixed.

    Now I just get a blank page...

    Looks like I've got some more debugging to do!

    ## EDIT ##

    Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 0 is not allowed to access /tmp/silverstripe-cache-var-ss-242 owned by uid 48 in /var/ss/242/sapphire/core/ManifestBuilder.php on line 466

    Odly enough, tmp is in the open_basedir line.

  • FullWebService
    Avatar
    Community Member
    36 Posts

    Re: multisites possible? Link to this post

    With safe_mode off I get the infinite redirect problem. I have the _ss_enviroment.php set up and haven't put the line in that requires conf/ConfigureFromEnv.php.

    Still... I have a feeling I'll get there eventually.

  • FullWebService
    Avatar
    Community Member
    36 Posts

    Re: multisites possible? Link to this post

    For some reason the _ss_enviroment.php method didn't work. UncleCheese's solution did!

    Glad I got it working now!

  • uilli
    Avatar
    Community Member
    2 Posts

    Re: multisites possible? Link to this post

    Hi, I'm trying to install ss using the suggestions I've found on this thread to use multisites.

    I have dloaded ss and created /var/ss242 containing:

    -cms
    -googlesitemaps
    -sapphire
    -themes
    -_ss_environment.php

    under www/html/silverstripe I have:

    -mysite
    -assets
    -symlinks to the folders in /ss242 (I used "Create link" in gnome)
    -.htaccess
    -the other files from the archive

    I gave read and write permissions to everyone in the /ss242 folder as well as assets, config.php and .htaccess
    I went to http://localhost/silverstripe and started the installation, which freezes at "Building database schema..."

    In the mysql db I can see some tables created but not all of them.

    I also tried to untar everything under /www/html/silverstripe, ran the installation and could open the cms admin page.
    then copied the folders under /ss242 and created the links.
    When I access the ss page, it redirects me to the install.php page

    any idea on what am I doing wrong?
    am I supposed to put all the directories in place and then install or first install and then move them?

  • uilli
    Avatar
    Community Member
    2 Posts

    Re: multisites possible? Link to this post

    tried UncleCheese's solution as well and I can access the index page now too, but get a 404 error when trying to access http://localhost/silverstripe/admin

    edit: almost done. I had Allowoverride None set in httpd.conf

    One last question: do I have to make a new installation for each site? and a new db? or can I just create a new folder in /www/html/ and put the same contenet as the original one?

  • bennettpr
    Avatar
    Community Member
    37 Posts

    Re: multisites possible? Link to this post

    I realise this is a long running thread and I appreciate the expertise that's already been shared.

    Question's I have are:
    - I assume that all the sites each need to run on a separate database?
    - what are the implications with core upgrades when running a shared codebase? Does dev/build need to be run on every site that uses the shared codebase? (It seems like this would be the case)
    - if so, is there a simple way to put all sites in "maintenance mode", upgrade the core, run dev/build on each site, validate the upgrade and then put all sites back into "normal" mode again?

    Once I can get my head around the long-term maintenance aspects I'll be keen to get this set up.

    Thanks,
    Paul

  • dompie
    Avatar
    Community Member
    88 Posts

    Re: multisites possible? Link to this post

    - Yes, every site requires a seperate DB
    - Yes, dev/build?flush=all must be run on every single site (DB)
    - I don't know of a build-in way to do so.

    Regards
    dompie

    16717 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
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.