Linux.com

Home Linux Community Community Blogs Servers Installing Suhosin PHP 5 Protection Security Patch - Red Hat EL5 / CentOS EL5 Linux

Installing Suhosin PHP 5 Protection Security Patch - Red Hat EL5 / CentOS EL5 Linux

Install Suhosin as extension

Download latest version of Suhosin, enter:

# cd /opt
# wget http://download.suhosin.org/suhosin-0.9.27.tgz

Make sure you have php-devel installed:

# yum install php-devel

Compile Suhosin under PHP 5 and RHEL / CentOS EL5 Linux

Type the following commands:

# tar -zxvf suhosin-0.9.27.tgz
# cd suhosin-0.9.27
# phpize
#./configure
# make
# make install

Configure Suhosin

Type the following command to create Suhosin configuration file:

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

Restart web server

Type the following command to restart httpd:

# service httpd restart

If you are using lighttpd, enter:

# service lighttpd restart

Verify Suhosin installation

Type the following command:

$ php -v

Sample output:

PHP 5.1.6 (cli) (built: Apr  7 2009 08:00:04)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins Gmb

More information can be found at http://www.hardened-php.net/suhosin/
 

Comments

Subscribe to Comments Feed

Upcoming Linux Foundation Courses

  1. LFD320 Linux Kernel Internals and Debugging
    04 Aug » 08 Aug - Virtual
    Details
  2. LFD405 Embedded Linux Development with Yocto Project
    04 Aug » 07 Aug - Santa Clara, CA
    Details
  3. LFD312 Developing Applications For Linux
    18 Aug » 22 Aug - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board