Cronjobs kills Apache

Author Message

Falkmar Fischer

Saturday 30 April 2011 5:22:01 am

The site is a local installation on XAMPP 1.7.3 on Windows XP SP3, eZ 4.4 ezflow with Demo Content
The project is installed on a vhost (name based and IP-based)

Everything on the page works. Only the debug report shows errors in the translation. The main language is German and second language English.

Debugreport eZ 4.4

 Error: eZTSTranslator:: handleMessageNode Apr 29 21:05:36 2011
 No source name found, skipping message
 Warning: PHP: E_WARNING Apr 29 21:05:36 2011
 strpos () expects parameter 1 to be string, array given in E: \ proj \ www \ ez44test \ htdocs \ lib \ eztemplate \ classes \ eztemplate.php on line 1746
 Debug: ezpI18n:: translate text Apr 29 21:05:37 2011
 Missing translation for message in context: 'design / standard / parts / website_toolbar'. The untranslated message is: 'Remove node RSS / ATOM feed'
 Debug: ezpI18n:: translate text Apr 29 21:05:37 2011
 Missing translation for message in context: 'design / standard / parts / website_toolbar'. The untranslated message is: 'Create node RSS / ATOM feed'  

The messages likely to be based on incomplete ts files. I will translate this in the coming days.

The cronjobs run manually via a batch file.

E: \
 cd proj \ www \ ez44test \ htdocs \
 php.exe runcronjobs.php

After this skript, when I load a dynamic page (I only eZ test installations) crashes Apache. Static pages are without errors. eZ provides no error message, only the Apache. Unfortunately, I understand this message not, because I am not a developer.

PHP error

[Fri Apr 29 21:24:05 2011] [apc-error] apc_fcntl_lock failed errno: 1

1. Where can I find the error?
2. Is there a danger of crashing on a real (Linux) Web server?

In hope of help
Falkmar

webshop - extension searched

André R.

Sunday 01 May 2011 2:19:12 am

Seem like you have issues with APC, the php accelerator, try disabling it in your php.ini settings or if there is a controll panel for xampp, do it there. If that fixes it, try getting a more stable version of APC from the xampp project (either upgrade or downgrade).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Falkmar Fischer

Sunday 01 May 2011 5:18:47 am

Thanks Andre,
No idea, how I install the latest stable version of the PECL in XAMPP. Xampp 1.7.4 I've tried. There was too many problems.
Without APC, I have no problems (yet;-)). Thanks again, the cronjobs does working .
For all other below the parts of the PHP info and php.ini

APC-Info aus phpinfo.php

Version     3.1.3p1
MMAP Support     Disabled
Locking type     File Locks
Revision     $Revision: 289940 $
Build Date     Dec 13 2009 15:27:59

[PECL] aus php.ini

;APC switch off, becouse Problems with cronjobs
;extension=php_apc.dll
;    extension=php_dbase.dll
;    extension=php_fbsql.dll
extension=php_ming.dll
;    extension=php_msql.dll
extension=php_pdflib.dll
;    extension=php_pdo_oci.dll
;    extension=php_rar.dll

webshop - extension searched

Gaetano Giunta

Monday 02 May 2011 2:39:12 am

Note: you are usually better served using 2 separate php.ini file: one for the web version and one for the cli version. This way you can usually enable the opcode cache such as APC for Apache and not for the cli version.

When running php on the cli, use the "-c" to specify an alternative ini file.

Principal Consultant International Business
Member of the Community Project Board

Falkmar Fischer

Monday 02 May 2011 3:22:28 pm

Yesterday I read after Andres tip through the Internet. An interesting journey. Xampp is 1.7.3 with PHP 5.3.3 and APC 3.1.3p1. This package seems APC Official suitable only for PHP 5.1 and 5.2. The problems with PHP 5.3 I can confirm. The dynamic web pages within one hour sleep (alone in the development).

Since I do not get any further with ACP under Xampp I was looking for alternatives on Windows. I have found only WinCache (with additional installation platform) and eAccelerator. For research on the problems with eAcceletor I then met with memcached.

win32 binary

http://code.jellycan.com/memcached/

php_memcache.dll = php_memcache-cvs-20090703-5.3-VC6-x86.zip

http://code.google.com/p/thinkam/downloads/list?can=2&q=memcache

The caching works. An accelerator for a local testing environment is memcached not really . But I have been too many problems with my page and can not real say, what is fact.

The idea with two php.inis is interesting, because eZ does memcached not recognize. Thanks for this tip.

webshop - extension searched

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