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

Unable to create directory

Discussion in 'Plesk 11.x for Linux' started by tatane, Jun 21, 2012.

  1. tatane

    tatane New Pleskian

    16
    35%
    Joined:
    Feb 23, 2011
    Messages:
    11
    Likes Received:
    0
    I would put a folder outside the ftp only when I try to create a folder directly from the file manager I get the following message: Erreur: Impossible de créer le répertoire //XDsecure: filemng: Error occurred during /bin/mkdir command.(Knowing that XDsecure is the folder I want to create). Thank you in advance
     
  2. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    FTP & Folder permissions

    Am trying to understand your problem but with difficulty. Did you mean you want to create a folder outside the httpdocs folder using the plesk filemanager or FTP?

    If so, that is not possible through FTP due to permissions. If you want to create such a folder, you can do so through SHELL, give it permissions and ownership same as that of "httpdocs" and then through FTP you can write to it.
     
  3. tatane

    tatane New Pleskian

    16
    35%
    Joined:
    Feb 23, 2011
    Messages:
    11
    Likes Received:
    0
    Yes, I want to create a folder outside httpdoc. How do I do?
     
  4. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    If you have shell then its walk-over. Just SSH your server then

    mkdir /var/www/vhosts/yourdomain.com/new_folder

    If you don't have SHELL, then you can also manipulate it by creating a subdomain or domain name and instead specifying the folder you want ie /new_folder/
     
  5. tatane

    tatane New Pleskian

    16
    35%
    Joined:
    Feb 23, 2011
    Messages:
    11
    Likes Received:
    0
    What is shell?
     
  6. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Shell Related

    Shell is a user program or it's environment provided for user interaction. Shell is an command language interpreter that executes commands read from the standard input device (keyboard) or from a file.

    You can use putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) to run such commands. Infact even plesk comes with a Java terminal.
     
  7. tatane

    tatane New Pleskian

    16
    35%
    Joined:
    Feb 23, 2011
    Messages:
    11
    Likes Received:
    0
    and how we see if in shell?
     
  8. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    If you meant how do I see the folder in shell, then you use the command "ls", if you meant how do i know am in shell, then obviously you are NOT, you would know when you are :)
     
  9. tatane

    tatane New Pleskian

    16
    35%
    Joined:
    Feb 23, 2011
    Messages:
    11
    Likes Received:
    0
    Sorry for my English. So I managed to connect to the console shell. I is added
    mkdir /var/www/vhosts/mydomain.fr/XDsecure

    but I get this message
    mkdir: cannot create directory mkdir /var/www/vhosts/mydomain.fr/XDsecure : no such file or directory
     
  10. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Please replace the "mydomain.fr" with the actual domain name on your server in which you want to create the folder.
     
  11. tatane

    tatane New Pleskian

    16
    35%
    Joined:
    Feb 23, 2011
    Messages:
    11
    Likes Received:
    0
    my domain is sd-25645.dedibox.fr So I put mkdir /var/www/vhosts/sd-25645.dedibox.fr/XDsecure ?
     
  12. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Yes,

    Yes.

    So you have exactly

    mkdir /var/www/vhosts/sd-25645.dedibox.fr/XDsecure
     
  13. tatane

    tatane New Pleskian

    16
    35%
    Joined:
    Feb 23, 2011
    Messages:
    11
    Likes Received:
    0
    yes, exactly
     
  14. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Has it worked :) are you now happy and sorted ...
     
  15. tatane

    tatane New Pleskian

    16
    35%
    Joined:
    Feb 23, 2011
    Messages:
    11
    Likes Received:
    0
    no, no folder named xdsecure was created in the ftp
     
  16. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    After creating the folder, you can do the following:

    chown -R <your-ftp-username> : psacln /var/www/vhosts/sd-25645.dedibox.fr/XDsecure

    Replace <your-ftp-username> with the primary ftp username for the domain name sd-25645.dedibox.fr. And remove the spaces before and after :

    Now, you should be able to manage and write to that folder through FTP using the above
     
  17. tatane

    tatane New Pleskian

    16
    35%
    Joined:
    Feb 23, 2011
    Messages:
    11
    Likes Received:
    0
    You can write the exact code without spaces and smiley thank
     
  18. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Well if I do, this forum software will drop some characters and you wont see everything as it should be...
     
  19. tatane

    tatane New Pleskian

    16
    35%
    Joined:
    Feb 23, 2011
    Messages:
    11
    Likes Received:
    0
    You can not put me in private message?
     
  20. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
Loading...