Red Hat / CentOS Linux Install Suhosin PHP 5 Protection Security Patch

https:/‮.www/‬lautturi.com
Red Hat / CentOS Linux Install Suhosin PHP 5 Protection Security Patch

To install the Suhosin PHP 5 protection security patch on a Red Hat or CentOS Linux system, you will need to install the Suhosin PHP extension and enable it in your PHP configuration.

Here are the steps to install Suhosin on a Red Hat or CentOS Linux system:

  1. Download the Suhosin PHP extension from the Suhosin website and save it to your system. You can download the latest version of Suhosin from the following URL:

https://www.hardened-php.net/suhosin/

  1. Extract the Suhosin PHP extension to a directory on your system. For example:
tar xvf suhosin-0.9.38.tar.gz

This will extract the Suhosin PHP extension to the suhosin-0.9.38 directory.

  1. Change to the Suhosin installation directory and run the phpize command to prepare the extension for building:
cd suhosin-0.9.38
phpize
  1. Run the configure script to configure the Suhosin extension:
./configure
  1. Run the make command to build the Suhosin extension:
make
  1. Run the make install command to install the Suhosin extension:
make install

This will install the Suhosin extension to the extensions directory of your PHP installation.

  1. To enable the Suhosin extension, add the following line to the php.ini file:
extension=suhosin.so
  1. Restart the web server to apply the changes:
sudo systemctl restart httpd

The Suhosin PHP extension is now installed and enabled on your system. You can use it to enhance the security of your PHP scripts.

It's always a good idea to carefully review the documentation and use the appropriate commands to install and configure the Suhosin PHP extension on your system. This will help ensure that you have a secure and reliable way to protect your PHP scripts from potential security threats.

Created Time:2017-10-30 14:27:14  Author:lautturi