(866) 366-3640 - support@sagonet.com
Sago Logo
Banner

   
Log in / create account Discussion History Go to the site toolbox
Category talk:HOWTO

How to Setup AWstats for Access Outside of CPanel

1. Upload awstats-6.7.zip (or current version) into the cgi-bin folder and extract its contents there.

2. CHMOD to 755 /public_html/cgi-bin/awstats-6.7/wwwroot/cgi-bin/awstats.pl

3. In File Manager, locate the icon folder under /public_html/cgi-bin/awstats-6.7/wwwroot and drag it onto the public_html folder. Rename that folder to awstatsicon

4. Locate the awstats.model.conf file under /public_html/cgi-bin/awstats-6.7/wwwroot and rename it, using the domain name to replace “model” (include the dot com, net or whatever, e.g. awstats.mydomain.com.conf)

5. Edit this conf file as follows, in any editor that shows line numbers.

 a.	Line 51 replace the user name and the domain name:
LogFile="/usr/local/apache/domlogs/username/mydomain.com"
 b.	Line 153 replace the domain name:
SiteDomain="mydomain.com"
 c.	Line 168 add additional parked domain names, if any.
 d.	Line 203 replace the user name:
DirData="/home/username/tmp/awstats/"
 e.	Line 222 replace the domain name:
DirIcons=”http://mydomain.com/awstatsicon”


6. Create stats.htm containing the following code, replacing the domain name for the 2 occurrences of same.:

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Stats for MyDomain.com</title>
</head>
<frameset rows="1,*" cols="*" framespacing="0" frameborder="NO" border="0">
 <frame src="blank.txt" name="topFrame" scrolling="NO" noresize >
 <frame src="http://www.MyDomain.com/cgi-bin/awstats-6.7/wwwroot/cgi- bin/awstats.pl?config=MyDomain.com" name="mainFrame"  frameborder="no" scrolling="auto">
</frameset>
<noframes><body>
</body></noframes>
</html> 

7. Create an empty file blank.txt then upload stats.htm and blank.txt to the domain’s public_html folder.

8. Access AWstats outside of CPanel by browsing:

http://MyDomain.com/stats.htm