Help - Search - Members - Calendar
Full Version: adding a folder to the main level
The Planet Forums > Control Panels > Plesk > Plesk HOWTOs
avidcat
Guess that is the best that I can describe it. I need to add a folder in the plesk control panel at the same level as my httpdocs and cgi-bin etc. folders. But when I try to add this folder it says permission denied.

Actaully what it says is this:

Unable to create directory /data: mkdir: cannot create directory `/home/httpd/vhosts/*****.net/data': Permission denied filemng: Error occured during /bin/mkdir command.

A script that I am trying to install is asking me to create a folder here, this is actually what they are saying:

Create a directory called 'data' or whatever you would like to name it somewhere where the web server cannot access it's contents.

Another way of saying this would be to say: create a 'data' directory where it cannot be accessed from a web browser when users are browsing your web site.


The examples they give are these:
Fictional Examples where you can create it:
Create it in for example: /home/yourdomain.com/data
Let's say that your cgi-bin directory is situated in: /home/yourdomain.com/cgi-bin
Let's also say your public HTML directory is situated in: /home/yourdomain.com/www


I appreciate any help,
thanks,
Nick
Squire
The easiest way is to log in via SSH, cd to the location you want the file and use mkdir to create your folder that is outside of the surfable path. Then you'll probably want to chown it to the normal user:group since it sounds like it's going to be accessed by your script.
avidcat
Thanks for your help, I have another issue.

is the relative path to this folder /home/mywebsite.com/data

or is there another way of directing to this folder? I get an error of folder not found with that, I wonder if it is possible that my virtual dedicate server is using another name for /home? to point to this folder.

Thanks,
Nick
Squire
The path on Plesk should be something like the following Nick:

/home/httpd/vhosts/mywebsite.com/data
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.