Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Server Overload


_ck_
Participant

@_ck_

No the zen optimizer is not an opcode cache, it’s just another keyhole optimizer. eAccelerator has a keyhole optimizer too but it doesn’t hurt anything to use them both. I use them both on PHP4 servers, PHP5 doesn’t need it.

I think there are possibly THREE (simple) problems.

One is a leftover corrupted eaccelerator cache left on your drive from a previous attempt that has to be cleared/deleted first.

Two is an old eaccelerator that was built for a different version of PHP, it needs to be rebuilt with that script above.

The last possibility might be the extension load order.

(you can try disabling the zend optimizer altogether as it’s overkill when eaccelerator is running)

So:

1. Try deleting your old eaccelerator disk cache first

rm -rf /tmp/eaccelerator

2. Go into php.ini and look for the Zend section.

It will look something like this but maybe not exactly like this:

[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.0.1
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.0.1
zend_optimizer.version=3.0.1
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

3. Make sure that Zend section is ABOVE (before) the eAccelerator section. You can also try commenting it all out with semi-colons before each line to disable it entirely.

Last but not least, you should also delete the entire eAccerator section in PHP.ini and then run that script above.


After thinking about this for awhile, I would put my money on the idea that your eAccelerator was built for an earlier version of PHP and MUST be re-compiled by that script.

Skip to toolbar