View webalizer stats without login to cpanel
To access webalizer stats outside Cpanel follow the following steps :
========================================================
root@server[~]# cd /home/username/www or cd /home/username/public_html
root@server[~] #ln -s ../tmp/webalizer stats
root@server[~] #chown username.username stats
root@server[~] #cd ../tmp
root@server[~] #chmod 755 ./
root@server[~] #chmod 755 ./webalizer
This will allow you to access the stats for your domain as : domain.com/stats .
========================================================
View awstats without login to cpanel :
To access awstats outside Cpanel follow the following steps :
========================================================
Step 1.
Download awstats from http://awstats.sourceforge.net
root@server [~]# cd /home/username/public_html
root@server [~]# wget http://prdownloads.sourceforge.net/awstats/awstats-6.6.tar.gz
Step 2.
Unzip awstats-6.6.tgz in user’s home folder
root@server[~]# tar -zxvf awstats-6.6.tar.gz
Step 3.
Copy the contents of the uncompressed cgi-bin folder to the user’s cgi-bin directory (this includes awstats.pl, awstats.model.conf, and the lang, lib and plugins sub-directories).
Path for cgi-bin directory of awstats is Awstats6.6/wwwroot/cgi-bin .
root@server[~]# cp -af awstats-6.6/wwwroot/cgi-bin .
Step 4.
If necessary (mostly not needed with most setups) edit the first line of awstats.pl file that is
#!/usr/bin/perl
Change it to the path where your Perl interpreter is installed. Default value works for most of Unix OS, but it can also be
#!/usr/local/bin/perl
root@server[~]# which perl
root@server [~]# vi cgi-bin/awstats.pl
Step 5.
Move AWStats icon sub-directories and all its content into public_html folder that is readable by your web server, for ex : /home/username/public_html/icons
root@master [~]# cp -af awstats-6.6/wwwroot/icon .
Step 6.
Copy the contents of awstats.model.conf file into a new file named awstats.myvirtualhostname.conf. This new file should be stored in
/home/username/public_html/cgi-bin.
root@server [~]# cp -af cgi-bin/awstats.model.conf cgi-bin/awstats.domain.conf
Step 7.
Edit the new config file (awstats.myvirtualhostname.conf) with your own setup :
- Change LogFile value with full path of your web server log file
(The path is:
LogFile=”/usr/local/apache/domlogs/domain.com”).
- Check if LogFormat has the value “1? (it means “NCSA apache combined/ELF/XLF log format”).
- Change DirIcons parameter to reflect relative path of icon directory.
(DirIcons=”/icons”)
- Edit SiteDomain parameter with the main domain name or the intranet web server name used to reach the website to analyze (example: www.yourdomain.com).
NOTE !
- Change DirData to use the same Statics file as Cpanel Awstats and do not loose any entry.
(DirData=”/home/user/tmp/awstats/”)
Step 8.
Now you can access the Awstats with the following URL :
www.domain.com/cgi-bin/awstats.pl?config=domain.com
========================================================
that’s all this will do it.
