Mini Howto
Subject: การ install และใช้งาน Counter
By: Lachana Inchaiwong <lachanai@ds90.intanon.nectec.or.th>
Date: Apr 7, 1998
Update from: -
License: สงวนลิขสิทธิ์เอกสารนี้ โดย ลัชนา อินชัยวงศ์ <lachanai@ds90.intanon.nectec.or.th> การเผยแพร่เอกสารนี้จะต้องอยู่ภายไต้ เงื่อนไขของ GNU General Public License เวอร์ชั่น 2.0 ที่ออกโดย Free Sofware Foundation กรุฒาอ่านรายละเอียดของ GPL ที่ <http://linux.thai.net/gpl.html>

Introduction
Web Counter เป็น CGI program ที่เก็บข้อมูลในการเข้าถึง web page โดยการสร้าง GIF image ของตัวเลขจำนวนครั้งการเข้าถึงและส่งไปให้ browser ในรูปของ in-lined image โปรแกรมก็จะมี option ให้เลือกในการแสดงตัวเลข

Requirement:
1. Linux Operating System.
2. C compiler (ANSI or non-ANSI).
3. HTTPD
4. wwwcount2_3_tar.gz <ftp://proxy.intanon.nectec.or.th/pub/linux/ntic/wwwbount2_3_tar.gz>

Installation Step
Config file ต่างๆ
Count-config เป็น scripts ที่ใช้ในการสร้าง header file config.h และ template file สำหรับโปรแกรม
configure เป็น script ที่ใช้ในการสร้าง Makefile
Gen-conf เป็น script ที่สร้าง configuration file
Count-install เป็น script ที่ install Count.cgi, digit images, configuration file ต่างๆ และ rgb color name database

การ install ให้ทำตาม step ต่อไปนี้
1. gunzip wwwcount2_3_tar.gz
2. tar -xvf wwwcount2_3_tar
3. ./Count-config
4. ./configure
5. make clean
make
6. ./Gen-conf
7. ./Count-install

การ Test program จาก command line
ให้รัน ./testcount-sh

การเรียกโปรแกรมโดยผ่าน HTML
ให้ใส่บรรทัดต่อไปนี้ลงไป HTML code
img src="/cgi-bin/Count.cgi?df=sample.dat" align=absmiddle>

Error messages
ให้ไปดูใน Log file ซึ่งอยู่ใน Log directory ที่กำหนดใน config.h

Option ต่างๆ
มีอยู่ใน document ซึ่งอยู่ใน directory /docs ของ installation directory