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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.