From owner-freebsd-questions Wed May 20 22:13:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA23356 for freebsd-questions-outgoing; Wed, 20 May 1998 22:13:41 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mooseriver.com (dynamic32.pm01.sf3d.best.com [209.24.234.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA23257 for ; Wed, 20 May 1998 22:12:58 -0700 (PDT) (envelope-from jgrosch@mooseriver.com) Received: (from jgrosch@localhost) by mooseriver.com (8.8.8/8.8.5) id WAA17668; Wed, 20 May 1998 22:10:45 -0700 (PDT) Message-ID: <19980520221044.A15510@mooseriver.com> Date: Wed, 20 May 1998 22:10:44 -0700 From: Josef Grosch To: Frank Griffith Cc: freebsd-questions@FreeBSD.ORG Subject: Re: WWWCount2.4 - Directory Headaches Reply-To: jgrosch@superior.mooseriver.com References: <00a401bd845a$49431ca0$0200a8c0@fast1.dfw.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <00a401bd845a$49431ca0$0200a8c0@fast1.dfw.com>; from Frank Griffith on Wed, May 20, 1998 at 08:46:33PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, May 20, 1998 at 08:46:33PM -0500, Frank Griffith wrote: > Okay, this calls for some patience but here goes! > > I am running FreeBSD 2.2.6 on a Pentium system with > Apache Web Server 1.2.6. I have a another virtual server > with a hosting company which offered a really cool site > counter called WWWCOUNT2.4. This counter is really > great, because its super configurable and will ignore > repetitive hits from somebody with the same IP number > just refreshing their screen over and over. If anyone wants > a copy of it, let me know and I'll e-mail you a copy or > make it available on my server for you to FTP. > [ DELETED ] Yes, FreeBSD has WWWCount as a package and a port. I would suggest that you install the port. That way you are dealing with a know configuration. I have WWWCount installed on my home machine. The setup is a little tricky so I'll walk you through it . You are better off downloading a port from www.freebsd.org or pulling a copy out of the ports tarball on the CD. http://www.freebsd.org/cgi/ports.cgi?query=wwwcount&style=all click on download or in a scratch directory tar xvzf /cdrom/ports/ports.tgz ports/www/wwwcount cd to the directory with the Makefile and, as root, type make. After the make is finished the makefile will ask some questions. Answer the questions and don't work you can always either remake the program, edit the config file or rerun the config script. Do a make install. The program installs under /usr/local. The following is listing of the files as installed. ./etc/Counter ./etc/Counter/conf ./etc/Counter/conf/count.cfg <-- The config file ./etc/Counter/data ./etc/Counter/data/RealHits <-- A data file ./etc/Counter/data/sample.dat ./lib/Counter ./lib/Counter/digits ./lib/Counter/digits/A ./lib/Counter/digits/A/strip.gif ./lib/Counter/digits/B ./lib/Counter/digits/B/strip.gif ./lib/Counter/digits/C ./lib/Counter/digits/C/strip.gif ./lib/Counter/digits/D ./lib/Counter/digits/D/strip.gif ./lib/Counter/digits/D/lenna.gif ./lib/Counter/digits/E ./lib/Counter/digits/E/strip.gif ./lib/Counter/digits/mkstrip.sh ./lib/Counter/rgb.txt ./www/cgi-bin/Count.cgi <-- The program My web page uses the following cgi call wwwcount is sorta fussy about permisions. I have my data files as 0666 and the data directory as 0777. You should also set have ScriptAlias in /usr/local/etc/apache/srm.conf set as follows: ScriptAlias /cgi-bin /usr/local/www/cgi-bin Hope this helps Josef -- Josef Grosch | Another day closer to a | FreeBSD 2.2.7 jgrosch@MooseRiver.com | Micro$oft free world | UNIX for the masses To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message