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.

Centos 7 clean update to PHP 5.5
#1
Centos 7 clean update to PHP 5.5
Hi all,

I want to share my way of a clean update to php 5.5 for Centos 7:

Add RPM's:

Code:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Next install Yum replace plugin:

Code:
yum install yum-plugin-replace

Lets replace PHP-Common with PHP55W-Common

Code:
yum replace php-common --replace-with=php55w-common

PHP55W-Common is with Zend and Opcache

But of course we need to compile Suhosin! This code will install Suhosin 0.9.38:

Code:
cd /tmp
wget -nv -O suhosin.tar.gz https://download.suhosin.org/suhosin-0.9.38.tar.gz
tar -xvzf suhosin.tar.gz
rm -f suhosin.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

Check everything with:

Code:
php -v

You should have:

Code:
PHP 5.5.29 (cli) (built: Sep  4 2015 06:04:49)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
   with Suhosin v0.9.38, Copyright (c) 2007-2015, by SektionEins GmbH
[Image: logo2.png]

My being on this forum is all personal and all is done here by me has nothing to with the company Web Improved I work for Smile
Reply
Thanks given by: TGates , chipset , Mazerunner04
#2
RE: Centos 7 clean update to PHP 5.5
Likely you are missing some php libs like IMAP ( required for round cube).
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#3
RE: Centos 7 clean update to PHP 5.5
(10-27-2015, 12:02 AM)Me.B Wrote: Likely you are missing some php libs like IMAP ( required for round cube).

Nope working normally.
[Image: logo2.png]

My being on this forum is all personal and all is done here by me has nothing to with the company Web Improved I work for Smile
Reply
Thanks given by:
#4
RE: Centos 7 clean update to PHP 5.5
Hi how to enable or install SOAP
I have this problem after update to php 5.5.33:
Error: php55w-common conflicts with php-common-5.4.16-36.el7_1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Thank you very much.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Fail2ban for Sentora (Centos 7) bbspike 14 48 ,676 01-14-2020, 07:32 AM
Last Post: Vedran B
Update to PHP 7.1.2 with success! julinhobrow 5 24 ,773 09-06-2019, 02:11 PM
Last Post: gerzok
[How To] Update from PHP v5.4.16 to v5.6.31 (Includes suhosin patch) [CentOS] betatester3.0 5 19 ,356 03-18-2019, 01:23 AM
Last Post: BigBang

Forum Jump:


Users browsing this thread: 1 Guest(s)