How to Set Up Webalizer

From DISI
Revision as of 00:05, 2 September 2022 by Jgutierrez6 (talk | contribs)
Jump to navigation Jump to search

Introduction

Webalizer creates and keeps track of user traffic on a website.

Instructions

Reference Material

  1. Install Webalizer
    • yum -y install webalizer
  2. Create configuration files for websites. Replace everything in '<>' with appropriate values.
    • cp /etc/webalizer.conf /etc/webalizer.d/<website_name>.conf
      vim /etc/webalizer.d/<website_name>.conf
      
      //Here are the important variables to uncomment and replace.
      LogFile        /var/log/httpd/<website_name>/access_log
      OutputDir      /var/www/usage/<website_name>/
      HistoryName     /var/lib/webalizer/<website_name>/webalizer.hist
      IncrementalName /var/lib/webalizer/<website_name>/webalizer.current
      ReportTitle    Usage Statistics for <website_name>
      HostName       <website_name>
  3. Create all the directories