HI Folks. Good day. I'm wondering what I need to to in order to enable the PHP modules for the PHP CLI on Jailkit users. If I login directly on the machine and run php -m, I get this: Code: [PHP Modules] apc apcu calendar Core ctype curl date dom exif FFI fileinfo filter ftp gd gettext hash iconv igbinary imap intl json libxml mbstring memcache memcached msgpack mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix pspell readline Reflection session shmop SimpleXML soap sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer xml xmlreader xmlrpc xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache Login in with a JailKit user, and running the same command, I get this: Code: [PHP Modules] Core date filter hash libxml openssl pcntl pcre Reflection session sodium SPL standard zlib [Zend Modules] Please, let me know what else information is relevant to post here regarding this case. Appreciate if some light can be shed on how to setup the PHP modules shared to the Jailkit PHP. Thank you.
You need to add the needed files to the jail. For more info, try Internet Search Engines with Code: site:howtoforge.com add php to jail
Thanks for the quick response. This worked for me (after installing php 8.1 of course): Code: jk_init -c /etc/jailkit/jk_init.ini -f -k -j /var/www/clients/client1/web38/ php8_1
You can simply add it to the site: Sites > example.com > Options > Jailkit chroot app sections Be aware that this will be used instead of the sections in Server config > server1.example.com > Jailkit > Jailkit chroot app sections. You can also add sections here so it will be added to all jails for all users.