Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 May 2007 11:11:25 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        "Trakman @ gmail.com" <trakman@gmail.com>
Cc:        freebsd-apache@freebsd.org
Subject:   Re: php upgrading/version issue
Message-ID:  <4657F9BD.4010703@quip.cz>
In-Reply-To: <9f58d8a30705251750h650757c4qb368e89c94e72a2c@mail.gmail.com>
References:  <9f58d8a30705251750h650757c4qb368e89c94e72a2c@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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