php upgrading/version issue

Miroslav Lachman 000.fbsd at quip.cz
Sat May 26 09:27:41 UTC 2007


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


More information about the freebsd-apache mailing list