Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
19/04/2002 15:28:54
|
Anonymous
|
Hello!
I was wondering if I could get some help with the Access Stats 1.12 script! I've tried and tried and seems to have set the correct paths,
but the script refuses to write anything to the log - it remains empty.
I was wondering if you could please tell me what's wrong.
Info:
Windows 2000 Professional
Apache 1.3.24
Perl 5.6.1 (works fine, I've tested with a small test script)
My location of Apache is: C:\Program Files\Apache Group\Apache (this is where you find the Apache.exe file)
In my httpd.conf file, ServerRoot is set to: C:/Program Files/Apache Group/Apache
(# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
ServerRoot "C:/Program Files/Apache Group/Apache")
Location of stat.pl and log.pl = C:\Program Files\Apache Group\Apache\cgi-bin (According to Explorer.exe)
Location of gif and logfiles directories = C:\Program Files\Apache Group\Apache\htdocs
The javascript in my index.php file:
<script language="JavaScript">
<!--
document.write("<img src=\"http://localhost/cgi-bin/log.pl?ref="+top.document.referrer+"\" width=16 height=16 border=0>");
//-->
</script>
<noscript>
<img src="http://localhost/cgi-bin/log.pl?ref=noscript" width=16 height=16 border=0>
</noscript>
My setup of stat.pl :
#!C:\Perl\bin\perl.exe
#########################################################################
# Access Stats v1.12 #
# Copyright (c)2000 Chi Kien Uong #
# URL: http://www.proxy2.de #
# #
# This Software is distributed under the GNU General Public #
# License. For more details see license.txt #
# #
#########################################################################
# url to script
$cgiurl = "http://localhost/cgi-bin/stat.pl";
# url to the image files without trailing "/"
$gif_url = "http://localhost/gif";
# path to the log files from the server root without trailing "/" (chmoded to 777 (drwxrwxrwx))
$base_dir = "htdocs\logfiles";
# url to the log files without trailing "/"
$log_url = "http://localhost/logfiles";
My setup of log.pl :
#!C:\Perl\bin\perl.exe
#########################################################################
# Access Stats v1.12 #
# Copyright (c)2000 Chi Kien Uong #
# URL: http://www.proxy2.de #
# #
# This Software is distributed under the GNU General Public #
# License. For more details see license.txt #
# #
#########################################################################
# url to the image file
$output = "http://localhost/log.gif";
# path to the log files from the server root without trailing "/" (chmoded to 777 (drwxrwxrwx))
$base_dir = "htdocs\logfiles";
The path to Perl.exe is correct because my little perl (.pl) test script worked.
Also I've tried to change it, AND the other paths in log.pl and stat.pl to / with no effect. My stat.pl remains empty.
Oh, and I've done this:
# Ignored IPs - Comment it out if you don't use it e.g. #@skip=('127.0.0.1');
#@skip=('127.0.0.1','196.109.183.9');
It would be GREAT if you could please help me to get it work!
Thanks a lot in advance!
Regards,
Sven David
|
|
22/04/2002 11:29:08
|
Anonymous
|
your base_die is wrong $base_dir = "htdocs\logfiles";
$base_dir = "C:/Program Files/Apache Group/Apache/htdocs/logfiles";
|
|
29/04/2002 01:48:32
|
sven
Newbie
Joined: 19/04/2002 14:49:20
Messages: 4
Offline
|
I made it now! Thanks a lot!!
|
|
|
|
|
|
Based on the open source JForum
|