suhosin installation in centos server

Download the source file and extract

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

Next, run the following commands to compile suhosin patch for php installation.

# phpize
# ./configure
# make
# make install

Create the suhosin configuration file by adding suhosin extension to it.

# php -i | grep php.ini

Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

# vi /usr/local/lib/php.ini

Add the extension as follows.

extension=suhosin.so

Save the file and check php info page to see suhosin and its various parameters.

Leave a Reply

Your email address will not be published. Required fields are marked *