Ubuntu – “Zend Optimizer not installed” after I updated to Ubuntu 10.04

apache-2.2Ubuntuzend-optimizer

I've just updated from 9.10 to 10.04. Everything seems to run fine except for zend optimizer which is throwing "Zend Optimizer not installed" error. I went to php.ini and the following line is still there
Code:

zend_extension=/etc/php5/ZendOptimizer.so

Also I checked that the file does exist and that the php.ini I am looking at is in fact the php.ini file that is being used by the server. Please let me know if you have any ideas about how to fix or debug this.

Thanks,
Eugene

Best Answer

Unfortunately Zend Optimizer isn't available for PHP 5.3 yet. You can read about it at the Zend forums: http://forums.zend.com/viewtopic.php?f=57&t=1365. If you really need Zend Optimizer because of Zend Guarded PHP applications you will have to downgrade to PHP 5.2. Or if the application you need is available as an ionCube package you can try ionCube.


Original answer (this still applies for other versions or when a PHP 5.3 compatible version is released):

The PHP version in Ubuntu 10.04 is updated from 5.2.x (Ubuntu 9.10) to 5.3.x. Your Zend Optimizer extension is probably not working because it is outdated and not compatible anymore (if you haven't updated it in the meanwhile). Try to update your Zend Optimizer extension and check if it makes any difference.

If the config really is used by the server and the problem still exists after upgrading Zend Optimizer, check your Apache error_log for any problems loading the Zend Optimizer extension.