Configuring Webalizer for sites

Webalizer reports must be configured from the command line interface. You can not configure Webalizer using the control panel.

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

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

To change the configuration options:

  1. Log on to the server using the Telnet or SSH remote login service.

ssh <server_name>
 

For example, if you have a server by the host name example, then type, ssh example

telnet <server_name>

  1. To assume root privileges for the site, using the following command.

su

  1. 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

  1. At the command prompt, type the following command to modify the configuration file.

  2. To modify the configuration file of Web server

vi /etc/webalizer/web/webalizer.conf

vi /etc/webalizer/ftp/webalizer.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.

  1. Change the configuration options as needed.

  2. To save the changes and exit the configuration file, type the following command.

:wq
 

To view the report, run Webalizer.

Related Topics