Post Web-site create script?

Discussion in 'Installation/Configuration' started by kervin, May 8, 2012.

  1. kervin

    kervin New Member

    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.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
  3. kervin

    kervin New Member

    Thanks a lot! Very helpful.

Share This Page