ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

MSM Installation Problem

July 01, 2007 8:36pm

Subscribe [1]
  • #1 / Jul 01, 2007 8:36pm

    GregF

    18 posts

    I went ahead and bought MSM, and after following the installation instructions (or so I thought), I can’t get the second site to display.

    Here’s the setup - sorry if this is a little wordy.  I converted gregfuller.com to 1.6, then decided to stage MSM on localhost to work out any quirks.  I downloaded all the files from my hosted site, backed up and restored the database to a local database, changed a few configuration paths and got the site totally functional on localhost.

    I followed the installation instructions, and all seems well in the control panel.  All three sites are in reflected in the control panel, and the imports I did placed the entries under the proper site.

    So, now I have the control panel functional, and the original site still displays swell.

    My server root is localhost, but my ee site root is localhost/ee (I’ve got other stuff on the local apache server)

    I create a subdirectory named ee_sites under the ee directory to hold a directory for each of the three sites.  The idea is to get sites 2 and 3 working, then move the original site under the same directory structure.

    So, for the second site, or the first new site, I create directory under ee_sites named painters_diary,  then copy index.php and path.php from the ee directory to this directory.  I edited the files and set “general configuration” to the best of my understanding.

    When I point my browser to http://localhost/ee/ee_sites/painters_diary I get a blank screen.  Same if I add “/index.php” to the end of the url.  I do have entries under the painters_diary site.

    Here’s some stuff I think might be relevant:
    ———————————————————————————————————————————————————————————————————————
    Site management site short name: painters_diary.
    ——————————————————————————————————————————————————————————————————————-

    Control Panel: Painter’s Diary > Admin > System Preferences > General Configuration
    Nane of your site’s index page: index.php (but I tried it blank as well)
    URL to the root directory of your site: http://localhost/ee/ee_sites/painters_diary
    URL to your Control Panel index page: http://localhost/ee/eesys/index.php  (unchanged)
    URL to your “themes” folder: http://localhost/ee/themes/    (nchanged)
    Theme Foler Path: C:\wamp\www\ee\themes (unchanged) 

    —————————————————————————————————————————————————————————
    c:\wamp\www\ee\ee_sites\painters_diary\path.php: ( tried setting some of the other extra values but to no avail so I commented them out

    <?php

    //———————————————————————————
    // DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO

    //———————————————————————————
    // Path to the directory containing your backend files

    $system_path = “../../eesys/”;
    $site_name = “painters_diary”;

    //———————————————————————————
    // MANUALLY CONFIGURABLE VARIABLES
    // See user guide for more information
    //———————————————————————————

    //$template_group = “notebook”;
    //$template = “”;
    //$site_url = “http://localhost/ee/ee_sites/painters_diary”;
    //$site_index = “”;
    //$site_404 = “”;
    $global_vars = array(); // This array must be associative

    ?>

    ———————————————————————————————————————————————-

    Now I do have a .htaccess file.  I tried it without the one at localhost/ee and with and with the one at localhost/ee/ee_sites/painters_diary.  I also tried hittling the painters_diary site with and without the index.php.

    Here is the .htaccess just in case it makes a difference:

    RewriteEngine On
    #RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /ee/index.php/$1 [L]

    ——————————————————————————————
    Above is the .htaccess under localhost/ee. I change it appropriately, I think, for the one under the diary site. (As well as trying it without a .htacess at all.


    —————————————————————————————

    Any help / ideas on where I went wrong would be appreciated.

    Thanks!

  • #2 / Jul 02, 2007 10:50am

    Robin Sowell

    13255 posts

    I’d take out the htaccess file for now- and then I’d alter the path.php in the subfolder:

    //$template_group = "notebook";
    //$template = "index";
    //$site_url = "http://localhost/ee/ee_sites/painters_diary";
    //$site_index = "index.php";
    //$site_404 = "";
    $global_vars = array(); // This array must be associative

    Those shouldn’t be commented out- I’m a bit fuzzy on that bit.  Are they commented out in the actual file?  Remove the comments.  Let’s see how far that gets us.  For comparison- here’s my path.php for a subdomain setup for a multi-site:

    <?php
    
    // ------------------------------------------------------
    // DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
    
    // ------------------------------------------------------
    // Path to the directory containing your backend files
    
    $system_path = "../system/";
    
    // ------------------------------------------------------
    // MANUALLY CONFIGURABLE VARIABLES
    // See user guide for more information
    // ------------------------------------------------------
    
    $template_group = "";
    $template = "";
    $site_url = "http://test.media-cow.com/";
    $site_index = "";
    $site_404 = "";
    $site_name = 'test';
    $global_vars = array(); // This array must be associative
    
    ?>

    But- I am using htaccess.  And don’t have quite the same folder structure.

  • #3 / Jul 03, 2007 10:07am

    GregF

    18 posts

    Thanks Robin,

    I had the items uncommented, then commented them in one of my desperate attempts to get something to show.  Your example helped.  I changed a few of the values, the made some changes to the template set and it worked.

  • #4 / Jul 03, 2007 10:08am

    Robin Sowell

    13255 posts

    Sweet- I never did spot the exact issue- but glad you got it working!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases