Analog 6.0
Building a Web Server, for Windows
Requirements
- [Optional] Generating reports via on-line form...
- Perl
- \cgi-bin
Download
- Home : http://www.analog.cx/
- Package(win32 binary) : analog_60w32.zip
Documentation
- Documentation: http://www.analog.cx/docs/Readme.html
Our Configuration
- Install to : C:\www\analog
- Server webroot : C:\www\webroot
- Generated report location, via analog.exe : http://localhost/stats/Report.html
- [Optional] Generate report via on-line form : http://localhost/stats/anlgform.html
- Server cgi-bin : C:\www\cgi-bin
- Perl.exe : C:\www\perl\bin\perl.exe
Setup
- Unpack to C:\www\analog
- Create directory C:\www\webroot\stats
[base directory of generated reports] - Place directory C:\www\analog\images under directory C:\www\webroot\stats
[analog will look into C:\www\webroot\stats\images for its static image files] - [Optional] on-line form files
- Move file C:\www\analog\anlgform.html to directory C:\www\webroot\stats
- Move file C:\www\analog\anlgform.pl to directory C:\www\cgi-bin
Configuration
- Edit the following fields under file C:\www\analog\analog.cnf
LOGFILE C:\www\Apache2\logs\access.log
[location of the main Apache log file]OUTFILE C:\www\webroot\stats\Report.html
[location of generated report]HOSTNAME "[my Apache2 system Report]"
[specify title of generated report]IMAGEDIR images/
[directory that contains analog's static image files, relative to OUTFILE (URL)]
[Optional] Configuration, on-line form
- Edit C:\www\cgi-bin\anlgform.pl
- Replace the 1st line: #!/usr/bin/perl
with#!C:/www/perl/bin/perl.exe - Replace line: # Windows: $analog = 'C:\program files\analog 6.0\analog.exe';
with$analog = 'C:\www\analog\analog.exe';
- Replace the 1st line: #!/usr/bin/perl
- Edit C:\www\webroot\stats\anlgform.html
- Make the following changes, replacing the original lines...
<h1><!-- img src="/images/analogo.gif" alt="" --> Analog form interface</h1>
<h1><img src="/stats/images/analogo.gif" alt=""> Analog form interface</h1>
<!-- This version is in British English. Forms in other languages can be -->
<!-- found in the "lang" folder or directory. -->
<!-- Make the edits below. You also need to edit anlgform.pl. -->
<!-- First, uncomment the img tag above, edited if necessary. -->
<!-- Next, uncomment the following line, edited to reflect the correct -->
<!-- location of anlgform.pl in you server's filespace. -->
<!-- form action="/cgi-bin/anlgform.pl" method="POST" -->
<form action="/cgi-bin/anlgform.pl" method="POST">
<!-- Many systems will want the IMAGEDIR to be different on the form -->
<!-- than from the command line, because it should not be within /cgi-bin/ -->
<!-- input type=hidden name="IMAGEDIR" value="/images/" -->
<input type=hidden name="IMAGEDIR" value="/stats/images/">
<!-- Some users will want to set their logfile like this. -->
<!-- input type=hidden name="LOGFILE" value="/usr/local/etc/httpd/logs/access_log" -->
<input type=hidden name="LOGFILE" value="C:/www/Apache2/logs/access.log">
<!-- After you've made these edits, you can remove the "strong" lines below -->
<hr>
<h2>1. Report choices</h2>
<strong><font color=red>N.B. This form will not work - e.g. the buttons may
not even appear - until you've configured it according to the instructions.
When you've configured it, you should remove this paragraph.<br>
</font></strong>
Delete the above <strong> block
- Make the following changes, replacing the original lines...
Generating Reports
- For analog.exe generated Report.html
- Run C:\www\analog\analog.exe
- Access URL http://localhost/stats/Report.html
- For cgi-bin generated online report
- Access URL http://localhost/stats/anlgform.html

