How To Install Suhosin PHP 5 Protection Security Patch on CentOS


In this tutorial we will show you how to install Suhosin PHP 5 protection security patch on CentOS. For those of you who didn’t know, Suhosin patch is an advanced protection system for PHP installations. It was designed protect your servers against a number of well known problems in PHP applications and on the other hand against potential unknown vulnerabilities within these applications or the PHP core itself.

Install Suhosin PHP 5 Protection Security Patch on CentOS

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Download latest version of Suhosin:

 Next, run the following commands to compile Suhosin under PHP 5:

Create the suhosin configuration, type the following command:

Restart web server Nginx, Lighttpd or Apache:

Step 3. Verify Suhosin installation


 Suhosin should now be installed. You can check by creating a file called info.php in /var/www/html/ with the following content:


The features of the Suhosin patch are listed under Engine Protection (only with patch); all the other features come with the Suhosin extension. But if you would like configure it according to your setup, then visit the suhosin configuration page for more information.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!