Home > Plesk > Plesk remove chroot for domain

Plesk remove chroot for domain

December 9th, 2011

I haven’t found the way how to disable creating chroot-folders on webspace with new domain creation.

So, on Parallels forum support offered me to create Event manager handler.

Open Plesk -> Tools & Settings -> Event Manager -> Add New Event Handler

Fill the form:

Event:

Default domain (the first domain added to a subscription/webspace) created
Priority:

highest (100)
User:

root
Command:

/usr/local/psa/admin/sbin/chrootmng –remove –source=/var/www/vhosts/chroot –target=/var/www/vhosts/${NEW_DOMAIN_NAME}

This handler will remove chroot from newly created domain immediately.

Categories: Plesk Tags: , ,
Comments are closed.