Jailkit is an easy-to-use tool to create and maintain jail environments for shell users on Linux. In this guide, I will show you how to move PHP and its dependencies into the jail so that the jailed user can execute PHP scripts inside the jail on an ISPConfig server.
Starting with ISPConfig 3.2, there is already a section for PHP in the jailkit .ini file, so you can skip the step to edit jk_init.ini file.
Open the jk_init.ini file with an editor if you are using ISPConfig 3.1 (and not 3.2):
nano /etc/jailkit/jk_init.ini
and paste the following lines at the end of the file:
[php] comment = the php interpreter and libraries executables = /usr/bin/php directories = /usr/lib/php, /usr/share/php, /etc/php, /usr/share/php-geshi, /usr/share/zoneinfo includesections = env [env] comment = environment variables executables = /usr/bin/env
Then run the command (this command is required in ISPConfig 3.1 and 3.2):
jk_init -c /etc/jailkit/jk_init.ini -f -k -j /var/www/clients/client1/web1 php
To install PHP and its dependencies into the jail.
To add PHP for all newly jailed shell users that you add in ISPConfig, follow these steps:
The post How to add PHP support for jailed SSH users in ISPConfig 3 appeared first on FAQforge.
In July 2025, git received CVE-2025-48384, a high vulnerability allowing arbitrary code execution when cloning…
Last year, we collaborated with two design student teams from Loughborough University in the UK.…
January 15, 2026 – Canonical, the publisher of Ubuntu and provider of open source security,…
How to install GitLab on Ubuntu 24.04 will be explained in this blog post with…
Do you know what was always there but has increased multiple times in the last…
The Digital Operational Resilience Act (DORA) came into force across the EU on January 17,…