Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: PHP 5.6 CentOS 7
PostPosted: Fri May 19, 2017 11:56 am 
Offline
Newbie

Joined: Fri May 19, 2017 11:52 am
Posts: 2
Can anyone provide any guidance on how to best update PHP 5.4.16 to 5.6 on a Linode CentOS 7. I know the distro does not support it, but I need it for some specific apps. Thanks!


Top
   
 Post subject: Re: PHP 5.6 CentOS 7
PostPosted: Fri May 19, 2017 11:36 pm 
Offline
Newbie

Joined: Fri May 19, 2017 11:52 am
Posts: 2
Can anyone critique this process for installing PHP 5.6 on a Linode CentOS 7 Server?

https://zedt.eu/tech/linux/enabling-php ... -centos-7/

Will this work? Or will it cause damage?


Top
   
 Post subject: Re: PHP 5.6 CentOS 7
PostPosted: Sat May 20, 2017 11:01 am 
Offline
Newbie

Joined: Sun Jun 28, 2015 8:51 pm
Posts: 4
I was looking for info on this myself. I read around, and found this set of upgrade instructions:

Quote:
To use the IUS packages in CentOS 7:

1. Install EPEL and IUS repositories:
# yum --enablerepo=extras install epel-release
# yum install https://centos7.iuscommunity.org/ius-release.rpm

2. Install yum-plugin-replace and replace the php packages with php56u packages:
# yum install yum-plugin-replace
# yum replace --replace-with php56u php

3. Restart any services which depend on php, such as httpd.

Note that this will install the current version of 5.6, which at the time of posting is 5.6.16, and that a "yum update" will keep the packages up to date in future.


I'm not a complete server neophyte, but this is something I've not done before (use a different repository), so I asked Linode support about it. They had this to say:

Quote:
It's hard to say if upgrading will break anything within your Linode as an infrastructure provider we do have our limitations as to what we can Support. But those steps you've listed look correct based my readings.


A subsequent question to them about "What's the official policy then" garnered this in reply:

Quote:
The official stance by CentOS's maintainers is to update to the latest version of CentOS 7 and then update PHP accordingly. However, if you want to keep the same version of CentOS then using a different repository for PHP updates should be fairly safe. If you need to, you can always uninstall PHP and install it from a different repository or package.

I've personally used Remi's repository for Enterprise Linux, which covers RHEL and CentOS:

https://rpms.remirepo.net/enterprise/7/

But I hear that IUS is also very reliable.


So at this point, I'm a bit confused as to what path to take. :)


Top
   
 Post subject: Re: PHP 5.6 CentOS 7
PostPosted: Sat May 20, 2017 7:36 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 1:41 pm
Posts: 919
I am starting the process of this myself, for a web application that no longer supports the base version (5.4) of PHP in CentOS 7. The most "official" way I have found is to use Software Collections. PHP 5.6 is included as a package. Once you have installed the centos-release-scl package, you will see a number of rh-php56* packages available through yum.

Keep in mind that these packages do not provide the built-in PHP module for Apache. To get that, you will need to install from the httpd24 Software Collection. I believe it should be possible to connect the base Apache in CentOS to PHP-FPM provided in rh-php56-php-fpm.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group