CentOS / RHEL 6: Install Suhosin PHP Advanced Protection System

To install the Suhosin PHP advanced protection system on CentOS 6 or RHEL 6, follow these steps:

  1. Download the Suhosin extension:
wget https://download.suhosin.org/suhosin-0.9.38.tar.gz
  1. Extract the downloaded archive:
tar xvzf suhosin-0.9.38.tar.gz
  1. Change to the extracted directory:
cd suhosin-0.9.38
  1. Compile and install the Suhosin extension:
phpize
./configure
make
make install
  1. Edit the php.ini file and add the following line to the end:
extension=suhosin.so
  1. Restart the Apache HTTP Server:
service httpd restart

The Suhosin PHP advanced protection system is now installed and configured on your CentOS 6 or RHEL 6 system. You can verify that the Suhosin extension is loaded by running the php -m command and checking for suhosin in the list of modules.

Leave a Comment