Mahlzeit zusammen,
ich komm hier nicht weiter und hoffe mir kann jemand helfen.
Ziel:
- Indexed search + crawler automatisiert per cronjob.
Was geht ?
- indexed_search manuell im Backend
- crawler manuell im Backend
Status: end
Message: Rows: 8
Counter: 15
Last seen: 21-02-08 12:48 (1 Std)
Last proc. time: 25 seconds
- Sites und pdf/doc/whatever wird indiziert
- Suche im Frontend bringt die entsprechenden Ergebnisse
Was geht nicht ?
- crawlerscript auf der console ausführen und somit kein cronjob
Was hat der denn da ?
- Debian Etch
- Typo3 4.1.5
- Site Crawler 2.0.0
- Indexed Search Engine 2.10.0
- DomainX in /var/www/domainX/
- für Source symbolischer Link nach /var/www/typo2_src
Da "manuell" alles geht, denke ich, dass in der Config keine gravierenden Fehler drin sind. Nun mal zu den Fehlern...
Das Backend meint:
Consider running the CLI script from shell:
/var/www/DomainX/typo3/ext/crawler/cli/crawler_cli.phpsh
Gut, machen wir das mal
# /var/www/typo3_src-4.1.5/typo3/ext/crawler/cli/crawler_cli.phpsh
Error in init.php: Path to TYPO3 main dir could not be resolved correctly. <br /><br /><font color="red"><strong>It seems you are trying to run the TYPO3 source libraries DIRECTLY! You cannot do that.<br />
Please read the installation documents for more information.</strong></font><br /><br />If you want to debug this issue, please edit typo3/init.php of your TYPO3 source and search for the die() call right after this line (search for this text to find)...
#php -f /var/www/typo3_src-4.1.5/typo3/ext/crawler/cli/crawler_cli.phpsh
Warning: require(/usr/bin/conf.php): failed to open stream: No such file or directory in /var/www/typo3_src-4.1.5/typo3/ext/crawler/cli/crawler_cli.phpsh on line 35
Also den vi angeworfen und den Pfad angepasst.
#define('PATH_thisScript',$_ENV['_']?$_ENV['_']:$_SERVER['_']);
$curf = '/var/www/typo3_src-4.1.5/typo3/ext/crawler/cli/crawler_cli.phpsh';
define('PATH_thisScript',$curf);
Und nochmal...
/# php -f /var/www/typo3_src-4.1.5/typo3/ext/crawler/cli/crawler_cli.phpsh
Error in init.php: Path to TYPO3 main dir could not be resolved correctly. <br /><br /><font color="red"><strong>It seems you are trying to run the TYPO3 source libraries DIRECTLY! You cannot do that.<br />
Please read the installation documents for more information.</strong></font><br /><br />If you want to debug this issue, please edit typo3/init.php of your TYPO3 source and search for the die() call right after this line (search for this text to find)...
Im TS ist baseURL angegeben, ich denke das ist das, worüber da ^^ gemeckert wird.
In dem Crawlerscript steht aber auch was von
## DEPRICATED - instead, use typo3/cli_dispatch.php, follow instructions in there.
also schauen wir uns das an, googlen mal und probieren das Script mal auszuführen.
# php -f /var/www/typo3_src-4.1.5/typo3/cli_dispatch.phpsh crawler
localconf.php is not found!
Scheint also wieder n Pfadproblem zu sein.. der Aufruf mit dem crawler_im +optionen schlägt ebenfalls fehl.
# find /var/www/ -name localconf.php
/var/www/DomainX/typo3conf/localconf.php
Egal mit welcher Config, die Fehlermeldung ist die selbe.
define('PATH_thisScript',$temp_PATH_thisScript);
#define('PATH_thisScript','/var/www/typo3_src-4.1.5/typo3/cli_dispatch.phpsh');
Auch die Angabe von /var/www/DomainX/typo3_src/typo3/cli_dispatch.phpsh (typo3_src = symbolischer Link nach /var/www/typo3_src...) schlägt fehl.
Ich hab mir Kaspars Podcast angeschaut, ich hab etliche "Howtos" und die Doku gelesen, ich sehe keinen Fehler, aber vorhanden sein muss ja einer. Kann mir da wer auf die Sprünge helfen ?
Danke im Vorraus.
Gruss Hoschi