Jump to content

Going behind web root directory


jargen

Recommended Posts

Hi, I have got a ftp script. which backs up all the folders into a directory. That works fine but when i try to set the directory to behind the web root it dosent work. I need it to back it up into /whatever the file is in /var/www so i tried this  "../../whatever" but it didnt work. if i set it to "whatever" it works fine (but the folder is in /var/www (/var/www/whatever)) when i need it in /whatever.

 

Any help.

Thanks

Link to comment
https://forums.phpfreaks.com/topic/190706-going-behind-web-root-directory/
Share on other sites

have you created the "/whatever" folder where it should be, and properly set permissions for it? if so, i would guess that it has something to do with the user that the FTP script is operating as not having appropriate permissions to access directories above the web root.

my point was that perhaps the script doesn't have the appropriate permissions to create the folder at that level. it might be worth creating that directory with the appropriate permissions manually and trying the script again.

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.