Skip to content

Instantly share code, notes, and snippets.

@psyray
Last active February 28, 2022 22:04
Show Gist options
  • Save psyray/1a188a3240e4219a51a751b549e487eb to your computer and use it in GitHub Desktop.
Save psyray/1a188a3240e4219a51a751b549e487eb to your computer and use it in GitHub Desktop.
Jailkit for Debian Stretch (add PHP, Drush, Composer, NodeJS, NPM, Ruby, Gem, Compass)
[php]
comment = the php interpreter and libraries
executables = /usr/bin/php,/usr/bin/php5.6,/usr/bin/php7.0,/usr/bin/php7.1
directories = /usr/lib/php, /usr/share/php, /usr/share/php5, /etc/php, /usr/share/php-geshi, /usr/share/zoneinfo, /etc/snmp, /usr/share/snmp
includesections = env
[env]
comment = environment variables
executables = /usr/bin/env
[mysql-client]
comment = mysql client
executables = /usr/bin/mysql, /usr/bin/mysqldump
paths = /usr/lib/libmysqlclient.so
[drush]
comment = drush (drupal command line)
executables = /usr/local/bin/drush
includesections = php, mysql-client, uidbasics, netbasics
directories = /etc/ssl/certs, /usr/share/ca-certificates
[composer]
comment = composer
executables = /usr/local/bin/composer
includesections = php, uidbasics, netbasics
[node]
comment = NodeJS
executables = /usr/bin/npm, /usr/bin/node, /usr/bin/nodejs
directories = /usr/lib/node_modules
[ruby]
comment = Ruby
executable = /usr/bin/ruby, /usr/bin/gem, /usr/bin/gem2.3
directories = /usr/lib/ruby, /usr/lib/x86_64-linux-gnu/ruby, /var/lib/gems, /usr/share/rubygems-integration
[compass]
comment = Compass
executables = /usr/bin/compass
includesections = ruby
directories = /usr/share/compass
Copy link

ghost commented Feb 18, 2019

Remove php 5.6

@develth
Copy link

develth commented Apr 7, 2020

You should update directories to paths

The entries executables , regularfiles , directories and libraries are all replaced by the entry paths.. They are still supported, but are handled similar to the paths entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment