Debian 8 and Ubuntu 14.04 LTS Install Suhosin PHP Extension To Protect Your Server

To install the Suhosin PHP extension on Debian 8 and Ubuntu 14.04 LTS, you need to perform the following steps:

  1. Add the PPA repository for Suhosin:
sudo add-apt-repository ppa:ondrej/php
  1. Update the package list:
sudo apt-get update
  1. Install the Suhosin extension:
sudo apt-get install php-suhosin
  1. Restart the Apache web server:
sudo service apache2 restart
  1. Verify the installation by creating a file named phpinfo.php with the following contents:
<?php
phpinfo();
?>

And accessing it in your web browser: http://your-server/phpinfo.php. Search for “suhosin” in the output to see if it’s installed and enabled.

After installation, you can configure the Suhosin extension by editing the php.ini file. The Suhosin configuration options are well documented in the /etc/php/7.0/mods-available/suhosin.ini file.

Note: The exact commands and packages may vary depending on the specific version of Debian or Ubuntu you are using.

Leave a Comment