• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Running script from Plesk Event 'Hosting settings created'

NikolasP

New Pleskian
Hello!

I'm trying to run a simple bash script when a new account is created, because I need to move some files automatically. So what I did:

  1. I have created a simple bash script for testing if Plesk run it, called move_some_files.sh under /var/www
    Code:
    #!/bin/bash
    
    echo "${NEW_SYSTEM_USER} ${NEW_DOMAIN_NAME}" >> move_some_files.log
    I created this file as root and did chmod +x.
  2. I created a new 'Hosting settings created' event running as root and with the highest priority with this command: /var/www/move_some_files.sh
  3. I created a new customer with to test it

    But, is not running the script! If I try some command directly on the event like 'touch /var/www/new_file' it's created, so the event is running, but not my script.

    Any idea?
 
Back
Top