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.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
September 14, 2007 8:35am
Subscribe [3]#31 / Sep 15, 2007 10:04am
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
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
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
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
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
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
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
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
There is no such selection “Can Edit” in my forum permisions… :roll:
#40 / Sep 16, 2007 9:19am
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
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
MSimos, if you make a feature request of that, I promise you we’ll look at it.
#43 / Sep 17, 2007 8:31am
Thank you Derek, I will do just that! 😊