Undefined Symbol Error After Installing Zend Optimizer

by damonp on January 31, 2006

in PHP,SysAdmin

I recently had a hard time installing Zend Optimizer on a CentOS 4 server. When starting Apache after the install, this was logged to the Apache error_log:

Failed loading /usr/local/lib/ZendExtensionManager.so:  /usr/local/lib/ZendExtensionManager.so: undefined symbol: zend_extensions

Apache started up and ran, but no Zend Optimizer listed in the phpinfo page. Further weirdness had CLI PHP (command line PHP) showing the optimizer installed:

[root@www ~]# php -i | grep ptimizer
25: with Zend Optimizer v2.6.2, Copyright (c) 1998-2006, by Zend Technologies
355:Zend Optimizer

A little Googling found this post over at the Zend forums.

Recompiling PHP without versioning corrected the problem and allowed the Zend Optimizer to load up in Apache/PHP.

Popularity: 1%

Most Popular Posts

Damon Parker is a freelance sysadmin and web developer in Texas. He specializes in server setup, server security and high performance server configurations. Need help setting up a web server or getting a server back online after a crash or hack? Email Damon

{ 2 comments… read them below or add one }

Tim Dorr February 17, 2006 at 12:24 pm

Thanks for the info. I don’t think this applies to i386 systems, only x86_64 systems. We’ve been using versioning forever and only found out about this since we switched over to using Opterons.

This also fixes issues with eAccellerator, too.

Reply

damonp February 17, 2006 at 12:29 pm

This was on an i686 Athlon, CentOS release 4.2 (Final) box.

Reply

Leave a Comment

Previous post:

Next post: