Date: Wed, 6 Dec 2017 13:31:59 -0800 From: Orion Tiller <orion@blackboxconsortium.com> To: freebsd-questions@freebsd.org Subject: Re: Upgrading from php5.6 to php7 Message-ID: <c8c3772f-5352-c530-d8fd-6e0e4a7f9753@blackboxconsortium.com> In-Reply-To: <44b96b99-4254-14a2-a2ef-8aa9699a3edf@cloudzeeland.nl> References: <44b96b99-4254-14a2-a2ef-8aa9699a3edf@cloudzeeland.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c8c3772f-5352-c530-d8fd-6e0e4a7f9753>