If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Access Stats 1.12 - stat.pl empty  XML
Forum Index » Support Forum
Author Message
Anonymous



My problem is similar to the one of many, I am able to install the script, but it only shows me the title Access Stats 1.12 and the blue-green bar. Anything of statistical neither logfiles, the rest of the page in white.
Notice: I had to add -w to the route of Perl to see the log.gif

My files are in

/logstat/gif
/logstat/logfiles

log.pl, stat.pl and ip.log are in

/cgi-bin

My log.pl:

Code:

# url to the image file
$output = "http://www.domain.com/logstat/log.gif";

# path to the log files from the server root without trailing "/" (chmoded to 777 (drwxrwxrwx))
$base_dir = "http://www.domain.com/logstat/logfiles";

My stat.pl:

Code:

# url to script
$cgiurl = "http://www.domain.com/cgi-bin/stat.pl";

# url to the image files without trailing "/"
$gif_url = "http://www.domain.com/logstat/gif";

# path to the log files from the server root without trailing "/" (chmoded to 777 (drwxrwxrwx))
$base_dir = "http://www.domain.com/logstat/logfiles";

# url to the log files without trailing "/"
$log_url = "http://www.domain.com/logstat/logfiles";


The code in my html-file:

Code:

</head>
<script language="JavaScript">
<!--
document.write("<img src=\"http://www.domain.com/cgi-bin/log.pl?ref="+top.document.referrer+"\" width=16 height=16 border=0>");
//-->
</script>
<noscript>
<img src="http://www.domain.com/cgi-bin/log.pl?ref=noscript" width=16 height=16 border=0>
</noscript>
<body>

Thanks
Dieter.
ET
Graduate

Joined: 21/02/2003 22:17:48
Messages: 179
Offline

Dieter wrote:# path to the log files from the server root without trailing "/" (chmoded to 777 (drwxrwxrwx))
$base_dir = "http://www.domain.com/logstat/logfiles";



Here is your errored line - it can not be a URL
should look more like (but will depend on your actual webserver setup)
$base_dir = "/home/domain-id/public_html/logstat/logfiles";

That first portion "/home/domain-id/public_html" is called your document_root and an explanation how to find the document_root can be found with a search of this forum.

---------------
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum