This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[How To] Update from PHP v5.4.16 to v5.6.31 (Includes suhosin patch) [CentOS]
#1
[How To] Update from PHP v5.4.16 to v5.6.31 (Includes suhosin patch) [CentOS]
Lets begin by logging into your panel using ssh, then enter the following commands:
Code:
//check current version
php -v
// install epel && update
yum install epel* && yumupdate
//Add CentOS 7 repo
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
//run it && update
sudo rpm -Uvh remi-release-7*.rpm && yum update
//update php to 5.6
yum --enablerepo=remi,remi-php56 update

Now the above handles the installation of php5.6, although the following is the main part and is A MUST for Sentora Panel.

Rebuild Suhosin
Code:
cd /tmp
wget -nv -O suhosin.zip https://github.com/stefanesser/suhosin/archive/suhosin-0.9.37.zip
unzip -q suhosin.zip
cd suhosin-suhosin-0.9.37
phpize &> /dev/null
./configure &> /dev/null
make &> /dev/null
make install
// now reboot using
reboot
//after reboot do
php -v

You should get the following output:

[Image: U6hbjoM.png]
-BetaTester3.0  ||  Just Another Sentora User. 

Did you know, Sentora has a full Support Documentation ?
If I helped +rep & Thanks is appreciated.
BTC: 1Bps3ZerDFDDnXJ9XdWtHhdhwsV4MVGLkw

Reply
Thanks given by:
#2
RE: [How To] Update from PHP v5.4.16 to v5.6.31 (Includes suhosin patch) [CentOS]
(10-18-2017, 02:46 AM)betatester3.0 Wrote: Lets begin by logging into your panel using ssh, then enter the following commands:
Code:
//check current version
php -v
// install epel && update
yum install epel* && yumupdate
//Add CentOS 7 repo
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
//run it && update
sudo rpm -Uvh remi-release-7*.rpm && yum update
//update php to 5.6
yum --enablerepo=remi,remi-php56 update

Now the above handles the installation of php5.6, although the following is the main part and is A MUST for Sentora Panel.

Rebuild Suhosin
Code:
cd /tmp
wget -nv -O suhosin.zip https://github.com/stefanesser/suhosin/archive/suhosin-0.9.37.zip
unzip -q suhosin.zip
cd suhosin-suhosin-0.9.37
phpize &> /dev/null
./configure &> /dev/null
make &> /dev/null
make install
// now reboot using
reboot
//after reboot do
php -v

You should get the following output:

[Image: U6hbjoM.png]

Hi,
I already do this post but PHP-SOAP is not working, please help
I have worpress with Woocommerce installed, before the update php-soap client work but after the update do not work.
Reply
Thanks given by:
#3
RE: [How To] Update from PHP v5.4.16 to v5.6.31 (Includes suhosin patch) [CentOS]
(05-24-2018, 05:29 AM)hym300 Wrote: Hi,
I already do this post but PHP-SOAP is not working, please help
I have worpress with Woocommerce installed, before the update php-soap client work but after the update do not work.

Is SOAP installed?

I did a quick check on Google and there is a lot of info that may help you.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#4
RE: [How To] Update from PHP v5.4.16 to v5.6.31 (Includes suhosin patch) [CentOS]
I updated exactly like his and get:

[root@******l ~]# php -v
PHP 5.4.45 (cli) (built: Mar  1 2018 10:09:59)
Copyright © 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright © 1998-2014 Zend Technologies
    with Suhosin v0.9.37-dev, Copyright © 2007-2014, by SektionEins GmbH

I am using centos 6.10

however when i go to create a new mysql user i get error 500. 

Can you confirm this update instructions allow you to create a new mysql user?

thanks
Reply
Thanks given by:
#5
RE: [How To] Update from PHP v5.4.16 to v5.6.31 (Includes suhosin patch) [CentOS]
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.

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).
Reply
Thanks given by: BigBang
#6
RE: [How To] Update from PHP v5.4.16 to v5.6.31 (Includes suhosin patch) [CentOS]
(02-24-2019, 09:12 AM)mohamedh Wrote: 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.

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).

mohamedh, man, you're rock! That helps. CentOS 6
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Fail2ban for Sentora (Centos 7) bbspike 14 48 ,987 01-14-2020, 07:32 AM
Last Post: Vedran B
Update to PHP 7.1.2 with success! julinhobrow 5 24 ,925 09-06-2019, 02:11 PM
Last Post: gerzok
How to Update PHP 5.5.9 To 5.6 elmucho 0 3 ,429 02-01-2018, 11:34 AM
Last Post: elmucho

Forum Jump:


Users browsing this thread: 1 Guest(s)