How can I enable the same PHP modules available in the root user to client user?

Discussion in 'Installation/Configuration' started by Ephraim A. Gariguez, Jan 22, 2025.

  1. Ephraim A. Gariguez

    Ephraim A. Gariguez New Member

    Hi everyone I'm trying to configure nextcloud on ISPConfig client account however some php commands are not available, PHP modules for the root user is different to the client side. How can I enable it so that the php module accessible to root account will also be available to client account. The command php -m for root account and client account returns a different sets of loaded php modules.
     

    Attached Files:

  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    This is likely because the root user is using the default PHP version installed on the system, whereas your client is using a different version. What PHP version is configured for the users webspace? Do you have all the required module packages installed for that php version?
     
  3. Ephraim A. Gariguez

    Ephraim A. Gariguez New Member

    Hi Pyte,
    I have enabled the same version of php on the system PHP8.3 and is also showing PHP8.3 on a client web userspace when viewed on the browser on phpinfo except for the modules on the terminal when they are called are different, how can I fix this php-m when root shows all the modules I need when logged in on the user account it is limited as can be seen on the screen shot. Where are the modules located on the user space so that I can point and move the modules missing required to run nextcloud. Or it has something to do with php-cli configuration?
     
  4. pyte

    pyte Well-Known Member HowtoForge Supporter

    You most likely forgot to add php8.3 under System -> Server Config -> XXXX -> Jailkit -> Jailkit Chrooted App Section.
    IIRC you have to add it like "php8_3".

    Searching the forum for "php + jail" should result in plenty topics aswell
     
    Ephraim A. Gariguez likes this.
  5. Ephraim A. Gariguez

    Ephraim A. Gariguez New Member

    Thanks pyte, for pointing me to the right direction, a quick search on the "php+ jail" quickly solved my despair :) .
     
    pyte likes this.

Share This Page