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:
- Download the Suhosin extension:
wget https://download.suhosin.org/suhosin-0.9.38.tar.gz- Extract the downloaded archive:
tar xvzf suhosin-0.9.38.tar.gz- Change to the extracted directory:
cd suhosin-0.9.38- Compile and install the Suhosin extension:
phpizern./configurernmake
make install- Edit the
php.inifile and add the following line to the end:
extension=suhosin.so- Restart the Apache HTTP Server:
service httpd restartThe 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.
