SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

Installation of Webreport

  1. Making the binary
    type
    make webreport

This will compile the webreport.c file into a webreport binary.

2) Installation
I usually put it in the /usr/local/bin directory

As root:
cp webreport /usr/local/bin

3) Configuration

Edit the webreport.conf file and then copy it to /etc

By default, webreport looks in /etc/webreport.conf for all the configuration information.

What is available for configuration in the webreport.conf file? There are required lines and optional values.

The required lines are:

stop_prog = program to run to stop the web server.

            This is normally "apachectl stop" for
            and apache server. 

I use:
stop_prog = /usr/local/apache/bin/apachectl stop


start_prog = program to run to start the web server.

I use:
start_prog = /usr/loca/apache/bin/apachectl start


mail_prog = program to use for sending email reports

Most systems come with the "mail" command. I recomend you use it.

I use:
mail_prog = mail


log_dir = directory where all the logs go

This assumes you put all your logs in the same directory. That's what apache does by default.

At the beginging of the month, webreport will automatically delete your old web logs. It uses the log_dir line to know which directory to delete lines from.

Basicly, webreport runs "rm -rf log_dir"

I use:
log_dir = /usr/local/apache/logs

Optional configuration lines


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.