Old 8th May 2012, 23:46
kervin kervin is offline
Junior Member
Join Date: May 2012
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default Post Web-site create script?

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.
Reply With Quote
Sponsored Links
Old 9th May 2012, 09:18
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts

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.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
kervin (11th May 2012)
Old 11th May 2012, 21:32
kervin kervin is offline
Junior Member
Join Date: May 2012
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts

Thanks a lot! Very helpful.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with fetchmail/getmail brianetilley Installation/Configuration 3 27th January 2012 13:15
bash script for finding and replacement in any web page code (.htm file) vl72 Programming/Scripts 0 19th February 2011 16:12
Create new site, but without configuring email for that domain pulsorock General 1 24th September 2008 09:37
Setting up a multi site web server and DNS wxman Installation/Configuration 7 31st October 2007 18:33
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 04:40

All times are GMT +2. The time now is 10:26.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.