Configuring Webalizer for Sites

Webalizer reports are generated in accordance with the options set in the Webalizer configuration file.

The configuration file is called webalizer.conf and is placed in the respective Webalizer directories (Web/FTP) within the site's home directory.

Note: The webalizer.conf file for the Web server is located at /home/virtual/<site_name>/etc/webalizer/web, where <site_name> is the name of the site for which you configured Webalizer.

The webalizer.conf file for the FTP server is located at /home/virtual/<site_name>/etc/webalizer/ftp, where <site_name> is the name of the site for which you configured Webalizer.

You can modify the configuration options to change the default behaviour of Webalizer reports.

Note: Webalizer reports must be configured from the command line interface.

To change the configuration options:

  1. Log on to the server using the Telnet or SSH remote login service.
  2. To assume root privileges for the site, use the following command.

    su

  3. Change your working directory to the home directory of the site using the following command.

    /usr/sbin/chroot /home/virtual/<site name>

    where /usr/sbin/chroot is the command to change your working directory to the home directory of the site

    /home/virtual/<site name> 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/<site name>,otherwise it will result in an error.

  4. At the command prompt, enter the following command to modify the configuration file.
  5. Change the configuration options as needed.
  6. To save the changes and exit the configuration file, enter the following command.

    :wq
     

  7. To view the report, run Webalizer.