From owner-freebsd-apache@FreeBSD.ORG Sat May 26 09:27:41 2007 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6953616A41F for ; Sat, 26 May 2007 09:27:41 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [82.208.36.70]) by mx1.freebsd.org (Postfix) with ESMTP id 2A57213C458 for ; Sat, 26 May 2007 09:27:40 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 3AB8119E023; Sat, 26 May 2007 11:11:20 +0200 (CEST) Received: from [192.168.1.2] (grimm.quip.cz [213.220.192.218]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTP id 069BD19E019; Sat, 26 May 2007 11:11:15 +0200 (CEST) Message-ID: <4657F9BD.4010703@quip.cz> Date: Sat, 26 May 2007 11:11:25 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: "Trakman @ gmail.com" References: <9f58d8a30705251750h650757c4qb368e89c94e72a2c@mail.gmail.com> In-Reply-To: <9f58d8a30705251750h650757c4qb368e89c94e72a2c@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-apache@freebsd.org Subject: Re: php upgrading/version issue X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 May 2007 09:27:41 -0000 Trakman @ gmail.com wrote: > ok, so I need to update my php: > > php5-5.2.1_3 < needs updating (port has 5.2.2) > php5-bz2-5.2.1_3 < needs updating (port has 5.2.2) > php5-ctype-5.2.1_3 < needs updating (port has 5.2.2) > . > . > . > php5-zlib-5.2.1_3 < needs updating (port has 5.2.2) > > this is what I do: > >> portupgrade php5-5.2.1_3 >> >> portupgrade php5-bz2-5.2.1_3 >> >> portupgrade php5-ctype-5.2.1_3 >> > . > . > . > and so on, till all are upgraded... > > this is rather time consuming is there a quicker way to upgrade all of php > in one go? > am I meant to stop apache running before upgrading php? > > after I upgrade my php this way, when I do a 'phpinfo' - it still shows the > previous php version, instead of the new version number. > am I meant to reinstall/re-make apache after upgrading php??? This is not Apache related question... There are many ways. 1) portupgrade -a this will upgrade all ports in your system 2) portupgrade php5-* this will upgrade all php5 ports 3) portupgrade -r php5-5.2.1_3 this will upgrade all ports dependent on php5-5.2.1_3 4) pkg_deinstall php5-* && portinstall php5-extensions this will deinstall all php5 related ports and extensions and then install new versions I am using the last one (because of extensions order in php/extensions.ini) All this could be done with Apache runing and after upgrade is done, just restart Apache. Miroslav Lachman