Use chroot with PHP and isolate your website
Go to file
Dryusdan 3a39354d20 Update README 2021-03-18 16:15:55 +01:00
LICENSE Initial commit 2021-03-15 17:40:05 +01:00 Update README 2021-03-18 16:15:55 +01:00 Add list file of chrooted directory 2021-03-18 16:15:08 +01:00


Use chroot with PHP anbd isolate your website.


To use it, edit and edit 3 variables :

Variable Description
CHROOTPATH The path where this script store all files, bin, lib needed to chroot website (create this before)
ZONEINFO The path where zoneinfo is stored. Find this with find /usr -type d -name "zoneinfo"
LISTCHROOTFILE The list file who contain all chrooted directory


bash --install copy all dependencies and store it on CHROOTPATH. bash --upgrade upgrade all dependencies in CHROOTPATH. bash --configure /my/website/path add all dependencies in website folder mostly with hardlink.