Introduction
How can I get a PHP or Perl script of my choosing to execute upon cPanel account creation?
Procedure
This would require a postacct hook to work. Specifically, the following on our newer cPanel systems.
Account::Create::Post
For more information on setting up standardized hooks, please see the following documentation.
https://documentation.cpanel.net/display/DD/Guide+to+Standardized+Hooks