(12-26-2017, 06:41 AM)Richardkl Wrote: stop apache2
service apache2 stop
add-apt-repository ppa:ondrej/php
apt update
apt-get autoremove
apt install php5.6-dev libapache2-mod-php5.6 php5.6-curl php5.6-gd php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-xmlrpc php5.6-zip
a2dismod php7.0
a2enmod php5.6
systemctl restart apache2
and to add suhosin
service apache2 stop
https://suhosin.org/stories/install.html
YOU MUSR HAVE A -DEV VERSION OF PHP INSTALLED SO IT ADDS BUILD JSON AND PSPIZE FILES NEEDED FOR USING PHPISE COMMAND
cd /tmp
wget https://download.suhosin.org/suhosin-0.9.38.tar.gz
tar -xzf suhosin-0.9.38.tar.gz
rm -f suhosin-0.9.38.tar.gz
cd suhosin-0.9.38
phpize -v
tells you that php api version it is going to run
make sure it matches the number in yours
/usr/include/php
/usr/lib/php
phpize
./configure
make
cd ..
rm -rf suhosin-0.9.38
add extension=suhosin.so to php.ini
cd /etc/php/apache2
nano php.ini
service apache2 restart
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.5.0, Copyright © 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright © 1999-2014, by Zend Technologies
with Suhosin v0.9.37.1, Copyright © 2007-2014, by SektionEins GmbH
Thanks, I got this working by upgrading my ubuntu version from 12.04 to 14.04