« PreviousNext »

Suhosin does not support php 5.2 on Cpanel/WHM server

5 March 2012

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
wget http://download.suhosin.org/suhosin-0.9.31.tgz
tar zxf suhosin-0.9.31.tgz
cd suhosin-0.9.31
make install

#open php.ini and add line loading suhosin
vi /usr/local/lib/php.ini

and paste following line into section where you add extensions



Now restart apache and you are ready to go.. verify by running “php -v

Posted in Cpanel/WHM | Trackback | del.icio.us | Top Of Page

    3 Responses to “Suhosin does not support php 5.2 on Cpanel/WHM server”

  1. Red Expertos - Hosting en Colombia Says:

    Great tutorial, this should be documented by cpanel staff.

    Many of us are dealing with the same problem with suhosin support.

  2. Rajbir Says:


    It’s works fine now, actually it was a PHP mapping issue.

    Once again thanks for posting this.



  3. Sheryl Says:

    This text is invaluable. When can I find out more?

Leave a Reply