installing awstats for virtual domains
download awstats ina seperate folder
cd /usr/local/src
wget wget http://jaist.dl.sourceforge.net/sourceforge/awstats/awstats-6.7.tar.gz
tar -xzvf awstats-6.7.tar.gz
cd awstats-6.7/
cp -R * /websites/nokia.com/webstats
cd /websites/nokia.com/webstats
perl tools/awstats_configure.pl
Do you want to continue setup from this NON standard directory [yN] ? y
Config file path ('none' to skip web server setup): none
Do you want me to build a new AWStats config/profile file (required if first install) [y/N] ? y
Your web site, virtual server or profile name: SITE_NAME.COM
Directory path to store config file(s): /websites/nokia.com/webstats/wwwroot/cgi-bin/
edi the config files located in /websites/nokia.com/webstats/wwwroot/cgi-bin/
LogFile="/websites/nokia.com/log/access.log"
SiteDomain="SITE_NAME.COM"
HostAliases="SITE_NAME.COM www.SITE_NAME.COM 127.0.0.1 localhost"
DNSLookup=1
DirData="/websites/nokia.com/webstats/"
DirIcons="/web/awstats/icon"
mkdir /websites/nokia.com/web/awstats
cp -R /websites/nokia.com/webstats/wwwroot/icon/ /websites/nokia.com/web/awstats/
this perl files will update the web staticts
perl /websites/nokia.com/webstats/tools/awstats_buildstaticpages.pl -awstatsprog=/websites/nokia.com/webstats/wwwroot/cgi-bin/awstats.pl -update -config=nokia.sys.qualiproj.qualispace.com -dir=/websites/nokia.com/web/awstats/
To add advanced security to this folder - awstats we add a htacces type authentication.
<Directory /websites/nokia.com/web/awstats>
AllowOverride AuthConfig
AuthName "MyPrivateStuff"
AuthType Basic
AuthGroupFile /dev/null
AuthUserFile /websites/privatefolderpasswd/nokia.com/htpasswd
AuthName Enterpassword
Require valid-user
</Directory>
now view http://nokia.sys.qualiproj.qualispace.com/awstats/awstats.nokia.sys.qualiproj.qualispace.com.html
it will prompt you fro user name password
now you can view you site stats
--
No comments:
Post a Comment