Configuring Webalizer for sites

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

The configuration file is called webalizer.conf and 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 want to configure 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 want to configure 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 into the WEBppliance server using the Telnet or SSH remote login service.

  • If you are using the SSH service, type the following at the command prompt.

ssh <WEBppliance_name>
 

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

  • If you are using Telnet, type the following:

telnet mywebppliance

  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

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

  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

  • To modify the configuration file of FTP server

vi /etc/webalizer/ftp/webalizer.conf

 

The configuration file. Each option is preceded by a detailed description of the option.

  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  

!almost free webhosting, super sized account great features Sitemap 9 1 4 6 7