Zum Inhalt springen

Scheduler (Planer) bei 1ahosting.ch einrichten

Erstellt am 22. Mai 2013 · 1 Antwort · letzte Antwort am 24. Mai 2013

Tags: Frage

Gernott ·

Hallo,

hat jemand Erfahrung mit 1ahosting.ch?
Wir versuchen dort den Planer (Cronjob) zum Laufen zu bekommen. Leider bekommen wir es nicht hin, und auch der Provider kann uns nicht wirklich helfen. TYPO3 läuft bei dem Provider sonst super.

Derzeit haben wir folgenden Aufruf im Cron-Manager eingetragen:
/usr/bin/php5 /home/sites/meineseite.com/public_html/typo3/cli_dispatch.php

Das Ergebnis lautet: The first argument must be a valid key.

Der Provider meldete daraufhin:
Your Test 1 is correct - however it failed because there was a missing file as per the error of "File not found". So you will need to check what particular file the script is looking for - you should contact the script authors for further support with that to find out exactly what it is doing.
Another thing you could check is the file permissions on the script, cli_dispatch.php and change it to 755 to make the script executable.
Additionally, if the script attempts a loopback connection (connection to self) over HTTP then this will also cause the script to fail as we do not allow such connections. You could get round that by using relative URLs so again, you would need to check with the script authors.

Dann meinte er man muss einen Server bei ihnen kaufen, beim Hosting ist es nicht möglich. Ich kann mir das aber nicht vorstellen.
Hat irgendjemand das gleiche Problem? Oder einen Lösungsansatz den in unserem Provider weitergeben kann?

Vielen Dank
Gernott

karlchen ·

hi,

falls ihe die Datei nicht geändert habt, muss Sie cli_dispatch.phpsh heissen. Dazu muss diese Datei mit einem parameter aufgerufen werden, beim Scheduler also ".../clis_dispatch.phpsh scheduler" Da diese parameter übergabe nicht überall erlaubt ist, nutzt man hier meistens eine "Wrapper" Datei. Der Cronjob ruft diese Datei auf und in dieser Datei wird dann die Datei mit dem Parameter aufgerufen.

Hier in einem Video von jweiland sehr gut erklärt:
http://jweiland.net/typo3-hosting/service/video-anleitungen/aufgaben-automatisieren-mit-dem-scheduler.html