exponential.earth / exponential / documentation / building an ez publish site / the guestbook / the "runcronjob" script
These documentation pages are no longer maintained. Please visit the new documentation site.
The execution/processing of workflows, notifications and other tasks that should be run periodically must be carried out by an external (non-user/web-dependant) mechanism. This is the job of the "runcronjobs.php" file that resides inside the root of the eZ publish directory. This file takes care of processing the mentioned things and it must be executed periodically. The most common way to do this is to set up a cronjob that runs every 30 minutes or so. The script can also be executed manually.
Let's keep things at a simple level and run the "runcronjobs.php" file manually. You can do this easily by executing the script from within a shell using PHP:
[path_to_dir_containing_php]/php runcronjobs.php
If "php" is available directly (not in the path environment variable), replace the "[path_to_dir_containing_php]" with the path to the directory that contains the PHP executable. On most UNIX/Linux systems the path is "/usr/bin/". Hint: use the "whereis" command to locate the PHP executable if you're unsure about the location. Windows users can use the built-in search utility to search for "php.exe".
Once the "runcronjobs.php" script is executed, the pending/approved object(s) will be published. Try to surf the TSCM guestbook page again and you'll see that the new (approved) guestbook entry now appears in the list of entries.
Comments
workflows are not dealt with by edfault in runcronjobs
Simone Semprini
Monday 30 April 2007 4:33:51 pm
Scripts[]=workflow.php
at the end of the inizializazion of the Scripts variable.
Hope this helps :)
execution of the runcronjobs.php on linux (Debian)
Jesper Haggren
Tuesday 17 May 2005 11:37:46 am
No go
Torbjørn Laukvik
Tuesday 26 April 2005 3:18:48 pm
"PHP is currently using the 'cgi-fcgi' interface. Make sure it is using the 'cli' interface.<br/>"
http://www.ez.no/community/forum/..._have_problem_with_runcronjob_script
use c:\php4\cli\php.exe
(writing this here since it's easier to find solutions here instead of searching this and that....)