How to Install Suhosin in cPanel

How to Install Suhosin in cPanel

Suhosin is an advanced protection system for PHP installations. It was designed to protect servers and users from known and unknown flaws in PHP applications and the PHP core. Suhosin comes in two independent parts, that can be used separately or in combination.

tar zxvf suhosin-0.9.38.tgz
cd suhosin-0.9.38
phpize ./configure
make
make install

After you installed suhosin you will get something like this: It’s installed to /usr/local/lib/php/extensions/no-debug-non-zts-20060613/

Now edit your php.ini. If you don’t know where php.ini located is, type this into SSH.

php -i | grep php.ini

Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
It means you have to edit /usr/local/lib/php.ini

Type into SHH:

nano /usr/local/lib/php.ini

Find “extension_dir =” and add:

extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20060613/

To save it, CTRL + O and press the enter button on your keyboard.

whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.

2 comments
%d bloggers like this: