Suhosin PHP Module Mismatch

PHP Warning: PHP Startup: suhosin: Unable to initialize module

Yesterday I got a problem with suhosin after downgrading php in cpanel, actually it’s so simple to fix suhosin problem in cpanel but I’m so tired and had a lot off issue since yesterday. After waiting arround 7 hours I didn’t get solutions from cpanel customer support, finally I’ve to fix it by my self. I know that the problem caused by suhosin module doesn’t match with API in PHP, so I just need to recompile and reinstall suhosin from source.

When I’m trying to access some php scripts I got the following error messages from php:

[16-Oct-2012 11:30:23] PHP Warning: PHP Startup: suhosin: Unable to initialize module
Module compiled with module API=20090626, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
[16-Oct-2012 11:30:23] PHP Warning: PHP Startup: suhosin: Unable to initialize module
Module compiled with module API=20090626, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
[16-Oct-2012 11:30:23] PHP Warning: PHP Startup: suhosin: Unable to initialize module
Module compiled with module API=20090626, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0

And the following 5 steps to fix  suhosin problem in cpanel and others:

1. Download suhosin from source
wget http://download.suhosin.org/suhosin-0.9.33.tgz

2. Extract suhosin source and enter to suhosin directory
tar -zxvf suhosin-0.9.33.tgz
cd suhosin-0.9.33

3. Building PHP extension using phpize
phpize

4. Configure and compile suhosin
./configure
make
make install

Then restart your apahce or any web services. Voila…, suhosin problem has been fixed.

Leave a Reply

Your email address will not be published. Required fields are marked *


*