Jump to content

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


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.