- Plesk for Linux
How to rebuild chroot template on a server with Plesk?
To rebuilt it, execute the script using the following steps:
- Connect to the server via SSH;
- Download chroot management script, unzip it and make executable:
# wget https://raw.githubusercontent.com/plesk/kb-scripts/master/update-chroot/update-chroot.sh
# chmod +x update-chroot.sh
- Run the script with
--rebuildoption to remove the chrooted template from all domains, create a new template and apply it:
# ./update-chroot.sh --rebuild
Note: If the type of shell access for system user of a subscription differs from
/bin/bash (chrooted), the old template will not be removed from its directory.