Home
SEO
Typo3
Tutorials
Diverses
 


 

AWStats - Problem mit Perl

Fehlermeldung:

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

Mögliche Ansatzpunkte, um dieses Problem zu Lösen:

1. Symbolischer Link auf den entsprechenden Pfad setzen (mittel Shell, wenn eine zur Verfügung steht).

Eingabe:

ls -s /usr/local/bin/perl /usr/bin/perl

2. Datei 'cc_awstats/mod1/index.php' anpassen

Die Datei lokal in einem Editor öffnen oder via Typo3-Backend editieren (dazu ev. im Bereich der Installation die Berechtigung für das Editieren aktivieren [noEdit =0])

Die Zeilen 242 - 264 auskommentieren (nachfolgend rot dargestellte Zeichen einfügen):

... 

#TODO use t3lib_exec   
  /* 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!");
    }
   } elseif ($checkWindows=false) {
    if (is_file ('/usr/bin/perl')) {
     $perl = '/usr/bin/perl ';
    } else {
     if (is_file ('/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!");
    }
   }

*/

...