Suhosin error

webaltern

Verified User
Joined
Feb 10, 2008
Messages
172
Location
Québec, Canada
Hello!

i have tried to install suhosin but I got this error:

[Wed Sep 12 04:17:37 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning: PHP Startup: suhosin: Unable to initialize module
[Wed Sep 12 04:17:37 2012] [error] [client xxx.xxx.xxx.xxx] Module compiled with module API=20060613
[Wed Sep 12 04:17:37 2012] [error] [client xxx.xxx.xxx.xxx PHP compiled with module API=20090626

But its the same php version if I use php -v than the one used on the website...

thanks...
 
Hello,

How did you install suhosin? What exact commands did you type?
Do you have PHP-CGI (suPHP) installed on your server?

To be sure, that you compile PHP extension against the right version you might need to use absolute paths, for example (if you running PHP-CGI):

Code:
cd /usr/local/src
tar -zxvf suhosin-x.xx.tar.gz
cd suhosin-x.xx
/usr/local/php5/bin/phpize
./configure --with-php-config=/usr/local/php5/bin/php-config
make && make install

Make sure to copy new suhosin.so to the right directory for extensions. In my case it's /usr/local/php5/lib/php/extensions/suhosin.so

Code:
extension_dir = "/usr/local/php5/lib/php/extensions/"
 
Hello!

i have tried to install suhosin but I got this error:

[Wed Sep 12 04:17:37 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning: PHP Startup: suhosin: Unable to initialize module
[Wed Sep 12 04:17:37 2012] [error] [client xxx.xxx.xxx.xxx] Module compiled with module API=20060613
[Wed Sep 12 04:17:37 2012] [error] [client xxx.xxx.xxx.xxx PHP compiled with module API=20090626

But its the same php version if I use php -v than the one used on the website...

thanks...

Hehe,
I've just resoved the same issue.
I have compile and install suhosin newest version, which will be API of 20090626
while I checked in php.ini with extension_dir, it must point to:
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626/"
(At the error time, it point to extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/" which is old version).

Hope it work with you too.

Thanks.
 
Back
Top