Here it is in english. Google doesn´t translate the CodeBox:
Code:
Modify your /etc/ispcp/ispcp.conf:
OLD: AWSTATS_ACTIVE = no
NEW: AWSTATS_ACTIVE = yes
OLD: AWSTATS_MODE = 0
NEW: AWSTATS_MODE = 0
===========================
Please check if these directory´s exist in your ispcp.conf:
missing: AWSTATS_CACHE_DIR = /var/cache/awstats
included: AWSTATS_CONFIG_DIR = /etc/awstats
included: AWSTATS_ENGINE_DIR = /usr/lib/cgi-bin
included: AWSTATS_WEB_DIR = /usr/share/awstats
included: AWSTATS_ROOT_DIR = /var/www/ispcp/engine/awstats
Create the folder:
(as root) mkdir /var/cache/awstats
===========================
Stop Services:
/etc/init.d/ispcp_daemon stop
/etc/init.d/apache2 stop
===========================
Create symlink for Apache
cd /etc/apache2/sites-enabled/
ln -s ../sites-available/01_awstats.conf 01_awstats.conf
==========================
Enable the Proxy for AWStats:
cd /etc/apache2/mods-enabled
ln -s ../mods-available/proxy.conf proxy.conf
ln -s ../mods-available/proxy.load proxy.load
ln -s ../mods-available/proxy_http.load proxy_http.load
Edit proxy.conf:
OLD:
<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from all
#Allow from .example.com
# Define the character set for proxied FTP directory listings
ProxyFtpDirCharset UTF-8
</Proxy>
NEW:
<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from all
Allow from 127.0.0.1
#Allow from .example.com
# Define the character set for proxied FTP directory listings
ProxyFtpDirCharset UTF-8
</Proxy>
==========================
Cronjobs:
Please check your ispCP cron about the AWstats entry
===========================
Rebuild your Configs:
MySQL:
mysql --user=root -p
USE ispcp
UPDATE `domain` SET `domain_status` = 'toadd' WHERE `domain_status` = 'ok';
UPDATE `subdomain` SET `subdomain_status` = 'toadd' WHERE `subdomain_status` = 'ok';
UPDATE `domain_aliasses` SET `alias_status` = 'toadd' WHERE `alias_status` = 'ok';
quit
===========================
Start the engine
/var/www/ispcp/engine/ispcp-rqst-mngr
===========================
Start the servies
/etc/init.d/ispcp_daemon start
/etc/init.d/apache2 start
===========================
Initial the stats manuelle the first time:
/var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl
Greez BeNe