Create Folder

Discussion in 'Installation/Configuration' started by jerome1362, Jan 27, 2014.

  1. jerome1362

    jerome1362 New Member

    Hello, I would like to create a folder on the FTP site to racine (root). Where there ssl, tmp, web ... Off SSH (in sudo or not) or FTP : "Permission denied".


    -----

    Bonjour, je voudrais créer un dossier dans le FTP d'un site à la racine (root). Où il y a ssl, tmp, web... Hors en SSH (en sudo ou non) ou en FTP sa me dit permission dennied
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    There shold nor be any folders created as thats a system folder, folders should be created only in the "web" folder and in the "private" folder.. If you want to do it anyway, then you will have to remove the protection of the folder with chattr -i /path/to/folder as root, then add the new fiolder as root and then add the protection again.
     
  3. jerome1362

    jerome1362 New Member

    Thank you. If I created a folder where I park is an application that stores a file on plesk httpsdocs not like isp web config and I could not change the link.

    Thank you its fonctione
     
  4. QuetzalFirst

    QuetzalFirst Member

    Hi
    I create protected folder but it is create under web. I would like to create it on the private folder...
    I need particular access to folder (contain of .git) and i dont want .git under same folder as web (working-tree)
    Any hint?
    Thank you
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats not possible, your request makes no sense if you take in account which folders are mde for which purpose. The privatr folder is for files that shall not be accessible by http or https. The web folder protection is. .htacess protection for web folders. So having a .htaccess file in a folder that is and shall not be accessible over the web makes no sense.
     
  6. QuetzalFirst

    QuetzalFirst Member

    ok... And i access private folder with ???? ftp ? ssh ?
    I dont like to put protected files under web root... except files that need protection in web site.
    But if we need to access authentication provide by http server (for git)...
    ok... maybe you can hint me for folder structure... I'm urge to deploy many site and dead line is near!
     
  7. QuetzalFirst

    QuetzalFirst Member

    but the best place to put repository folder is a same level than web... And with special http access (only for git and not ftp) ...
    Can I do this? Faster... I can do it manually and eventually add this feature (with an option like "git web site" that create all the task (folder, git init, and so on)
     
  8. QuetzalFirst

    QuetzalFirst Member

    ok... I understand...
    ftpd and sshd access level that contain web and private
    httpd access only below web
    I will put
    web
    -- public_html
    -- repository
    with protected folder "repository"
    and that do the job if i can protected access of web level
     
  9. QuetzalFirst

    QuetzalFirst Member

    Work but dont want to see
    mydomain.com/public_http
    just
    mydomain.com/
    How I can do this?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    The / directory of our website is the web directory. Remove the public_http directory and put your website directly into the web directory.
     
  11. QuetzalFirst

    QuetzalFirst Member

    For previous post... I modify vhost to obtain what i need. So root document is
    DocumentRoot /var/www/ambianceselecte.com/web/public_http
    (and modify other stuff accordingly). I forget to modify something? I have other bugs; apache dont process my php. But this is surely unrelated with ISPConfig (I migrate from wimp to lamp, so hourrah Bill Gates for trouble and make harder simple task ;))
    This a workaround because modyfing files outside ISPCoonfig...

    Ok... To clarify what I try
    I want to separate the web part from git repo part but I need auth process from the httpd.
    So... In the best case, folder struct like
    private/
    repository/
    web/
    I can program the stuff to create folder repository. All I need is the apache directive to have
    http:[email protected]/repository/web.git
    and the server reply with the password request.
    So, the repository will have same access as protected folder but out of the main web folder!
    Eventually, repository will contain other stuff project and I will program module (or plugin) to do that with ispconfig 3 (as an option).
     
  12. QuetzalFirst

    QuetzalFirst Member

    After some investigation, seen much easier to create a plugin for repositorycreation in same level that web and write appropriate vhost directive.
    I'm right?
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    You can e.g. put the repository folder into the private folder and then add an alias in the apache directives field (or in the vhost master template if you want to use this for all sites). Or you create a plugin for that.
     
  14. QuetzalFirst

    QuetzalFirst Member

    Ok... And i'm suppose that I can do it in the same level than web or private... I dont want user remove repository by error from ssh or ftp...
    I will have to do the plugin... Not all clients will have access to create more git repo except pre create web.repo
    Thank you
     

Share This Page