Question
How to rebuild chroot template on a server with Plesk?
Answer
Execute the script using the following steps:
- Connect to the server via SSH;
- Download chroot managing script, unzip it and make executable:
# wget https://plesk.zendesk.com/hc/article_attachments/360023025260/update_chroot.zip
# unzip update_chroot.zip && chmod +x update_chroot.sh
- Run the script with
--rebuild
option 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.