Server Administration & Management

How to install Suhosin in Linux

Suhosin was designed to 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 including wordpress and many other open source php based apps. Install Suhosin as extension

1. Download latest version of Suhosin, enter the following command for that purpose

# cd /opt
# wget http://download.suhosin.org/suhosin-0.9.33.tgz
# tar -zxf

2. Make sure you have php-devel installed

# yum install php-devel

3. Compile Suhosin under PHP and RHEL / CentOS Linux using the below commands

# cd suhosin-0.9.33
# phpize
# make
# make install

4. The Configure Suhosin onto the server, using the below command a configuration file of Suhosin would be created

# echo ‘extension=suhosin.so’ > /etc/php.d/suhosin.ini

5. Restart web server

# service httpd restart

6. Verify Suhosin installation

# php -v

Sample output:

PHP 5.1.6 (cli) (built: Nov 13 2010 16:05:12)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
    with Suhosin v0.9.33, Copyright (c) 2007, by SektionEins GmbH

7. You can find more information by running phpinfo():


January 23, 2012 Posted by | Tips & Tricks, Unix/Linux | , , , | Leave a comment