How to Install AWStats on HostRocket sites

This tutorial may work on other hosts as well, but please make sure that your host allows you to install AWStats first.

What are Subdomains and Pointed Domains?

Subdomains are subfolders that are underneath your root directory. For example, stats.domain.com is the same as domain.com/stats. Pointed domains are a completely different domain that is pointed to a subfolder. For example, domain2.com would be pointed to domain1.com/domain2, but the user will only see domain2.com.

Config Settings

You are going to follow all of the previous instructions for installing AWStats with a few minor changes. Rename the awstats.model.conf to awstats.subfolder.domain.com.conf. Replace subfolder with the name of the subdomain or pointed domain and replace domain.com with your actual domain. For example, if I have a subdomain on this site called forum, the file should look like awstats.forum.rniccage.com.conf. If I have a second domain on this site that is pointed to a subfolder called second-site, then the file should look like awstats.second-site.rniccage.com.conf.

In the awstats conf file, instead of changing your LogFile setting to LogFile="/usr/local/apache/domlogs/yourdomain.com", change it to LogFile="/usr/local/apache/domlogs/subfolder.yourdomain.com". Using the examples above, it would be /usr/local/apache/domlogs/forum.rniccage.com for the subdomain and /usr/local/apache/domlogs/second-site.rniccage.com for the pointed domain.

Next go down to where it says SiteDomain="" and change that to SiteDomain="subfolder.yourdomain.com" for the subdomain or SiteDomain="pointeddomain.com" for the pointed domain. Using the same examples as above, it would be SiteDomain="forum.rniccage.com" for the subdomain and SiteDomain="second-site.com" for the pointed domain.

Upload AWStats

The awstats conf file should now be uploaded to the cgi-bin folder (or any folder that you want to password protect) in the subfolder instead of in the root directory. The other files are all uploaded in the same structure as was previously done, except they should be uploaded within the subfolder.

Opera
Valid CSS!
Valid XHTML 1.0 Strict
HostRocket Web Hosting