Monday 09 May 2005 7:04:08 am
Marat, Like all things in life; you like all the others can become fluent in eZ publish starting with imitation. I urge you to continue in this way until you can stand and run on your own. Upon review of your message I see only one problem with your current understanding. A cron job, is a task which has been programmed to be automated with programing to be started and completed by the computer in an automated fashion without human interaction. Cron or Crontab are just a few of the freely available software applications which can run commands (cronjobs) at a specified time. The eZ publish cronjobs script, runcronjobs.php requires a fairly new and generally unknown php application in order to run. The application is called php (cli), php-cli, etc ... <b>php-cli</b> php-cli (as i have coined it) is a very small binary application that is basically php "for the command line", designed for running scripts from a command line instead of from a web application / web server. By default eZ publish scripts assume (incorrectly) that a user will call these scripts with a the cli version of php installed. There are at least three versions of php (cli,cgi,dso). Most users would not have the cli version or know about it. This is a failure by the eZ publish documentation team, in not correctly explaining these obfuscated dependencies to users who lack the required foreknowledge to understand and comply with these dependencies without being told in advance. The solution as I tried to explain to the community with Bjorn back in mid 2004...
Download and copy my provided php-cli binary application for linux computers (using glibc).
Install the php-cli binary application into bin/linux/ as bin/linux/php-cli Call your eZ publish runcronjobs.php like this, to test these instructions. ./bin/linux/php-cli runcronjobs.php
I would call upon the rest of the advanced eZ publish developers in the community, post a link to a php-cli binarry application for windows users. Unfortunately, I do not belive eZ systems can add this php-cli binary application (despite how much I wish it so for the simplicity of the entire distribution) as the php-cli binary's licence would conflict with eZ publish's. Crontab While most people say the word cron when they reference automated / timed tasks. The actual application used by most users to use cron is called : <i>crontab</i>. To use crontab directly you must login via your sever's provided shell access (ssh) to use the crontab application. List crontab entries: crontab -l
Edit your crontab, add entries: crontab -e
<i>Warning, crontab will open up your shell's default text editor, which is often vi . I would review a vi guide to know just how to use the text editor which for new users can be at times frustrating and confusing, but then what isn't in software?</i> The Summary >> Please, help me understand how eZ publish processes workflows and how the server should be tuned. So that in the future I could at least localize the problem myself. It's ill advised to ask a long question series of line item questions and summarize it by asking an almost completely different question, I counter suggest a bulleted list of key lines / key notes in it's stead. Still I'm quite the .... today so I will cover the bulk of your question before the summary. I hope these answers find you well. //kracker
<i>References:
http://www.google.com/search?hl=en&q=crontab%2C+examples&btnG=Google+Search http://www.gentoo.org/doc/en/vi-guide.xml
http://www.ez.no/ez_publish/documentation/incoming/setup_php_for_comandline_usage_php_cli http://www.ez.no/ez_publish/documentation/incoming/setup_php_for_comandline_usage_php_cli/pre_compiled_php_cli_linux_binary_available
http://www.google.com/search?hl=en&q=php-cli%2C+windows&btnG=Google+Search
http://www.google.com/search?as_q=php-cli&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&num=50&as_qd=all&as_ft=i&as_qdr=all&as_occt=any&as_dt=i&as_sitesearch=ez.no
http://www.ez.no/content/search?SearchText=php-cli </i>
Member since: 2001.07.13 || http://ezpedia.se7enx.com/
|