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 and path.php/index.php in Different Domain Directories

January 17, 2008 11:01am

Subscribe [1]
  • #1 / Jan 17, 2008 11:01am

    An Aussie

    18 posts

    Hi Everyone,

    Just a small question with regards to the above topic. I am using MSM and have placed path.php and index.php into their respective domain folders. To give you a better picture this is what I have done:

    /domain1 holds path.php and index.php in the public_html folder.
    /domain2 holds path.php and index.php in the public_html folder.
    /domain3 holds path.php and index.php in the public_html folder.

    Now in each on these I have placed the following path:

    $system_path = “/home/username/public_html/name_system_folder”;

    I am using a webhost where you create a whole new home directory and administration panel for each domain you wish to add to the main account. You can then go to that domain which has its own control panel and administer it.

    What is happening is I am getting an incorect path error when I go to load the webpage in each of the domains.

    Am I missing something?

    Thanks for your help guys!

  • #2 / Jan 17, 2008 11:10am

    Robin Sowell

    13255 posts

    Hm- never had a host that would let me set it up that way.  Note that

    If using sub-domains or domains, directories must be able to access your main installation system directory.
    and
    The directory you specify must be able to have files within it be able to access your main installation system directory. You should ensure you don’t have any “open_basedir” or other restrictions in place which could prevent this.

    If I had to bet, the problem is probably related to the above.

    But let’s see- which setup actually has the system folder in it?  Any of them?  And does that one work?  And what’s the exact error you get when trying to access the frontend of one of the others?

  • #3 / Jan 17, 2008 11:27am

    An Aussie

    18 posts

    Thanks for your reply Robin…

    domain1 has the “system” folder in it.

    The other domains, domain2 and domain3 just have path.php and index.php in there.

    When accessing domain2 and domain3 the exact error message is: “The system path does not appear to be set correctly. Please open your path.php file and correct the path.” This is displayed in the top left hand corner of the webpage with nothing else showing.

    The interesting thing is when I FTP to each one of these domains and traverse to the top folder it looks like the other top level home folders for those domains are hidden.

    I am using Site5.com as my host. Hope this is making some sence.

  • #4 / Jan 17, 2008 11:46am

    Robin Sowell

    13255 posts

    OK- let’s see if we can get a more detailed error.  Make sure you have php errors showing, then open up the index.php file in one of the folders that’s borking.  Right at the bottom, we’ll remove some error supression:

    if ( ! @include($system_path.'core/core.system'.$ext))
    {
        exit("The system path does not appear to be set correctly.  Please open your path.php file and correct the path.");    
    }
    
    CHANGE TO
    
    if ( ! include($system_path.'core/core.system'.$ext))
    {
        exit("The system path does not appear to be set correctly.  Please open your path.php file and correct the path.");    
    }

    So- just remove the @.  Do you get a php error?

  • #5 / Jan 17, 2008 11:59am

    An Aussie

    18 posts

    The @ has been removed and the page reloaded - still same error <strike>mossage</strike> message as before Robin. PHP debugging had been turned in in the CP as well for all of the sites. Couldnt help but leave that spelling mistake in there… :-D

  • #6 / Jan 17, 2008 12:02pm

    Robin Sowell

    13255 posts

    Hm- should see some kind of error- at the top of index.php:

    error_reporting(0);
    change to
    error_reporting(E_ALL);

    Anything then?

  • #7 / Jan 17, 2008 12:12pm

    An Aussie

    18 posts

    Ok we got something…

    Warning: main(/home/domain1/public_html/system/core/core.system.php) [function.main]: failed to open stream: Permission denied in /home/domain2/public_html/index.php on line 119

    Warning: main(/home/domain1/public_html/system/core/core.system.php) [function.main]: failed to open stream: Permission denied in /home/domain2/public_html/index.php on line 119

    Warning: main() [function.include]: Failed opening ‘/home/domain1/public_html/system/core/core.system.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/domain2/public_html/index.php on line 119
    The system path does not appear to be set correctly. Please open your path.php file and correct the path.

  • #8 / Jan 17, 2008 12:21pm

    Robin Sowell

    13255 posts

    Yea- your path looks correct, but your permissions aren’t.  Hence it can’t include the required files.  I think you need to get a server guy in- make sure that you have permission to access the system folder from the other domains.  Personally?  I’d ask the host- tell them the setup, the error you’re getting, and see if they have a suggestion.  I’m pretty sure something is going to have to be tweaked server side to run them like this.  It’s a server level restriction.

    But- make sense what’s going on?

  • #9 / Jan 17, 2008 12:25pm

    An Aussie

    18 posts

    Absolutly Robin and thanks for all your help, I will have a word with the powers that be. 😊

    Have a great day in your part of the world…

  • #10 / Jan 17, 2008 12:36pm

    Robin Sowell

    13255 posts

    😉  You too- hope they can get it working for you quickly!

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

ExpressionEngine News!

#eecms, #events, #releases