Old 26th January 2012, 18:19
critorix critorix is offline
Junior Member
Join Date: Jan 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question Default website files & dir


All the websites I host have the same structure so, as there is some default directories and files created by ISPConfig (error, stats, index.html,...), I wondered where I can specify to copy some other files and directory on create.

Did someone here know the way to do this?

Thanks in advance
Reply With Quote
Sponsored Links
Old 26th January 2012, 18:32
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts

Create a new ispconfig serverside plugin that listens to the event "web_domain_insert" and add your code to create a custm site strzcture there. The plugin name should be after "apache2" in alphabetical order to ensure that your code gets executed after the apache2 plugin created the website base directories.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 28th January 2012, 16:32
narg narg is offline
Junior Member
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

From what i'v saw in :

PHP Code:
if (file_exists($conf['rootpath'] . '/conf-custom/index/standard_index.html_'.substr(escapeshellcmd($conf['language']),0,2))) {
exec('cp ' $conf['rootpath'] . '/conf-custom/index/standard_index.html_'.substr(escapeshellcmd($conf['language']),0,2).' '.escapeshellcmd($data['new']['document_root']).'/web/index.html'); 
look at:

default conf's are here:
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
SquirrelMail login not working glenneh Installation/Configuration 13 9th April 2011 21:01
Intel 82815 Video Card & Ubuntu 8.10 harvey527 Kernel Questions 8 5th November 2010 15:51
localhost postfix/master: fatal: bind port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
Exim MTA dazblade Server Operation 4 16th July 2007 19:42
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 20:38

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

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