Jump to content

not in allowed path error.... ?? how do I fix this please.


spdwrench

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.