Use chroot with PHP and isolate your website
Go to file
Dryusdan 25d3d380ea Mise à jour de 'README.md' 2021-03-17 23:47:34 +01:00
LICENSE Initial commit 2021-03-15 17:40:05 +01:00
README.md Mise à jour de 'README.md' 2021-03-17 23:47:34 +01:00
chroot.sh Add curl and ssl capabilities on chroot + add php sessions folder 2021-03-16 18:12:49 +01:00

README.md

php-chrooter

Use chroot with PHP anbd isolate your website.

Configure

To use it, edit chroot.sh 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"

Use``

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