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


Messages In This Thread
Centos 7 clean update to PHP 5.5 - by bbspike - 10-17-2015, 05:12 AM
RE: Centos 7 clean update to PHP 5.5 - by Me.B - 10-27-2015, 12:02 AM
RE: Centos 7 clean update to PHP 5.5 - by bbspike - 11-17-2015, 11:07 PM
RE: Centos 7 clean update to PHP 5.5 - by chipset - 04-21-2016, 05:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Fail2ban for Sentora (Centos 7) bbspike 14 44 ,932 01-14-2020, 07:32 AM
Last Post: Vedran B
Update to PHP 7.1.2 with success! julinhobrow 5 23 ,166 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 17 ,047 03-18-2019, 01:23 AM
Last Post: BigBang

Forum Jump:


Users browsing this thread: 1 Guest(s)