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

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.