Script for creating a chroot environment
This script creates a chroot environment for use with php-fpm. To be called with the chroot directory and a php binary. ./scriptname /dir/to/chroot /usr/bin/php It copies all libraries needed by php (by using ldd) and it also copies timedata and dns data (or there will be…