Ich habe auf die neuste cc_awstats 0.9.0 upgedatet.
Daraufhin bekam ich folgende Fehlermeldung:
Zitat:
Warning: chmod(:sad: 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!
|
Also habe ich den Pfad angepasst auf
da dort bei mir perl liegt. Solltest du nicht wissen wo perl liegt, suche per SSH-Zugriff mit
oder frag deinen Provider.
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 )
PHP-Code:
chmod (->MCONF['awstats_data_dir'].t3lib_div::GPvar('config').'/', 0777);
auskommentiert. Also habe ich das in der neuen Version (Zeile 188) ebenso gemacht.
Daraufhin bekomme ich die Fehlermeldung
Zitat:
|
Perl was not found at '/usr/bin/perl'. The awstats.pl script can't be executed!
|
Öffne die cc_awstats/mod1/index.php
Suche
PHP-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!");
}
}
und ersetze ihn durch
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!");
}
}
Lösche danach den Cache. Jetzt sollte der Zugriff wieder auf die cc_awstats funktionieren.
@ Junior & Dieter