Ich habe auf die neuste cc_awstats 0.9.0 upgedatet.
Daraufhin bekam ich folgende Fehlermeldung:
Also habe ich den Pfad angepasst aufWarning: chmod(): Operation not permitted in /home/htdocs/web3/html/typo3conf/ext/cc_awstats/mod1/index.php on line 188
Perl was not found at '/usr/local/bin/perl'. The awstats.pl script can't be executed!
da dort bei mir perl liegt. Solltest du nicht wissen wo perl liegt, suche per SSH-Zugriff mitCode:/usr/bin/perl
oder frag deinen Provider.Code:find -name perl
Die Fehlermeldung bleibt daraufhin aber (bis auf den angepassten Pfad) die gleiche.
In der vorherigen Version war bei mir die Zeile 199 ( siehe [Typo3-UG Oesterreich] AWStats - Howto )
auskommentiert. Also habe ich das in der neuen Version (Zeile 188) ebenso gemacht.PHP-Code:chmod (->MCONF['awstats_data_dir'].t3lib_div::GPvar('config').'/', 0777);
Daraufhin bekomme ich die Fehlermeldung
Öffne die cc_awstats/mod1/index.phpPerl was not found at '/usr/bin/perl'. The awstats.pl script can't be executed!
Suche
und ersetze ihn durchPHP-Code:#TODO use t3lib_exec
if (=='UNIX') {
= " ";
if (is_executable ('/usr/bin/perl')) {
= '/usr/bin/perl ';
} else {
if (is_executable ('/usr/local/bin/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 (=false) {
if (is_file ('/usr/bin/perl')) {
= '/usr/bin/perl ';
} else {
if (is_file ('/usr/local/bin/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!");
}
}
Lösche danach den Cache. Jetzt sollte der Zugriff wieder auf die cc_awstats funktionieren.PHP-Code:#TODO use t3lib_exec
if (=='UNIX') {
//- changed beginn --- by Dieter 06.03.2005 ------------------------------------------------
= " ";
# if (is_executable ('/usr/bin/perl')) {
# = '/usr/bin/perl ';
# } else {
# if (is_executable ('/usr/local/bin/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!");
# }
//- changed --- end ----------------------------------------------------------------
} elseif (=false) {
if (is_file ('/usr/bin/perl')) {
= '/usr/bin/perl ';
} else {
if (is_file ('/usr/local/bin/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!");
}
}
@ Junior & Dieter
Geändert von Junior (10.11.2006 um 11:47 Uhr)
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen