From owner-freebsd-questions@freebsd.org Wed Dec 6 22:24:48 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 8199BE8E359 for ; Wed, 6 Dec 2017 22:24:48 +0000 (UTC) (envelope-from orion@blackboxconsortium.com) Received: from vps.getseenmedia.com (vps.getseenmedia.com [184.154.14.79]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 53189656FB for ; Wed, 6 Dec 2017 22:24:47 +0000 (UTC) (envelope-from orion@blackboxconsortium.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=blackboxconsortium.com; s=default; h=Content-Transfer-Encoding:Content-Type :In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WH03r8XT6OyaBhJCz5HgcgYKlGa//YBx11IkUvKW8WA=; b=I7m5riY2vzgOBmhdVRuAZbgrnL KtMhwpDo6A/ifq6AotFvKiYCDgoCxSQcy17H485tfr7YbjItcN0S5gIJbGV8Fy6DyNykWj2cEVWAb OleF2Yb2BM1Tfa9zvPpP6aQQYWdVOzrJwuAbS3MoTFWUKNkbHNGCJpYalDhhU+oADGRhISxvWr68y nybHKa1u5JDmA3f64tSzJImK6iBL1e+N7d95yFnAzwhcJwfDYcizGfOb7BVDi8F8weSAUZR82yYfd QJmcMCgHNtl7SF3aI4okE6KMyLy9YtsKz1iMzfsmwBj+YBzdp0/Qw3tNpv1yBpdDK3Si6CVU3iZ4n cUB5x07g==; Received: from 47-51-33-228.static.mtpk.ca.charter.com ([47.51.33.228]:45540 helo=homemail.leadverticals.com) by vps.getseenmedia.com with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1eMhIR-0000MP-27 for freebsd-questions@freebsd.org; Wed, 06 Dec 2017 13:32:03 -0800 Subject: Re: Upgrading from php5.6 to php7 To: freebsd-questions@freebsd.org References: <44b96b99-4254-14a2-a2ef-8aa9699a3edf@cloudzeeland.nl> From: Orion Tiller Message-ID: Date: Wed, 6 Dec 2017 13:31:59 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <44b96b99-4254-14a2-a2ef-8aa9699a3edf@cloudzeeland.nl> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.getseenmedia.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - blackboxconsortium.com X-Get-Message-Sender-Via: vps.getseenmedia.com: authenticated_id: orion@blackboxconsortium.com X-Authenticated-Sender: vps.getseenmedia.com: orion@blackboxconsortium.com X-Source: X-Source-Args: X-Source-Dir: 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:24:48 -0000 > 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.  $ 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.     //pecl-redis workaround for PHP 7.0     $ echo DEFAULT_VERSIONS+=php=7.0 >> /etc/make.conf     $ cd /usr/ports/databases/pecl-redis/     $ make install clean     $ pkg lock pecl-redis then install 7.0 and any other extensions you will need     $ pkg install php70