<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Access stats error messages"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Access stats error messages"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Access stats error messages</title>
				<description><![CDATA[ Hi,<br /> <br /> I have been unsuccessful in getting Access Stats to work after trying for 3 or 4 days. I keep getting an "Internal Error Message" when I try view the cgi-bin/stat.pl file. Here is what I have done out so far:<br /> <br /> I made sure that apache was set up for cgi-bin and wrote a little perl test script. Everything worked OK from a web browser. (ie apache, perl and cgi-bin are all set up and working correctly.)<br /> <br /> Next I uploaded the stat.pl and log.pl files to the cgi-bin directory, and put the rest of the "stat" directory under my web server's document root (var/www). I changed the permissions on stat.pl and log.pl (chmod 755) and also changed the file locations within both as necessary (see below):<br /> <br /> [code]<br /> -------------------------------------<br /> STAT.PL<br /> -------------------------------------<br /> # url to script<br /> $cgiurl = &quot;http&#58;//localhost/cgi-bin/stat.pl&quot;;<br /> <br /> # url to the image files without trailing &quot;/&quot;<br /> $gif_url = &quot;http&#58;//localhost/stat/gif&quot;;<br /> <br /> # path to the log files from the server root without trailing &quot;/&quot; &#40;chmoded to 777 &#40;drwxrwxrwx&#41;&#41;<br /> $base_dir = &quot;/var/www/stat/logfiles&quot;;<br /> <br /> # url to the log files without trailing &quot;/&quot;<br /> $log_url = &quot;http&#58;//localhost/stat/logfiles&quot;;<br /> <br /> --------------------------------------------<br /> LOG.PL<br /> --------------------------------------------<br /> # url to the image file<br /> $output = &quot;http&#58;//localhost/stat/log.gif&quot;;<br /> <br /> # path to the log files from the server root without trailing &quot;/&quot; &#40;chmoded to 777 &#40;drwxrwxrwx&#41;&#41;<br /> $base_dir = &quot;/var/www/stat/logfiles&quot;;<br /> [/code]<br /> <br /> Also, I made sure that the files were uploaded in ASCII mode, and I changed the permissions (recursively) on the entire stat directory to 777.<br /> I still got no where so I decided to check out the perl files like this:<br /> <br /> [code]<br /> % perl -wc log.pl<br /> <br /> Name &quot;main&#58;&#58;value&quot; used only once&#58; possible typo at log.pl line 65.<br /> log.pl syntax OK<br /> <br /> % perl -wc stat.pl<br /> <br /> Unrecognized escape \h passed through at stat.pl line 976.<br /> Name &quot;main&#58;&#58;count&quot; used only once&#58; possible typo at stat.pl line 513.<br /> Name &quot;main&#58;&#58;temp&quot; used only once&#58; possible typo at stat.pl line 365.<br /> Name &quot;main&#58;&#58;minute&quot; used only once&#58; possible typo at stat.pl line 364.<br /> stat.pl syntax OK[/code]<br /> <br /> I had no idea what "\h" is supposed to be. After some checking I discovered this is a new thing in Perl 5 - it is for horizontal whitespace (click [url=http://www.perl.com/pub/a/2002/06/04/apo5.html?page=7]HERE for more information[/url]). I AM using Perl 5 (5.8.4) so I don't know why it didn't recognise the \h. Anyway, I removed it just in case... still no luck. <br /> <br /> I really don't know perl and am not sure what else to check. I am pretty sure that I have all the relevant files in the correct places, the permissions are correct and my server is set up correctly. Any advice on what else to check. <br /> <br /> Also, what is the deal with the image call that is supposed to be placed in the index file. Is this a normal way to make a call to perl or cgi bin? I am talking about lines like:<br /> <br /> [code]   &lt;img src=&quot;http&#58;//www.host.com/cgi-bin/log.pl?ref=noscript&quot; width=16 height=16 border=0&gt;[/code]<br /> <br /> How can I do this from the command line (to test it out without using a browser)? I tried the following but it didn't work:<br /> <br /> perl -w log.pl ref=noscript<br /> <br /> Any help or guidance would be much appreciated,<br /> <br /> Craig]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4053/12716.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4053/12716.php</link>
				<pubDate><![CDATA[Fri, 31 Dec 2004 05:07:30]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
	</channel>
</rss>