Update README

This commit is contained in:
Dryusdan 2021-03-15 23:18:26 +01:00
parent 82b5653cf0
commit 0773101239
1 changed files with 7 additions and 1 deletions

View File

@ -2,10 +2,16 @@
Use [chroot with PHP](https://www.php.net/manual/fr/function.chroot.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"` |
| libnss_dns | The path where libnss_dns lib is stored. Use `find /lib /usr/lib -name libnss_dns.so.2` to find lib. |
| libnss_dns | The path where libnss_dns lib is stored. Use `find /lib /usr/lib -name libnss_dns.so.2` to find lib. |
## 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.