-
Go to Tools & Settings > Event Manager.
-
Click Add Event Handler.
-
Select the event that will trigger the handler from the “Event” list.
-
Under “Priority”, set the handler execution priority by selecting it
from the list or typing a custom number in the field. Priority
becomes important if you assign several handlers to a single event.
In this case, handlers are triggered according to their priority in
descending order (the event triggers the handler with the highest
priority first, the handler with the second highest priority next,
and so on). -
Select the system user on whose behalf the handler will be executed
from the “User” list.Note: The server administrator can create the event handlers that will
be run on the server on behalf of user root. If you wish to
restrict usage of the root account, create an empty file with
nameroot.event_handler.lock
in the location
/usr/local/psa/var/
. -
Type the path to the shell script or a .bat file containing the
commands to be executed whenever the event handler triggers in the
“Command” field (for example,/usr/local/psa/bin/script.sh
or
C:WindowsTempscript.bat
).Note: Make sure to give your script the execute permission. You can do
so by running the following command:chmod 755 <script.sh>
-
Click OK.
Knowledge Base
Event Handlers – Adding Event Handlers
Related Posts
Knowledge Base
Hosting Wiki
Industry
Partners







PRODUCT
PROGRAMS
COMMUNITY
© 2025 WebPros International GmbH. All rights reserved. Plesk and the Plesk logo are trademarks of WebPros International GmbH.
Managed with
with Plesk WP Toolkit