RE: [How To] Update from PHP v5.4.16 to v5.6.31 (Includes suhosin patch) [CentOS]
02-24-2019, 09:12 AM
(This post was last modified: 02-24-2019, 09:41 AM by mohamedh.)
WARNING:
If you use Wordpress, then Be aware that this version of Suhosin WILL BREAK some WordPress features (mainly a bug when adding new items to menu is the most known issue).
aka: you will not be able to add new items to the menu in Worpdress.
Solution:
Use suhosin 0.9.38 instead of version 0.9.37 used in this post. If you haven't followed the post then instead of following the "rebuild suhosin" part, follow these instructions instead. If you already followed the post, it's okay, you can still do the steps to upgrade your suhosin version.
This has been tested on Centos 7. I have no idea how it might go for other operating systems (but in theory it should work).
If you use Wordpress, then Be aware that this version of Suhosin WILL BREAK some WordPress features (mainly a bug when adding new items to menu is the most known issue).
aka: you will not be able to add new items to the menu in Worpdress.
Solution:
Use suhosin 0.9.38 instead of version 0.9.37 used in this post. If you haven't followed the post then instead of following the "rebuild suhosin" part, follow these instructions instead. If you already followed the post, it's okay, you can still do the steps to upgrade your suhosin version.
PHP Code:
cd /tmp
wget -nv -O suhosin.tar.gz https://download.suhosin.org/suhosin-0.9.38.tar.gz --no-check-certificate
tar -xf suhosin.tar.gz
cd suhosin-0.9.38
phpize &> /dev/null
./configure &> /dev/null
make &> /dev/null
sudo make install
# Now you're done, check your php version.
php -v
# Now restart your server
reboot
This has been tested on Centos 7. I have no idea how it might go for other operating systems (but in theory it should work).