Installation


Web Server Mode or CGI Mode?

Before you install Sawmill you will need to decide which mode you want to run it in. Sawmill will run as a stand-alone in web server mode or in CGI mode. If you plan to run Sawmill in web server mode, please see the section below called Web Server Mode Installation. If you plan to run it as a CGI program, under an existing web server, please see the section below, called CGI Mode Installation. If you don't know which way you want to install it, this section will help you with that decision.

In web server mode, Sawmill runs its own web server, and serves statistics using it. In CGI mode, Sawmill runs as a CGI program under another web server. In both modes, you access Sawmill through a web browser on your desktop.

In brief, web server mode is ideal if you want installation to be as easy as possible. CGI mode is the better choice if you want to run Sawmill on a shared web server system, or a system where you have limited access.

Here are the specific details of the advantages and disadvantages of web server mode vs. CGI mode:

The advantages of Web Server Mode:

Advantages of CGI mode:

Please continue your installation with either Web Server Mode Installation or CGI Mode Installation depending upon your choice.

Web Server Mode Installation

Sawmill needs to be installed according to the platform you intend to run it on:

If you have any problems installing Sawmill in web server mode, please see the Troubleshooting Web Server Mode section.

CGI Mode Installation

To install Sawmill in CGI mode, you will need to extract the Sawmill program, and copy it to your web server's CGI directory.

IMPORTANT: There are different versions of Sawmill for each platform (e.g. Windows, Macintosh, Linux, etc.), and a version designed for one platform will not work on another. In CGI mode, you must install the version of Sawmill that matches your server's platform, not the version that matches your desktop computer. For instance, if you're running Windows at home, and you install Sawmill on your ISP's web server, and the web server is running Linux, you need to install the Linux version of Sawmill on the web server, not the Windows version. If you don't know what platform your web server is running, you can find out by asking your ISP or system administrator, if it's a UNIX system, you can also find out by logging in by telnet and typing "uname -a".

Make sure you understand the previous paragraph! And now download the correct version of Sawmill, the one that matches your web server platform. Make sure you do the FTP download in BINARY mode, or Sawmill will not work.

You install Sawmill in CGI mode differently depending on the type of your web server. See Web Server Information if you need help finding your cgi-bin directory.

Troubleshooting Web Server Mode

If Sawmill is not working in web server mode (if you're not getting a page back when you enter the URL, or if you're getting an error page), try these suggestions:

  1. Make sure you installed the version of Sawmill that matches the computer you're running Sawmill on (for instance, you can't run the Solaris version of Sawmill on Windows). If there were several choices available for your platform (e.g. Old and New, static and dynamic), try all of them.

  2. Make sure you downloaded Sawmill in BINARY mode.

  3. In UNIX, make sure the Sawmill program is executable.

  4. Contact support@sawmill.net.

There are more troubleshooting suggestions in Troubleshooting.

Troubleshooting CGI Mode

If Sawmill is not working in CGI mode (if you're not getting a page back when you enter the URL), try these suggestions:

  1. Make sure you installed the version of Sawmill that matches your server, not your desktop system. If there were several choices available for your platform (e.g. Old and New, static and dynamic), try all of them.

  2. Make sure you uploaded the Sawmill program in BINARY mode.

  3. On UNIX, make your cgi-bin directory writable, using "chmod a+w (cgi-bin)" if you have telnet access, or using your FTP client's "change permissions" feature if you have only FTP access.

  4. Create a directory called LogAnalysisInfo in your cgi-bin directory, using "mkdir (cgi-bin)/LogAnalysisInfo" on UNIX with telnet access, or by using your FTP client's "make directory" feature if you don't have telnet access. If your server is UNIX, also make it writable using "chmod -R a+rwx (cgi-bin)/LogAnalysisInfo" if you have telnet access, or by using your FTP client's "change permissions" feature if you have only FTP access.

  5. Contact support@sawmill.net. If you're having trouble, we will install Sawmill for you at no cost, even if it's just the trial version.

There are more troubleshooting suggestions in Troubleshooting.