Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Dec 2017 16:58:59 -0600
From:      Paul Schmehl <pschmehl_lists@tx.rr.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Upgrading from php5.6 to php7
Message-ID:  <05AFFDF0A272ABF9E01A403D@Pauls-MacBook-Pro.local>
In-Reply-To: <c8c3772f-5352-c530-d8fd-6e0e4a7f9753@blackboxconsortium.com>
References:  <44b96b99-4254-14a2-a2ef-8aa9699a3edf@cloudzeeland.nl> <c8c3772f-5352-c530-d8fd-6e0e4a7f9753@blackboxconsortium.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--On December 6, 2017 at 1:31:59 PM -0800 Orion Tiller=20
<orion@blackboxconsortium.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?05AFFDF0A272ABF9E01A403D>