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.

System Directory Above Webroot for Media Temple Grid Server?

July 24, 2012 8:25pm

Subscribe [1]
  • #1 / Jul 24, 2012 8:25pm

    justinkwithj

    25 posts

    I’m trying to follow best practice and move my system folder above the public folder. My hosting provider is Media Temple (grid server)  and I’m running a MSM installation, EE version 2.5.2.

    Here’s what the MT’s domain structure looks like with my current setup.  All of the domains reside in a common “domain” directory.

    domain1.com
    └── html
        ├── admin.php
        ├── index.php
        ├── system
    
    domain2.com
     └── html
        ├── admin.php
        ├── index.php

    After moving the system folder up a level to sit next to the html directory I made changes to the index.php files for both sites.

    The new folder structure looks like this:

    domain1.com
    └── html
        ├── admin.php
        ├── index.php
    └── system
    
    domain2.com
     └── html
        ├── admin.php
        ├── index.php

    And the system path variable in the index.php files look like this:

    $system_path = '../fpunderthehood';

    When I access both sites I get the error:
    Fatal error: Class ‘CI_Lang’ not found in ...(complete server path).../domains/domain1.com/system/expressionengine/core/EE_Lang.php on line 25

    I haven’t been able to find any similar threads that have a similar error or are pertaining to Media Temple gs hosting.  Sorry if I’m missing something here.

    One last caveat is that I’m using the Biber Multi Language Support module on my main site.  I’m not sure if that could be relevant or not.

  • #2 / Jul 25, 2012 6:00pm

    Dan Decker

    7338 posts

    Hi Justin,

    You’ve got to go up 2 levels. Try this:

    $system_path = '../../fpunderthehood';


    That should set you straight.

    Cheers,

     

  • #3 / Jul 25, 2012 6:28pm

    justinkwithj

    25 posts

    Dan,

    When I set the system folder to:

    $system_path = '../../system'

    I get the EE error:
    Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

    Any ideas?

     

  • #4 / Jul 26, 2012 2:43pm

    Dan Decker

    7338 posts

    Alright, just to clarify, the top-level is:

    domain1.com - folder
    system - folder
    domain2.com - folder

    Correct?

    Or is system in domain1.com next to html?

    If that’s the case, then you need:

    $system_path = '../system'; // in domain1.com

    and

    $system_path = '../domain1.com/system'; // for domain2.com

    That should do it. Also check with (mt) that there aren’t any open_basedir restrictions in place as well.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases