Forums / Install & configuration / runcronjobs error

runcronjobs error

Author Message

Vicente Olivan

Tuesday 19 December 2006 9:31:49 am

I make in console:

 

     php runcronjobs.php
 

for running... and display: <b>Segment violation</b>

I make in browser http://www.mydomain.com/runcronjobs.php
... and display:

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

But, my info.php show using "apache2handler" and "cli".

Some suggestion? Thanks

Egil Fujikawa Nes

Friday 20 April 2007 2:55:47 am

Hi Vicente

As long as you use the Apache2 interface to load your PHP code the eZScript:startup() will not load. eZScript:startup() can just be loaded trough the cli interface of PHP. eZScript:startup() is the first part runcronjobs.php, this is why runcronjobs.php will not perform correctly when it's accessed trough the Apache2handler.

You can read more about this here:
http://issues.ez.no/IssueView.php?Id=2937

You can also take a look at this form post, talking about how to work around the PHP-cli problem:
http://ez.no/community/forum/suggestions/workaround_for_installations_without_phpcli

Good luck :)

BuildCMS - Av. Paulista 777, 15° Andar - CEP: 01311-100 - São Paulo
URL: http://www.buildcms.com