Forums / General / Problems running runcronjobs.php

Problems running runcronjobs.php

Author Message

Marat M.

Monday 16 May 2005 8:53:21 am

Hi,

Now I will descibe my problem in detail. Hope anybody will help me at last resolve this annoying problem with running runcronjobs.php.

<b>Hosting details</b>

I use shared hosting at a hosting provider. The configuration is as follows:

OS: FreeBSD 4.10 RELEASE
Webserver: Apache 1.3
DB: MySQL 4.0.15
PHP-version: PHP 4.3.3
ssh
cron

<b>What I can and cannot use</b>

I CAN'T use ssh access because my ISP locked 22 and 23 ports. The tunneling software is also doesn't work.

However, the web interface for setting the cronjobs is available for me at a hosting provider. It allows typing in entries consisting of 'command' and 'time' for each cronjob.

<b>What I have already tried to do</b>

The path to my runcronjobs file is as follows:

 
public_html/ezpublish/runcronjobs.php

I put it into the 'commmand' field when creating the cron job and set execution of the file - every minute. Then I received an email from cron daemon and it said:

<i>PHP is currently using the 'cgi' interface. Make sure it is using the 'cli' interface. </i>

Now, please, read the question carefully: How can I set up running the runcronjobs.php properly on a SHARED HOSTING?

Thank you very much,

Best,
-Marat

P.S. I even would grant my login and password for the hosting account to someone that could really help me to set up all this. There are no secret data - just the ezpublish files and TSCM example site.

P.P.S. Kracker, would you be so kind as to do it for me :) . I can pay for that, if you want. Thanks.

kracker (the)

Monday 16 May 2005 1:56:12 pm

Alright, M :)

I am sorry that your having so much trouble. It is a fairly simple solution on a server with fewer restrictions than your shared host.

I'm not certain if my original glibc build of the php-cli binary would be binary compatible with FreeBSD, I kinda doubt it off hand. Further more you really do need to install (in some way) the php-cli application to run these cron jobs (from the reading I've done to date).

I would ask your hosting provider to install a separate php cli binary application for you to use.

I would tell them ...that if they are unwilling to support you in this regard that you will have little option but to find one which will, go ahead and tell them there are several who specifically do this and your only hanging around because you ... liked their corporate vision to quality custom support on an individual basis.

This should be even more simpler for them to do on FreeBSD than other linux (rpm) distributions because of the /usr/src/ports tree system.

If they refuse to install the application and you have ftp access, you can try to compile and ftp in a (custom freebsd specific) version of the php-cli binary. But it could be time intensive :(

I still think I could get you a better hosting solution that gives you the freedom to do this entirely yourself without the headaces.

cheers,
//kracker

<i>Clerks : Uncensored, EP II</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Marat M.

Tuesday 17 May 2005 2:02:02 am

Hi, kracker,

Thank you so much for your help. But don't you think it's better to obtain a 3 month subscribtion at a special eZpublish hosting for only 59 USD :)

Anyway, thanks.

Best regards,
Marat

Adolfo Barragán

Tuesday 17 May 2005 4:34:51 am

I have the same problem: The php cli is not available on my hosting provider.

I found (and I use) a solution at http://ez.no/ez_publish/documentation/configuration/configuration/cron_jobs

I put this code on my index.php and it work ok.

Regards
Adolfo Barragán

Marat M.

Tuesday 17 May 2005 5:10:45 am

2 Adolfo

I put the code into index.php but it doesn't work. When I run runcronjobs.php file via a web browser, I get:

#!/usr/bin/env php PHP is currently using the 'apache' interface. Make sure it is using the 'cli' interface. 

The page you refer to does not contain any remedy on how to resolve the CLI problem with this message. Just the steps to use the browser.

Thanks,
-Marat

kracker (the)

Tuesday 17 May 2005 8:24:27 am

Marat,

While I enjoy (at times) our little talks :)

I keep getting the impression you don't remember talking with me, here:
http://www.ez.no/community/forum/general/running_ez_publish_scripts_via_the_command_line

When I was trying to '<i>sell</i>' you on just one of the many reasons to acquire eZ publish hosting ( you can get 3months for $60 (at about 19.99 a month)) from a provider who will aid you in your efforts not hinder you.

I still think, as I did then, that <b>anyone</b> who does <i>not</i> have root access to their eZ publish hosting server or a support staff which is willing to install php-cli on their behalf is being <i>ripped off</i>! Period :P Still... http://www.ez.no/partner/partner_list/(partner)/hosting/(sort)/name

<i>I can only show you the door</i>, you have to decide for yourself what is worth more: your time or money?

I think you know, I don't want to be getting calls out from these forums for dev requests like this, nor do I wish to lower my dev rates for a request which really stems from a much larger problem which is cheaper to solve by switching to an eZ publish friendly hosting provider particularly an eZ publish Hosting Partner, than to pay me to fix your hosting service configuration, but I'd do it if you were so inclined. See I've worked with people who would be so stubborn as to pay more for the lesser solution, you asked for it, so I educated you on just how much it takes for the kracker to get down to the kitty gritty, which in turn shows you how much more cost effective my original solution really is .....

Derick warns, that this patch might not always work : http://ez.no/community/bugs/patch_for_systems_without_phpcli

While I vehemently respect your cement brick mindset and determination, it has led both of us down this thread again towards the same answer :(

Best Wishes,
//kracker

"Contrary to what your mothers and teachers tell you, you are not a beautiful and unique snowflake. You are the same decaying organic matter as everything else, we are all part of the same compost heap ..." -- Tyler's words coming out of my mouth, directed at me.

<i>Sole : Live from Rome : Self-inflicted Wounds</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Adolfo Barragán

Wednesday 18 May 2005 12:02:35 am

Hi Marat:

There is 3 options to run cronjobos on page
http://ez.no/ez_publish/documentation/configuration/configuration/cron_jobs

1. Fromm shell (not available for us)

2. Starting cronjob using HTTP (not available for us, same as 1)

3. Automatically run the cronjobs using HTTP. This is your option. You need modify index.php as explained in page and the, every call to your pages run cronjobs.

Regards
Adolfo Barragán

Marat M.

Wednesday 18 May 2005 1:29:14 am

Sorry, but it doesn't work. I did all in full accordance with the tips but nothing.

Thank you for your help.

- Marat

Pratibha Gannavarapu

Sunday 23 April 2006 11:48:13 pm

Hi
I have setup a simple workflow process which all works good till the admin approves it. But even after approval the content does not get published. Now I came to know that I will have to execute the runcronjobs script. But when i try to do that on the CLI I get the error
Fatal error: Call to a member function on a non-object in /easy_pub/kernel/classes/ezworkflowprocess.php on line 429

Any other method to schedule the running of cron jobs on the browser does not work. Though there is no errors the content is still not published.

Any help?!!!! I am really stuck here..
Cheers
Pratibha