# cat /home/rebuild-awstats-092010.sh
#!/bin/sh
#----------------------------------------------------------------------
# Author: zEitEr (http://www.directadmin.com/forum/showthread.php?p=188477)
# Created at: Oct 02 13:41:41 NOVST 2010
# Updated at: Oct 07 15:33:41 NOVST 2010
#----------------------------------------------------------------------
for username in `ls -1 /usr/local/directadmin/data/users`; do
{
echo "=> Found ${username}";
for domain in `ls -1 /home/${username}/domains/`; do
{
echo "==> Found ${domain} for ${username}";
if [ -d "/home/${username}/domains/${domain}/awstats" ]; then
{
echo "===> Gonna rebuild Awstats for September 2010 on ${domain}";
perl /usr/local/awstats/tools/awstats_buildstaticpages.pl \
-awstatsprog=/usr/local/awstats/wwwroot/cgi-bin/awstats.pl \
-config=${domain} \
-year=2010 -month=09 \
-configdir=/home/${username}/domains/${domain}/awstats/.data \
-dir=/home/${username}/domains/${domain}/awstats \
-builddate=$Y$M \
-diricons=icon 2>&1 1>/dev/null
}
fi;
}
done;
}
done;
I've checked some boxes here and didn't find any problems. Here AWStats is working perfectly, also for the month September.
Exactly the same specification as yoursI am running CentOS 5.5 64bit and DirectAdmin version 1.36.2, and still the entire septemeber month is empty. What OS and version are you running?
In soviet russia shell script make you!
echo $LANG
LANG=en_US.UTF-8
export LANG
cd /usr/local/directadmin/scripts
wget -O awstats_process.sh http://files.directadmin.com/services/all/awstats/awstats_process.sh
./awstats_process.sh [b]username domain.com[/b]
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Ultimo Aggiornamento: Non aggiornato (Vedi 'Build/Update' sulla pagina awstats_setup.html)
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "it_IT.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
Hello,
It is a bug which we'll be addressing shortly (before the next month rolls around).
The bug entry is in the versions system here:
http://www.directadmin.com/features.php?id=1125
cd /usr/local/directadmin/scripts
wget -O awstats_process.sh http://files.directadmin.com/services/all/awstats/awstats_process.sh