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.

Forum and subdomain story

September 14, 2007 8:35am

Subscribe [3]
  • #31 / Sep 15, 2007 10:04am

    Derek Jones

    7561 posts

    Do you know where you system folder is in relation to your subfolder?  You should be able to form a relative path to it.  If not, you can always use a full server path.

  • #32 / Sep 15, 2007 11:03am

    MSimos

    62 posts

    I have used the full server path since i don’t know the relation between the two folders. Found it from the DOCUMENT_ROOT in my php info and it says /var/www/vhosts/mysite.gr/httpdocs/

    I put that plus /system in my path.php and I get the message: The system path does not appear to be set correctly. Please open your path.php file and correct the path. 😠

  • #33 / Sep 15, 2007 11:06am

    Derek Jones

    7561 posts

    In the index.php file in your subdomain folder find this code at the bottom:

    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.");    
    }

    And replace it with:

    error_reporting(E_ALL);
    ini_set('display_errors', 1);
    
    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.");    
    }

    This will enable any errors to show; just cut and paste this new code in place of the old code.

  • #34 / Sep 15, 2007 11:17am

    MSimos

    62 posts

    These are the errors:

    Warning: main() [function.main]: open_basedir restriction in effect. File(/var/www/vhosts/maclife.gr/httpdocs/system/core/core.system.php) is not within the allowed path(s): (/var/www/vhosts/maclife.gr/subdomains/forums/httpdocs:/tmp) in /var/www/vhosts/maclife.gr/subdomains/forums/httpdocs/index.php on line 122

    Warning: main(/var/www/vhosts/maclife.gr/httpdocs/system/core/core.system.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/maclife.gr/subdomains/forums/httpdocs/index.php on line 122

    Warning: main() [function.main]: open_basedir restriction in effect. File(/var/www/vhosts/maclife.gr/httpdocs/system/core/core.system.php) is not within the allowed path(s): (/var/www/vhosts/maclife.gr/subdomains/forums/httpdocs:/tmp) in /var/www/vhosts/maclife.gr/subdomains/forums/httpdocs/index.php on line 122

    Warning: main(/var/www/vhosts/maclife.gr/httpdocs/system/core/core.system.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/maclife.gr/subdomains/forums/httpdocs/index.php on line 122

    Warning: main() [function.include]: Failed opening ‘/var/www/vhosts/maclife.gr/httpdocs/system/core/core.system.php’ for inclusion (include_path=’.:/usr/share/pear’) in /var/www/vhosts/maclife.gr/subdomains/forums/httpdocs/index.php on line 122

  • #35 / Sep 15, 2007 11:19am

    MSimos

    62 posts

    Heres my path.php file:

    <?php
    
    // ------------------------------------------------------
    // DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
    
    // ------------------------------------------------------
    // Path to the directory containing your backend files
    
    $system_path = "/var/www/vhosts/maclife.gr/httpdocs/system/";
    
    // ------------------------------------------------------
    // MANUALLY CONFIGURABLE VARIABLES
    // See user guide for more information
    // ------------------------------------------------------
    
    $template_group = "";
    $template = "";
    $site_url = "http://forums.maclife.gr";
    $site_index = "";
    $site_404 = "";
    $global_vars = array(); // This array must be associative
    
    ?>
  • #36 / Sep 15, 2007 11:20am

    Derek Jones

    7561 posts

    That is as I suspected; your server is not setup to allow file inclusion between subdomains.  You might put a support ticket in with the host and see if they can allow this for you, by adding your other domain paths into the open_basedir allowed paths.  Once that’s squared away, you’ll be good to go!

  • #37 / Sep 15, 2007 11:35am

    MSimos

    62 posts

    Oh.. I got it Derek. I guess I will do that! Thank you for all the help…

    By the way, do you know how I can stop forum members from editing their posts by themselfs?

    Thanx again.

  • #38 / Sep 15, 2007 7:51pm

    Derek Jones

    7561 posts

    Sure: Look in your preferences for the forums you wish to not allow that, and uncheck the “Can Edit” box for the member group.

  • #39 / Sep 16, 2007 3:30am

    MSimos

    62 posts

    There is no such selection “Can Edit” in my forum permisions… :roll:

  • #40 / Sep 16, 2007 9:19am

    Derek Jones

    7561 posts

    Say, well what do you know…  Sorry MSimos, my memory thought for sure that that was one of them.  Darned preferences!  Alas, it is not.  Users can always edit their own, moderators can edit anyone’s posts but Super Admins, and Super Admins can edit anybody’s.  You can remove the Edit button from your themes, but if users craft the URL manually, they would still be able to edit their own posts.

  • #41 / Sep 16, 2007 1:52pm

    MSimos

    62 posts

    Thats kind of weird though isn’t it? I mean having users being able to edit their own posts could change the forums content infinetly…

    I guess that should be added in a future version of ee forums. 😏

  • #42 / Sep 16, 2007 3:06pm

    Derek Allard

    3168 posts

    MSimos, if you make a feature request of that, I promise you we’ll look at it.

  • #43 / Sep 17, 2007 8:31am

    MSimos

    62 posts

    Thank you Derek, I will do just that! 😊

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

ExpressionEngine News!

#eecms, #events, #releases