Problem running cronjobs

Author Message

Richard Lundberg

Wednesday 04 June 2008 3:47:35 pm

Hi,

When running runcronjobs.php I get the following error

Warning: require(autoload/ezp_kernel.php): failed to open stream: No such file or directory in /var/www/vhosts/mydomain.com/httpdocs/autoload.php on line 34

Fatal error: require(): Failed opening required 'autoload/ezp_kernel.php' (include_path='.:') in /var/www/vhosts/mydomain.com/httpdocs/autoload.php on line 34

safe mode is definitely off, runcronjobs.php is being run from thehome directory of the eZPublish installation, and the direct and file permissions are correct and autoload/ezp_kernal.php does exist.

Can anyone point me in the right direction??

www.peakm3.com

Ɓukasz Serwatka

Friday 06 June 2008 12:52:17 am

Hi,

Can you provide more information about the environment like CLI PHP version, modules, permissions to file, etc. Make sure that the path is correct to the eZ Publish root folder.

Try manually execute

$ php runcronjobs.php

You can also ask for help your systems administrator (hosting company).

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Richard Lundberg

Friday 06 June 2008 5:52:40 am

Hi Lukasz,

thanks for your response,

I am using PHP 5.1.2 with the corresponding PHP CLI.

Using an SSH clinet I have navigated to the home directory of the eZpublish installation and run runcronjobs.php and still receive the same message.

The permissions of all the relevant files are set to rwxrwxr-x

I am completely puzzled by this.......

www.peakm3.com

Richard Lundberg

Thursday 12 June 2008 10:11:23 am

I have now sorted this.

PHP cli has a different php.ini to the php apache module. the php cli safe_mode was set to on!!

Cronjobs use the PHP cli module, not the apache module it seems

www.peakm3.com

B. Nkengsong

Tuesday 09 September 2008 2:46:16 am

Hi Richard,

i don't know my problem is the same as yours

X-Powered-By: PHP/5.2.5
Content-type: text/html

<br />
<b>Warning</b>:  require_once(lib/ezutils/classes/ezdebug.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in <b>/home/mxnttv/www/ezhome/kernel/classes/ezpersistentobject.php</b> on line <b>57</b><br />
<br />
<b>Fatal error</b>:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'lib/ezutils/classes/ezdebug.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/mxnttv/www/ezhome/kernel/classes/ezpersistentobject.php</b> on line <b>57</b><br />

What is the problem of course ?

Sanagha Technologies Corp.
http://www.sanagha.com | http://www.sanagha.net | http://tourisphere.sanagha.net | http://education.sanagha.net
IT Consultant

James Hyatt

Tuesday 07 October 2008 2:39:24 am

I had the same problem and it was the same fix as Richard.

I ran:

php -i |grep php.ini

from ssh to get the path to the php.ini file that was being used.

edited it with

vi /etc/php.ini

Turned off safe mode, saved with :wq

Now it works!

Noicokuna Niemoge

Wednesday 21 January 2009 1:13:00 am

I've got the same problem...

Warning: require_once(lib/ezutils/classes/ezdebug.php): failed to open
stream: No such file or directory in
/home/site/ftp/ezpublish/kernel/classes/ezpersistentobject.php on line 57

Fatal error: require_once(): Failed opening required
'lib/ezutils/classes/ezdebug.php' (include_path='.:/usr/local/lib/php') in
/home/site/ftp/ezpublish/kernel/classes/ezpersistentobject.php on line 57

EDIT: SOLVED. runcronjobs must be executed in eZ root folder.

Shiki soku ze ku...

Gary Teh

Monday 26 January 2009 2:53:34 am

I met the same problem myself by wrongly assuming the php.ini file used by the apache web server is exactly the same as when running php.ini.

Under the windows environment (I am running a windows xp testing server) I changed the entries in the environmental variables. That solved the problem for me.

http://name1price.com : Get a Cool website for yourself and also learn how to manage it. It is easy. Use it to get more customers for your business.

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