RE: How to upgrade php and mysql Centos 6 64 ( Sentora)
04-16-2015, 09:04 PM
(This post was last modified: 04-16-2015, 09:10 PM by Account_Own.)
(04-16-2015, 08:47 PM)Me.B Wrote: You can use centos 7 that have php 5.4 or use ubuntu 14 that have PHP 5.5.
We don't offer support for upgrading php using third party repos, you can do it at your own risk.
It would be better so we can all get a php upgraded..like i want to use Centos 6 and have upgraded.. i done this to upgrade to php 5.5.
yum install yum-plugin-replace
yum replace php-common --replace-with=php55w-common
On the php-v it says now :
Quote:[root@sentora-test ~]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/module
s/suhosin.so' - /usr/lib64/php/modules/suhosin.so: undefined symbol: php_checkui
d in Unknown on line 0
PHP 5.5.23 (cli) (built: Mar 21 2015 22:04:59)
Copyright © 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright © 1998-2015 Zend Technologies
FIX OF THE ISSUE :
Code:
cd /tmp
wget -nv -O suhosin.zip https://github.com/stefanesser/suhosin/archive/suhosin-0.9.37.zip
unzip -q suhosin.zip
rm -f suhosin.zip
cd suhosin-suhosin-0.9.37
phpize &> /dev/null
./configure &> /dev/null
make &> /dev/null
make install
cd ..
rm -rf suhosin-suhosin-0.9.37
Quote:[root@sentora-test ~]# php -v
PHP 5.5.23 (cli) (built: Mar 21 2015 22:04:59)
Copyright © 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright © 1998-2015 Zend Technologies
with Suhosin v0.9.37-dev, Copyright © 2007-2014, by SektionEins GmbH