|Dave's Online Memory||You: 184.108.40.206 Monday Feb 18, 2019 8:20PM PST|
While this document outlines the steps required to install awstats for a new server and for virtual hosts, this process can take several dozen minutes. By the time one locates the documentation, reviews the steps required, creates the directories, edits the config files, etc..., a lot of time can be wasted. To accommodate the rapid addition of the services of awstat to a new virtual host, this tool was created.
The tool was developed on a GNU/linux, RedHat 7.1 system, and is now running on a Slackware box, but has not been tested on other systems. Most of the configuration settings, especially file names and paths, have been localized to the top of the file for easy modification. The script is heavily documented for easy understanding, and the procedure that it automates is completely outlined here, but this document will explain its usage and operation.
The program may be installed anywhere in root's path; location doesn't matter. It expects a single argument, the virtual host name. For example:
The program will output nothing but a message upon completion naming the log file containing a complete description of changes made, and the contents of changed files. This file should be carefully inspected for errors. Note that the program will refuse to run if this file exists. This feature prevents overwriting the output of previous runs. Simply delete the file, or rename before calling the program. By default, this file is /root/install.awstats4host.out
All diagnostic output from subprocesses is captured in this file, also. Errors such as missing directories can be diagnosed, and progress assessed before attempting to rerun the program. Note that any edits made to configuration files will not be undone in the event of errors. Be very careful about multiple runs for the same virtual host.
The URL for the awstats output will be:
These files may be obtained by downloading this tarball.
|Top of Page||FEEDBACK Comments, Corrections & Questions welcome|