1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Need to create a folder outside of httpdocs

Discussion in 'Plesk for Linux - 8.x and Older' started by AvidCat, Aug 21, 2005.

  1. AvidCat

    AvidCat Guest

    I will be installing a script and the setup is telling me to create a folder where it can not be accessed by a web browser.

    Here is exactly what they say:

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

    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

    When I try to create it in the file manager I get this error
    Unable to create directory /data: mkdir: cannot create directory `/home/httpd/vhosts/*****.net/data': Permission denied filemng: Error occured during /bin/mkdir command.

    I tried to create with my ftp software and I also get an error that it was not created. Anyone knwo how to make this type of folder?

  2. jamesyeeoc

    jamesyeeoc Guest

    Do you have root login via SSH? If so, then login as root by SSH, then:

    cd /home/httpd/vhosts/*****.net
    mkdir data

    chown ftpusername : psacln data

    (you will need to use the real ftp username, and do not put the spaces around the : ) This 'chown' step may not be needed, check your install docs for the script.

    The chown command given assumes you want the contents of the data directory to be accessible via the normal Plesk domain user. If your script instructions tell you ownership should be different, then follow those instructions. Also if they tell you the permissions need to be set, then also follow those directions as well.
  3. AvidCat

    AvidCat Guest

    :confused: I have no idea what SSH is. Can you explain that a little better.

    Also where exactly do I type "chown ftpusername : psacln data"?

    Is this being done with my ftp software or with the plesk control?

    Sorry this is my first day of Virtual Server School :)
  4. jamesyeeoc

    jamesyeeoc Guest

    SSH is Secure SHell access. It is a way to access the Linux shell prompt (think of it as a DOS prompt) on the remote server. This would be the place to type the commands I posted earlier.

    Normally directory creation can also be done through ftp, but since you were getting an error, I was giving an alternative method. If you do not have root access to the server, then nevermind about SSH.

    Are you the administrator of the server, or a domain owner/user??
  5. AvidCat

    AvidCat Guest

    Yes I am the domain owner and this is my server I just set up.

    Also I just saw from GoDaddy that they sent out when I signed up about a client software to use to connect to SSH.

    I am the admin of the server, but the log in I created for this account is a different log in than I use for the plesk.

    I will need to check out this SSH, hopefully it will help create this folder.
  6. jamesyeeoc

    jamesyeeoc Guest

    You said 'domain owner'. Do you have the password for user 'root'? If so, then definitely try using SSH. I use OpenSSH, available at:


    You will need to login as user 'root' to the server.
  7. Who-m3

    Who-m3 Guest

    Your /Private directory is for this type of data. It's non-web accessable, but it is FTP accessable. The site itself can access the files and data stored in this section, but it is designed to be a safe place for you to keep anything. Perhaps a review of the readme.txt file in that directory will give you an idea as to what all you can do with it.
  8. AvidCat

    AvidCat Guest

    Thanks I see that folder and the readme. The script I am installing also wants me to change the folder over to 777, will this have any effect on the folder being private? I assume not sine it wants the folder to be private to begin with.

    I just tested out the private folder, but when I run the final setup online it says that the data directory I supplied is not correct. In the config file I typed /home/yourdomain.com/private

    that was just an example they used but I assumed that the /home was the correct way of saying it as in their example. Do you have a suggestion as to another way of directing the config.cgi to this location?

    Thanks and I appreciate your help,

  9. Dubliner@

    Dubliner@ Guest

    been a while..but

    Hi Avid.

    I know it's being a while, but, I'm just wondering if you got this sussed.

    I'm trying to do something similar and found this post via google.


  10. dbgrebey

    dbgrebey Guest


    I have a similar question.

    I need to place my MySQL database connection outside of the /httpdocs/ folder for security reasons.

    If I put it in the /private/ folder, will I be able to include it as such?

    <?php require_once('../private/mysql_connect.php');

    ...or will the permissions on /private/ prevent me from accessing it?

  11. dbgrebey

    dbgrebey Guest

    ...apparently not.

    How do I set my permissions so that:

    1.) I can FTP to a directory outside of httpdocs

    2.) My site will be able to reference this file.