Is there a way to get ISPConfig to run a bash script with the domain name of the new website as it's argument after a website is successfully created? I have to do some clean, filesystem changes, install some applications after the website is created. I was hoping there's an easy way to do that using a bash script.
ISPConfig has a event based core and provides plugins for that. Create a new plugin in /usr/local/ispconfig/server/plugins-available/ directory which binds a function to the "web_domain_insert" event and inside that function you can execute your actions. To enable the plugin, create a symlink in the plugins-enabled directory pointing to the plugin file. Take a look at the apache2 plugin to get a idea how this works.