#1  
Old 26th January 2012, 17: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

Hi,

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
critorix
Reply With Quote
Sponsored Links
  #2  
Old 26th January 2012, 17:32
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,041
Thanks: 826
Thanked 5,384 Times in 4,231 Posts
Default

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
  #3  
Old 28th January 2012, 15:32
narg narg is offline
Junior Member
 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

From what i'v saw in :
/usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php

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:
/usr/local/ispconfig/server/conf-custom/index

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


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


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