Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   How to create a folder outside the root? (http://www.greenguysboard.com/board/showthread.php?t=9483)

flyeruk 2004-07-22 02:36 PM

How to create a folder outside the root?
 
Hi all,

Could someone tell me how I'd create a folder/directory outside of the root folder?

For example, I need to create a 'data' folder not in my httpdocs folder like this:

/home/vhosts/mydomain.com/data

Or could I just add a password protected directory in httpdocs like this:

/home/vhosts/mydomain.com/httpdocs/data/

Any help appreciated as I've searched google to no avail :(

Thanks in advance,
Lisa.

DangerDave 2004-07-22 05:09 PM

Lisa,

Assuming this is for a script or password protection.. you can just go ahead and create it as you normally do when creating a subdir.

Via your FTP client
or
Via the shell - ssh/telnet

DD

flyeruk 2004-07-22 05:24 PM

Thanks DD :)

It is for a script, and I tried via ftp using the 'mkdir' button in the remote window, but just got 550 permission denied.

I can easily create the data folder in my httpdocs directory but didn't know if this was a good idea for security reasons.

Will make a start tomorrow, been up now for 17 hours and need to be thinking straight when I start :D

Cheers,
Lisa.

DangerDave 2004-07-22 05:29 PM

Quote:

Originally posted by flyeruk
It is for a script, and I tried via ftp using the 'mkdir' button in the remote window, but just got 550 permission denied.
K Then it needs to be done via ssh/telnet, but based on the fact that you cant do it via your FTP client.. you may not have shell acccess, or permission below the visible directory.

You may need your host to create it for you

DD


All times are GMT -4. The time now is 12:33 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc