ISPConfig 3, Chroot with JailKit and PHP 8 on cli

Discussion in 'Installation/Configuration' started by Tondiar, Aug 6, 2021.

  1. Tondiar

    Tondiar New Member

    Hi,
    I have a website where PHP 8 is active, set in ISPConfig, now I need to habe PHP 8 on CLI, but I just can't get it to work. The customer logs in via shell user (chroot JailKit).
    Maybe someone can tell me what I am doing wrong.
    In /etc/jailkit/jk_init.ini I added
    Code:
    [php8_0]
    comment = php version 8.0
    paths = /usr/bin/php8.0, /usr/lib/php/8.0/, /usr/lib/php/20200930/, /usr/share/php/8.0/, /etc/php/8.0/cli/, /etc/php/8.0/mods-available/
    includesections = php_common
    
    and added php8_0 to the php section
    Code:
    [php]
    comment = default php version and libraries
    paths = /usr/bin/php
    includesections = php_common, php7_4 php8_0
    
    than I executed the following command:
    When the customer checks /usr/bin/php* only php php7.3 and php7.4 is showing, but not php8.0
    What do I miss?
    Help is really appreciated
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Look in the /etc/jailkit/jk_init.ini for examples on how the different PHP versions are set up.
    However, you do not mention what OS and what ISPConfig version you have. On my Debian 10 with ISPConfig 3.2.5 there is already a [php8_0] section.
     
  3. Tondiar

    Tondiar New Member

    I found the mistake. I forgot a comma
    I had
    but it must be
    These little things will kill me one day. Wasted 2 h and it was just a little ,
    Now it works as ist should :D
     
    ahrasis and till like this.

Share This Page