spdwrench Posted August 22, 2007 Share Posted August 22, 2007 I am getting the following error: Warning: main() [function.main]: open_basedir restriction in effect. File(/engine/load_configuration.php) is not within the allowed path(s): (/var/www/vhosts/abmatch.com/httpdocs:/tmp) in /var/www/vhosts/abmatch.com/httpdocs/phpBB2/login.php on line 2 line 2 has the following code require "engine/load_configuration.php"; Why wont it let me access this file from the php login.php file??? how can I make this load?? I dont understand anything about why this file cannot be accessed from another directory?? am I using the right path? do I need to fix permissions? any help would be appreciated. Paul Link to comment https://forums.phpfreaks.com/topic/66163-not-in-allowed-path-error-how-do-i-fix-this-please/ Share on other sites More sharing options...
trq Posted August 22, 2007 Share Posted August 22, 2007 am I using the right path? Um... how would we know? What is your directory structure? Is this phpBB2 directory contained within the phpBB2 directory? Link to comment https://forums.phpfreaks.com/topic/66163-not-in-allowed-path-error-how-do-i-fix-this-please/#findComment-330946 Share on other sites More sharing options...
spdwrench Posted August 22, 2007 Author Share Posted August 22, 2007 the structure is like this httpdocs/engine/load_configuration.php the phpbb2 file I am trying to call the require"load_configuration.php"; from is in the phpBB2 directory httpdocs/phpBB2/login.php I thought both the path were shown in the error display? thanks for any help Paul Link to comment https://forums.phpfreaks.com/topic/66163-not-in-allowed-path-error-how-do-i-fix-this-please/#findComment-331020 Share on other sites More sharing options...
trq Posted August 22, 2007 Share Posted August 22, 2007 You need to use... require "../engine/load_configuration.php"; Link to comment https://forums.phpfreaks.com/topic/66163-not-in-allowed-path-error-how-do-i-fix-this-please/#findComment-331035 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.