Suhosin Installing on FreeBSD with PHP 7.x

get a source using following command

git clone https://github.com/sektioneins/suhosin7

go to suhosin7 directory and execute following commands

cd suhosin7
phpize
./configure
make
make install

it will give you similar o/p as following

Installing shared extensions:     /usr/local/lib/php/xxxxxxxx/

Now
create a ini file
vi /usr/local/etc/php/ext-suhosin.ini

add following line

extension=suhosin7.so

TO check suhosin is imstalled you can use following command

php -m | grep suhosin

it should output
suhosin7

 
Categories