Installing SARG on ClearOS 6.x

Today i have successfully installed and configured SARG on my work ClearOS 6.x based router. Main goal was to get better reports from existing data.

What we need is:

  1. Installing WGET
  2. Installing RPMForge repo

    Now we have to disable rpmforge repo to avoid conflicts between different software (for example during yum update process). You have to edit /etc/yum.repos.d/rpmforge.repo and change enabled=1 to 0 (zero).
  3. Installing SARG
  4. Configuring SARG
    You can edit /etc/sarg/sarg.conf to modify any variables you want. Also we have to fix problem with subdirectories
  5. Testing SARG – generate one-shoot report
  6. Access SARG reports from your IP
    To see reports generated by SARG you have to edit “/etc/httpd/conf.d/sarg.conf” and the line “# Allow from your-workstation.com” to the IP of your workstation. You can add as many IP as you want. After that it is required to restart webserver
  7. Testing SARG scripts

    There should be no information after running those scripts
  8. The end
    If feverything goes ok, you should visit http://you-server-ip/sarg/ to see reports generated by SARG 🙂

ps. Thanks Tony Ellis from clearfundation forum for tips how to do it right.

Leave a Reply

Your email address will not be published. Required fields are marked *