Use chroot with PHP and isolate your website
Go to file
Dryusdan 82b5653cf0 Update README 2021-03-15 18:03:29 +01:00
LICENSE Initial commit 2021-03-15 17:40:05 +01:00
README.md Update README 2021-03-15 18:03:29 +01:00
chroot.sh Create chroot.sh 2021-03-15 17:59:45 +01:00

README.md

php-chrooter

Use chroot with PHP anbd isolate your website.

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"
libnss_dns The path where libnss_dns lib is stored. Use find /lib /usr/lib -name libnss_dns.so.2 to find lib.