Hi, I've installed AWstats locally (offline) in order to analyze more quickly and easily some stats.
The case is that this has tought me a lot about functioning of AWstats that make me non-understand how it is implemented in cPanel.
Here come what I seen plus my questions:
1) When seeing the stats in my server, the page shown claims to be the AWstats 6.7 (build 1.892), but when I look to the source code, it clearly says
After making a search in all the server, I found that the engine awstats.pl is the only file with that name all along the server, so I don't understand what is happening or what kind of changes made cPanel to implement the stats. This awstats.pl is located at /usr/local/cpanel/src/3rdparty/gpl/awstats-6.6/wwwroot/cgi-bin/awstats.pl
Where is the v6.7 note coming from? ( NOTE: WrapperScript="" )
2) When you see the stats in the browser, some icon files are not found (os/bsd.png, os/psp.png, mime/flash.png, mime/jscript.png). They are not present at /usr/local/cpanel/base/images/awstats/browser/ but they are in the original folder /usr/local/cpanel/src/3rdparty/gpl/awstats-6.6/wwwroot/icon/browser/ . I solved this problem by copying the files from the install folder.
I can understand that cPanel use awstats v6.6, but why were the files non-synced?
3) Finally, I want to introduce some customizations to the .conf file, like default spanish language and so, but I really don't know where is located the real .conf file that cPanel is copying to the accounts. I've tried modifying the /usr/local/cpanel/src/3rdparty/gpl/awstats-6.6/wwwroot/cgi-bin/awstats.model.conf but I found out that it is not used as model to be copied for new accounts, and there is no other copy all around. Anybody knows how to workaround all this?
Regards
KB
The case is that this has tought me a lot about functioning of AWstats that make me non-understand how it is implemented in cPanel.
Here come what I seen plus my questions:
1) When seeing the stats in my server, the page shown claims to be the AWstats 6.7 (build 1.892), but when I look to the source code, it clearly says
Code:
$REVISION='$Revision: 1.887 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1;
$VERSION="6.6 (build $REVISION)";
Where is the v6.7 note coming from? ( NOTE: WrapperScript="" )
2) When you see the stats in the browser, some icon files are not found (os/bsd.png, os/psp.png, mime/flash.png, mime/jscript.png). They are not present at /usr/local/cpanel/base/images/awstats/browser/ but they are in the original folder /usr/local/cpanel/src/3rdparty/gpl/awstats-6.6/wwwroot/icon/browser/ . I solved this problem by copying the files from the install folder.
Code:
cp -u /usr/local/cpanel/src/3rdparty/gpl/awstats-6.6/wwwroot/icon/browser/*.* /usr/local/cpanel/base/images/awstats/browser/
cp -u /usr/local/cpanel/src/3rdparty/gpl/awstats-6.6/wwwroot/icon/os/*.* /usr/local/cpanel/base/images/awstats/os/
cp -u /usr/local/cpanel/src/3rdparty/gpl/awstats-6.6/wwwroot/icon/mime/*.* /usr/local/cpanel/base/images/awstats/mime/
cp -u /usr/local/cpanel/src/3rdparty/gpl/awstats-6.6/wwwroot/icon/flags/*.* /usr/local/cpanel/base/images/awstats/flags/
cp -u /usr/local/cpanel/src/3rdparty/gpl/awstats-6.6/wwwroot/icon/cpu/*.* /usr/local/cpanel/base/images/awstats/cpu/
cp -u /usr/local/cpanel/src/3rdparty/gpl/awstats-6.6/wwwroot/icon/clock/*.* /usr/local/cpanel/base/images/awstats/clock/
cp -u /usr/local/cpanel/src/3rdparty/gpl/awstats-6.6/wwwroot/icon/other/*.* /usr/local/cpanel/base/images/awstats/other/
3) Finally, I want to introduce some customizations to the .conf file, like default spanish language and so, but I really don't know where is located the real .conf file that cPanel is copying to the accounts. I've tried modifying the /usr/local/cpanel/src/3rdparty/gpl/awstats-6.6/wwwroot/cgi-bin/awstats.model.conf but I found out that it is not used as model to be copied for new accounts, and there is no other copy all around. Anybody knows how to workaround all this?
Regards
KB