[Typo3] awstats and perl problem + solution

Vincnet cu at vincnet.nl
Tue May 17 23:53:27 CEST 2005


Hi,

I couldn't get AWStats to work, because Perl wasn't found (or executed).

Message:
Perl was not found at '/usr/local/bin/perl'. The awstats.pl script can't 
be executed!

In the mod1/index.php of the cc_awstats extension, just commented out 
the checks. Becasue I know the exact location of Perl. After that, 
AWStats works fine.

Can't think of it as the right solution, but it works. Maybe this helps 
for others.



if ($os=='UNIX') {
	//if (is_executable ('/usr/bin/perl')) {
		$perl = '/usr/bin/perl ';
		//} else {
		//if (is_executable ('/usr/local/bin/perl')) {
		//	$perl = '/usr/local/bin/perl ';
		//} else {
		//	die("Perl was not found at '/usr/local/bin/perl'. The awstats.pl 
script can't be executed!");
		//}
		//die("Perl was not found at '/usr/bin/perl'. The awstats.pl script 
can't be executed!");
		//}


Vincent Mans



More information about the TYPO3-english mailing list