SniperSister Wrote:
Code:
/etc/ispcp/awstats/awstats.vhcs_tpl.conf
When you add a new domain, Omega will generate a awstats-configuration file now. In the next step, we need to create a cronjob for each domain. Omega provides a function to create cronjobs, but this function is disabled at the moment, so we need to enable it. Open /var/www/ispcp/engine/ispcp-dmn-mngr and search for these lines (should be around 3540):
Code:
return $rs if ($rs != 0);
$rs = dmn_add_mta_data($dmn_data);
Below at the following lines:
Code:
# Modified by Snipersister for awstats Support
$rs = dmn_add_crontab_data($dmn_data);
return $rs if ($rs != 0);
Around line 3640 are the following lines:
Code:
$rs = dmn_del_mta_data($dmn_data);
return $rs if ($rs != 0);
Again, add the following code below:
Code:
# Modified by Snipersister for awstats Support
$rs = dmn_del_crontab_data($dmn_data);
return $rs if ($rs != 0);
For easir modification/browsing of the file you should say in Which section is the code, sections like '
Add Domain Data' & '
Delete Domain Data'
Code:
################################################################################
##
## Add Domain Data
##
return $rs if ($rs != 0);
$rs = dmn_add_mta_data($dmn_data);
Code:
################################################################################
##
## Delete Domain Data
##
$rs = dmn_del_mta_data($dmn_data);
return $rs if ($rs != 0);