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
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.
From what i'v saw in : /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php PHP: 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