[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Zend Optimizer



>>I'm using separate install, more modern version, of the default PHP
>>4.0.6 installed on my 550 to run my Modernbill web hosting billing
>>software. The problem is, when I get cron jobs to automate some of
>>Modernbill's batching processes, I'm getting this error:
>>
>>Failed loading /usr/local/Zend/lib/ZendOptimizer.so:
>>/usr/local/Zend/lib/ZendOptimizer.so: undefined symbol: 
>>zend_execute_internal
>>
>>Zend Optimizer is installed (most recent version) and works great when
>>Called from a web browser. It's being called/loaded in both php.ini
>>files but from some reason it wont load via cron and Modernbill 
>>needs it to run.
>>
>>Here is what I'm using as my crontab:
>>
>>MAILTO=accounts@xxxxxxxxxx
>>5,20,35,50 * * * * php -q -f -z
>>/home/sites/www.domain.com/web/billing/include/
>>scripts/run_background_queue.inc.php
>>/home/sites/www.domain.com/web/billing/ cron
>>
>>I didn't have the "-z" option in there but I read that it's supposed
>>to load zend, so I added it but no luck.
>>
>>Any suggestions on how to get Zend to load via cron?
-----------------------------------------------
>
>After doing a version check of php on the command line
>
>[root php]# php -v
>Failed loading /usr/local/Zend/lib/ZendOptimizer.so:
>/usr/local/Zend/lib/ZendOptimizer.so: undefined symbol:
zend_execute_internal
> 4.0.6
>
>Now I've located or thought I located all the php.ini files and added:
>
>[Zend]
>zend_optimizer.optimization_level=15
>zend_extension=/usr/local/Zend/lib/ZendOptimizer.so
>
>Then I restarted the admin server and the httpd server but I'm still
>getting the error.
-----------------------------------------------
Is there any way to change the command line version of php (4.0.6) to
the asapi version, meaning the version that is used by the web pages
(4.3.0).

I'm not saying upgrade the 4.0.6 version but changing the command line
to 
use a different version. Can that be done?

Thanks, Sean