Few days ago I was surprised that many error messages started to flood my logs on couple of Cpanel/WHM server where I use php 5.2.17. The error was the following:
[05-Mar-2012 18:18:59] PHP Warning: PHP Startup: Suhosin Extension
does not officially support PHP 5.2 and below anymore, because it is
discontinued. Use it at your own risk. in Unknown on line 0
However, bad situation but I have a fix..
I don’t like this. I cannot switch to 5.3.10 even it is easy on Cpanel/WHM. Lot of websites would stop working because they are not ported to new php version.
Therefore the only situation I can do is to downgrade suhosin from 0.9.33 to 0.9.31 following these steps:
# remove suhosin from easyapache php config
/usr/local/cpanel/scripts/phpextensionmgr uninstall PHPSuHosin
# download and install older suhosin
tar zxf suhosin-0.9.31.tgz
#open php.ini and add line loading suhosin
and paste following line into section where you add extensions
Now restart apache and you are ready to go.. verify by running “php -v“