Jump to content

Getting permission errors think I know why


Looktrne

Recommended Posts

I installed  a  script to my site

 

httpdocs/dating-webdate-to-dolphon/

 

but I get alot of permission issues trying to run the script from the sub folder of httpdocs..

 

if I upload script to httpdocs the permissions are fine...

 

how can I give dating-webdate-to-dolphin/  the same permission as httpdocs... the permission numbers are set but I think its the server not allowing this here is an error I get when running the script but the chmod is set properly

 

Warning: main() [function.main]: open_basedir restriction in effect. File(/header.inc.php) is not within the allowed path(s): (/var/www/vhosts/peapull.com/httpdocs:/tmp) in /var/www/vhosts/peapull.com/httpdocs/dating-webdate-to-dolphin/inc/design.inc.php on line 21

 

I really want to run this script from the subdirectory anyone know what is stopping this??

 

it is apache/linux server and I have plesk for control panel

 

thanks for any ideas on this

 

Paul

sounds like your server is in 'safe mode':

http://us.php.net/features.safe-mode

 

are you trying to fopen a file by specifying something like 'http://domainname.com/file.php'? usually you cannot use the http: when fopen'ing a file, the path must start with '/' to signify a local file.

Safe mode is not checked in the domain setup through plesk...

 

the permission error is comming from the script trying to require files in other directories...

 

but it seems it only happens when I install in a directory outside of the home httpdocs...

 

I need subdirectorys to act just like home directorys and don't know why they are not

 

anyway thanks for the suggestion but safe mode is not on...

 

any other ideas?

 

Paul

You can try to set the file permissions in the PHP script just to make sure with chmod() function.  It may also be a simple case of not setting sub-folder permissions correctly.  Often, if you set the permissions for a 'main' folder and then create a sub-folder later...the subfolder will still be created WITHOUT the desired permissions.  You may need to go in and change the sub-folder perms.

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.