From owner-freebsd-questions@freebsd.org Wed Dec 6 22:59:25 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A18DE8F295 for ; Wed, 6 Dec 2017 22:59:25 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from dnvrco-cmomta02.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3C98D66C04 for ; Wed, 6 Dec 2017 22:59:24 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from [192.168.0.6] ([70.121.63.82]) by cmsmtp with ESMTPA id MiereG9zxLrBHMieveStuG; Wed, 06 Dec 2017 22:59:21 +0000 Date: Wed, 06 Dec 2017 16:58:59 -0600 From: Paul Schmehl Reply-To: Paul Schmehl To: freebsd-questions@freebsd.org Subject: Re: Upgrading from php5.6 to php7 Message-ID: <05AFFDF0A272ABF9E01A403D@Pauls-MacBook-Pro.local> In-Reply-To: References: <44b96b99-4254-14a2-a2ef-8aa9699a3edf@cloudzeeland.nl> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-CMAE-Envelope: MS4wfM0Vpvtgj+FLK7Upk7I3rHZETqIJqR/pnzvcKQjtK1ZB+pxIWHxhwKMOnO4fJUBgfVH9Ff2FRtlFXALy6UcgGzBC/XJFGX13zCGcqK2Xzip1uAj4VswZ ikwMNJHKWO2mtJDmdvUH41X8bjZS7gqI9rfx/Us4UlSrLDjwR46WiMTWt+tebKryDmstN6sIm95/dg== X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Dec 2017 22:59:25 -0000 --On December 6, 2017 at 1:31:59 PM -0800 Orion Tiller=20 wrote: >> I need to upgrade from php 5.6 to php 7.0. >> Can someone tell me how I can do that best? Read a lot of solutionson >> the web, but all tell different from each other. >> >> Would it be better to first deinstall php 5.6 and then start all over >> with php7? >> >> Thanks, Jos >> >> > Yes doing it that way has worked for me.=C2=A0 > > $ pkg remove php56 > > If you are going to need the pecl-redis extension you will need to > compile it for php7.0 from ports otherwise pkg will try to remove 7 and > reinstall 5.6 > I know this works for 7.1 but I have never done this with 7.0 but it > should be the same. > > =C2=A0=C2=A0=C2=A0 //pecl-redis workaround for PHP 7.0 > =C2=A0=C2=A0=C2=A0 $ echo DEFAULT_VERSIONS+=3Dphp=3D7.0 >> /etc/make.conf > =C2=A0=C2=A0=C2=A0 $ cd /usr/ports/databases/pecl-redis/ > =C2=A0=C2=A0=C2=A0 $ make install clean > =C2=A0=C2=A0=C2=A0 $ pkg lock pecl-redis > > then install 7.0 and any other extensions you will need > > =C2=A0=C2=A0=C2=A0 $ pkg install php70 I ran portmaster -o lang/php71 lang/php56. Then portmaster -R -r lang/php71 Worked fine. Make sure you aren't specifying php56 in /etc/make.conf. Paul Schmehl, Retired As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell