Updating php linux
Updating php linux - Live chat dating no sign uo
I suggest taking a copy of PHP specific configuration files, such as /etc/and /etc/php-fpm.d/
Basically you should perform the upgrade on a test server first, and check all website functionality while viewing php-fpm and web server specific error logs for problems.
Note that if you are sticking with either Webtatic or IUS that you don’t need to perform this step, this is just me changing my repository.
If you’re already using Webtatic and not changing, or IUS and not changing, move onto the ‘Backup Configuration’ step below.
Please see our article Use Server Snapshots to Back Up and Restore a 1&1 Cloud Server for details and step-by-step instructions.
We will be using the IUS repository to upgrade PHP.
The default version of PHP available on a new 1&1 Cloud Server running Cent OS 7 is version 5.4. You will need to perform the upgrade by hand, since PHP 7 is not available in the standard Cent OS 7 repository, because it is not considered stable.
This is a significant upgrade, with potential for causing serious conflicts with any web software you may be running.With that information in mind, I decided that when upgrading to PHP 7.1 I’d also change to the IUS repository.Before beginning we can see that we’re currently running PHP version 5.6.30.[[email protected] ~]# php -v PHP 5.6.30 (cli) (built: Jan 19 2017 ) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies [[email protected] ~]# yum list installed | grep -i webtatic php56w.x86_64 5.6.30-1.w7 @webtatic php56w-cli.x86_64 5.6.30-1.w7 @webtatic php56w-common.x86_64 5.6.30-1.w7 @webtatic php56w-fpm.x86_64 5.6.30-1.w7 @webtatic php56w-gd.x86_64 5.6.30-1.w7 @webtatic php56w-mbstring.x86_64 5.6.30-1.w7 @webtatic php56w-mysqlnd.x86_64 5.6.30-1.w7 @webtatic php56w-opcache.x86_64 5.6.30-1.w7 @webtatic php56w-pdo.x86_64 5.6.30-1.w7 @webtatic php56w-pear.noarch 1:1.10.1-1.w7 @webtatic php56w-pecl-igbinary.x86_64 2.0.1-1.w7 @webtatic php56w-pecl-memcache.x86_64 3.0.8-2.w7 @webtatic php56w-pecl-memcached.x86_64 2.2.0-1.w7 @webtatic php56w-process.x86_64 5.6.30-1.w7 @webtatic php56w-xml.x86_64 5.6.30-1.w7 @webtatic webtatic-release.noarch 7-3 installed Note down all of these PHP packages, we’ll need them later.Remember to keep note of these, as we’ll need that in the next step.[[email protected] ~]# yum remove php56w php56w-cli php56w-common php56w-fpm php56w-gd php56w-mbstring php56w-mysqlnd php56w-opcache php56w-pdo php56w-pear php56w-pecl-igbinary php56w-pecl-memcache php56w-pecl-memcached php56w-process php56w-xml A ‘upgrade PHP 5.6 to 7.1’ guide would not be complete without actually installing PHP 7.1!Now with the list of PHP packages that we previously removed, we simply copy them and edit them a bit.Based on this, I use yum to install these same PHP packages except version 7.1 rather than 5.6, that is 71 instead of 56.