Add php phar to ispconfig ssh website user

Discussion in 'Installation/Configuration' started by jackermann, Jul 24, 2024.

  1. jackermann

    jackermann New Member

    Hello,
    When I test it as root user and output the php -m modules, it is also listed.
    when I log in as website ssh user its not list.
    Code:
     php -m
    [PHP Modules]
    Core
    date
    filter
    hash
    json
    libxml
    openssl
    pcntl
    pcre
    random
    Reflection
    session
    sodium
    SPL
    standard
    zlib
    
    [Zend Modules]
    
    can someone show me how to make this available as website ssh user?

    Thanks - Jules​
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What is listed?
    Make what available?
     
  3. jackermann

    jackermann New Member

    If you output the modules as root user with “php -m”, “Phar” is listed and is therefore available.
    If you output the modules as ssh website user with “php -m”, “Phar” is not listed and is not available.
    My question is: How do I make it available for all the ssh website user
     
  4. pyte

    pyte Well-Known Member HowtoForge Supporter

    You most likly use a different php version between the 2 users. If you are trying to use composer as a jailkit user, you should just install it on the system and make the composer application available in the jailkit settings
     
  5. jackermann

    jackermann New Member

    php version is the same, composer is available only the PHP module Phar is not.
    When I run composer update I get the following message.
    PHP's phar extension is missing. Composer requires it to run. Enable the extension or recompile php without --disable-phar then try again.
     
  6. jackermann

    jackermann New Member

    Now I have found a solution, I have added the desired php version in the following file /etc/jailkit/jk_init.ini under
    PHP:
     includesections.
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Jailkit Includes get managed in ISPConfig under system > server config.
     
    ahrasis likes this.

Share This Page