Apache 2.2.6 suhosin.so/ ioncube loader/ Zend 3.3.0 error

mtech-hosting

Well-Known Member
Apr 30, 2006
62
0
156
Im not certain what you'd need but selecting suhosin along with Zend and compiling, it logs an error as:

php -v
/usr/local/ioncube/ioncube_loader_lin_5.2_ts.so doesn't appear to be a valid Zend extension
/usr/local/Zend/lib/ZendExtensionManager_TS.so doesn't appear to be a valid Zend extension
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/suhosin.so' - /usr/local/lib/php/extensions/suhosin.so: undefined symbol: output_globals in Unknown on line 0
PHP 5.2.4 (cli) (built: Sep 13 2007 15:45:19)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

As you can see also, it will not load ioncube whatsoever. I have tried about every possible combination of loading ioncube loaders, it just will not work.
 
C

cPanelBilly

Guest
Also did you follow the advice given at the end of the build?

Code:
!! If you experience a non functional PHP binary you may need to update zend optimizer.
You can do so by running /scripts/installzendopt 
(easyapache can not run it for you because the way zend does 
        their installer and license it requires user input and can not be scripted)
Alternatively, you may need to comment out the zend related directives in your php.ini file.
Note that PHP 5 support is only in Zend Opt 3.3.0 and later according to the PHP folks. 
Even that support has proven unreliable so you may have to choose between PHP 5 and Zend optimizer.
Additionally, it be necessary to reinstall any extensions that are loaded in the php.ini file.
 !!
 

mtech-hosting

Well-Known Member
Apr 30, 2006
62
0
156
Yes i have done that. what i did was run the zend installer both times, one for each php version so i have /usr/local/Zend for php5 and /usr/local/Zend/php4 for php4 and the Zend extensions paths are correct for both. The installed Zend version is 3.3.0 which is the latest i believe.

I have no idea why if its a default install that its saying that the Zend extensions are not valid ?
 

mtech-hosting

Well-Known Member
Apr 30, 2006
62
0
156
The first time i updated everything i did have that enabled, then i found some obscure post in the forums saying it wasnt compatible so i disabled it and upgraded again. Looks to be about the same errors though.

Now I just read somewhere that worker MPM is not compatible with Zend 3.3.0 Any thoughts on this before i try to do an install for the third time because i do have worker.c enabled
 

bin_asc

Well-Known Member
Jul 18, 2005
280
0
166
Didn`t know about SafePHPCgi being a trouble maker. Recompiling without it.
 

mtech-hosting

Well-Known Member
Apr 30, 2006
62
0
156
Just noticed something else also. when i run:

/usr/bin/php -v i get:

Code:
PHP 5.2.4 (cgi-fcgi) (built: Sep 13 2007 15:50:00)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
But when i run just php -v i get:

Code:
/usr/local/ioncube/ioncube_loader_lin_5.2_ts.so doesn't appear to be a valid Zend extension
/usr/local/Zend/lib/ZendExtensionManager_TS.so doesn't appear to be a valid Zend extension
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/suhosin.so' - /usr/local/lib/php/extensions/suhosin.so: undefined symbol: output_globals in Unknown on line 0
PHP 5.2.4 (cli) (built: Sep 13 2007 15:45:19)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
Do you have a link to that info about Zend + worker MPM?

It appears (I'm in the process of confirming with several test builds) that suhosin + (any zend extension) is problematic, especially when using the PHP 4 + 5 concurrent setup. One element I have confirmed is in a concurrent PHP setup, Suhosin is compiled against PHP 4 and installed, but never done for PHP 5. PHP 5 is installed as the system default and tries to load the Suhosin extension built against PHP 4.
 

mtech-hosting

Well-Known Member
Apr 30, 2006
62
0
156