AWStats reports must be configured from the command line interface. You cannot configure AWStats using the control panel.
AWStats statistics is available in the directories:
/home/virtual/
<siteN>/fst/var/www/html/awstats/web
- Web server statistics/home/virtual/
<siteN>/fst/var/www/html/awstats/ftp
- ftp server statisticsHere, <siteN> is site number, for example, site 1
, site 2
, site 3
and so on.
AWStats reports are generated in accordance with the options set in the AWStats configuration file. AWStats configuration files are stored in the following directories inside the site's file system:
/home/virtual/
<siteN>/fst/etc/awstats/awstats.ftp.
<siteN>.conf
/home/virtual/
<siteN>/fst/etc/awstats/awstats.
<siteN>.conf
/etc/httpd/conf/
<siteN>/awstats
You can modify the configuration options to change the default behavior of AWStats reports.
AWStats directory is protected and by default the site administrator user has access to it:
home/virtual/
<siteN>/fst/etc/awstats/.passwd
/home/virtual/
<siteN>/fst/var/www/html/awstats/.htaccess
To change the configuration options:
ssh <server_name>
For example, if you have a server by the host name example
, then type ssh example
telnet <server_name>
su
/usr/sbin/chroot /home/virtual/<siteN>
where:
/usr/sbin/chroot
is the command to change your working directory to the home directory of the site
/home/virtual/
<siteN>
is the absolute path to the site's home directory
Important: When you use this command, you must leave a space between the command /usr/sbin/chroot
and the directory path /home/virtual/
<siteN>,
otherwise it will result in an error.
vi /etc/awstats/awstats.<siteN>.conf
vi /etc/awstats/awstats.ftp.<siteN>.conf
The configuration file opens. Each option is preceded by a detailed description of the option. Use the definitions in the configuration file to help you modify the file.
:wq
To view the report, run AWStats.