In this article we will show you two methods for installing Suhosin Patch under RHEL / CentOS / Fedora systems. Please note in some Linux distributions like Debian and Ubuntu, suhosin shipped by default.
See also : Protect Linux Servers with LMD (Linux Malware Detect)
The first part includes using source code installation and the second part instillation is by turning on third party epel repository.
Part 1: Installing Suhosin Patch using Source Code
First install dependency package php-devel and then download latest version of suhosin patch using wget command and unpack it.# yum install php-devel # wget http://download.suhosin.org/suhosin-0.9.33.tgz # tar -xvf suhosin-0.9.33.tgzNext, run the following commands to compile suhosin patch for php installation.
# cd suhosin-0.9.33 # phpize # ./configure # make # make installCreate the suhosin configuration file by adding suhosin extension to it.
# echo 'extension=suhosin.so' > /etc/php.d/suhosin.iniRestart the web server Apache, Nginx or Lighttpd.
# service httpd restart # service nginx restart # service lighttpd restart
Part 2: Installing Suhosin Patch using EPEL repository
Turn on EPEL repository under RHEL / CentOS systems and then run the following command to install it. (Note : Fedora user’s don’t need to add epel repository).| روابط هذه التدوينة قابلة للنسخ واللصق | |
| URL | |
| HTML | |
| BBCode | |
kamindoz
