Jailkit and vHost Subdomain

Discussion in 'Installation/Configuration' started by customhost, Sep 4, 2021.

  1. customhost

    customhost New Member

    Hi all,
    I have a set up a Jailkit Shell user for a website.
    Now I set up a vHost Subdomain for this website and want to access its base folder through the shell. However, that does not work.
    Code:
    ls /var/www/clients/clientXXX/webYYY
    just returns the /web/ directory but not the subdomain base folder.
    Also, Symlinks does not seem to work.
    Code:
    ls /var/www/vhostsubdomain.domain.com
    Just returns "No such file or directory".
    How can I change the Jailkit config so that both problems can be solved?
    Many thanks in advance.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    When you are in a jail, then the / directory is the directory /var/www/clients/clientXXX/webYYY/, this means a command
    "ls /var/www/clients/clientXXX/webYYY" or "ls /var/www/vhostsubdomain.domain.com" must return "No such file or directory" as in fact there is no such file or directory. run:

    ls /

    instead or:

    ls /web

    to get the content of the web directory or:

    ls /myvhostsubdomain/

    to get the content of the directory of the host subdomain, assumed that you replace the word "myvhostsubdomain" with the directory name that you have chosen for the host subdomain.
     
  3. customhost

    customhost New Member

    That was quick - thank you very much for your prompt reply!

    ls /var/www/clients/clientXXX/webYYY actually returns the /web/ directory, but not the subdomain base folder.
    ls /var/www/clients/clientXXX/webYYY/myvhostsubdomain returns "No such file or directory".
    ls /myvhostsubdomain/ returns the subdomain base folder properly.

    Due to ls /var/www/clients/clientXXX/webYYY/myvhostsubdomain fails, I also cannot install any scripts through composer. The install will also just fail with "No such file or direcrory".
    I'd be grateful for any hints on this topic.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Off course it fails, that's explained above already. You simply used the wrong command, the correct command would have been:

    ls /myvhostsubdomain

    I've explained that already above:

    You might want to make yourself familiar with what a jail is in a computer system and what chroot is in Linux. The whole topic is not ISPConfig specific in any way.
     
    customhost likes this.

Share This Page