Looktrne Posted February 15, 2008 Share Posted February 15, 2008 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 Quote Link to comment Share on other sites More sharing options...
mainewoods Posted February 15, 2008 Share Posted February 15, 2008 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. Quote Link to comment Share on other sites More sharing options...
Looktrne Posted February 15, 2008 Author Share Posted February 15, 2008 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 Quote Link to comment Share on other sites More sharing options...
mem0ri Posted February 15, 2008 Share Posted February 15, 2008 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. Quote Link to comment Share on other sites More sharing options...
Looktrne Posted February 19, 2008 Author Share Posted February 19, 2008 actually had an issue with plesk not setting up my domains properly thanks Paul Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.