Compiling SUHOSIN in CentOS can be distilled into a one-liner; I can't imagine it is that much harder on Ubuntu. - Copy and paste all of this into your SSH terminal. The "echo" command at the end is to make the CLI enter the last command without you having to depress the <ENTER> key. This whole process takes less than two minutes. Hopefully it will be of some help to you with Ubuntu.
This is all that is likely to be different:
Rename the suhosin.ini it in your etc/php.d folder with a priority like, 20-suhosin.ini
Code:
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 &> /dev/null
./configure &> /dev/null
make &> /dev/null
make install
cd ..
rm -rf suhosin-0.9.38
echo
This is all that is likely to be different:
Rename the suhosin.ini it in your etc/php.d folder with a priority like, 20-suhosin.ini
Code:
; Enable Suhosin
extension=suhosin.so
Everyone makes mistakes, but to truly screw up it takes the root password!