runcronjobs - crontab

Author Message

Lo' F.

Thursday 27 January 2011 11:23:00 am

Hi there,

I installed all2egooglemaps extension to generate a sitemap.xml file. When I launch the script manually from the shell it generates the file as expected.

php runcronjobs.php googlesitemaps

I want it to be generated/updated at regular intervals of time and so added it to the crontab file /ezpublish.cron:

# Instruct cron to run the "googlesitemaps" set of cronjobs
# at 00:00pm every day
0 0 * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q googlesitemaps 2>&1

so that it can be run every day at midnight. But it doesn't work.

Set the actual ez path and php command line programs

# This must be set to the directory where eZ Publish is installed.
EZPUBLISHROOT=/var/www/vhosts/domainname.net/httpdocs/

# Location of the PHP Command Line Interface binary.
PHP=/usr/bin/php

The /etc/cron.deny file is emply and this shouldn't prevent it from running, right?

Why shouldn't it run?

Thanks!

loredanaebook.it

Romeo Antony

Friday 28 January 2011 12:53:42 am

Try the following Lo'F

1.Run with your site access.

0 0 * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q googlesitemaps -s yoursiteaccess 2>&1

2. Check php location? Is it exactly there??

PHP=/usr/bin/php

3.

Restart cron daemon

/etc/init.d/crond restart

Lo' F.

Friday 28 January 2011 9:36:44 am

Hi Romeo, thanks a lot for your reply.

I got the php location by launching the command from the shell:

# which php
/usr/bin/php

Tried to restart cron daemon, but the sitemap doesn't update itself at the set interval of time, yet.

(set to run every 5 minutes while testing it)

5,10,15,20,25,30,35,40,45,50,55 * * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q -s ita googlesitemaps 2>&1

...

What's wrong?!

loredanaebook.it

Lo' F.

Tuesday 01 February 2011 2:09:02 pm

Any hint would be highly appreciated!..

Thanks a loooot!

loredanaebook.it

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:06:55
Script start
Timing: Jan 18 2025 05:06:55
Module start 'layout'
Timing: Jan 18 2025 05:06:55
Module start 'content'
Timing: Jan 18 2025 05:06:56
Module end 'content'
Timing: Jan 18 2025 05:06:56
Script end

Main resources:

Total runtime0.7790 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0106 587.8125152.6094
Module start 'layout' 0.01060.0034 740.421939.4219
Module start 'content' 0.01390.7634 779.8438558.7344
Module end 'content' 0.77740.0016 1,338.578112.1875
Script end 0.7789  1,350.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4709160.0002
Check MTime0.00150.1977160.0001
Mysql Total
Database connection0.00140.179610.0014
Mysqli_queries0.703690.3268600.0117
Looping result0.00090.1112580.0000
Template Total0.737694.720.3688
Template load0.00220.284320.0011
Template processing0.735494.400920.3677
Template load and register function0.00010.013210.0001
states
state_id_array0.00190.249710.0019
state_identifier_array0.00150.193620.0008
Override
Cache load0.00190.2434400.0000
Sytem overhead
Fetch class attribute can translate value0.00120.153020.0006
Fetch class attribute name0.00320.414860.0005
XML
Image XML parsing0.00100.124120.0005
class_abstraction
Instantiating content class attribute0.00000.002480.0000
General
dbfile0.00090.1207220.0000
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs