#1  
Old 8th May 2012, 22: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
  #2  
Old 9th May 2012, 08:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,202
Thanks: 829
Thanked 5,420 Times in 4,262 Posts
Default

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)
  #3  
Old 11th May 2012, 20:32
kervin kervin is offline
Junior Member
 
Join Date: May 2012
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

Thanks a lot! Very helpful.
Reply With Quote
Reply

Bookmarks

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 12:15
bash script for finding and replacement in any web page code (.htm file) vl72 Programming/Scripts 0 19th February 2011 15:12
Create new site, but without configuring email for that domain pulsorock General 1 24th September 2008 08:37
Setting up a multi site web server and DNS wxman Installation/Configuration 7 31st October 2007 17:33
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 03:40


All times are GMT +2. The time now is 02:29.


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