Correct way to portupgrade php5 and php5-extensions-1.1 ?
Miroslav Lachman
000.fbsd at quip.cz
Tue Sep 9 12:06:53 UTC 2008
Pine Digital Security Support wrote:
>
> Hi,
>
> Following the most recent update of PHP5 (5.2.6_2) and subsequent
> portaudit warnings for 5.2.6, I've been upgrading lang/php5 and
> lang/php5-extensions-1.1 on a number of machines.
>
> My question is, what is the best way to do this. Some options come to mind:
>
> 1) portupgrade -fpb php5-5.2.6 php5-extensions-1.1
>
> or
>
> 2) portupgrade -fpb php5\*
>
> or
>
> 3) portupgrade -fpbR php5-5.2.6
>
>
> I noticed that the first option didn't update the actual binaries in
> /usr/local/lib/php/20060613/, but it still works on the machine where I
> tried it.
>
> The second, I think, will always work (/usr/local/lib/php/20060613/
> files are all updated/recompiled), but it takes a long time. I'm
> suspecting this way perhaps some ports will be updated/recompiled more
> than once? (once when php5-extensions is portupgraded, and once when for
> instance php5-session-5.2.6 is upgraded).
>
> The last option seems the best according to the manpage, but this would
> in my case also recompile phpmyadmin. Is that needed?
>
> Perhaps there are also different cases when for instance there is a
> minor version update like this one (from 5.2.6 to 5.2.6_2), and for
> instance a 5.2.6 to 5.2.7 or even 5.2.6 to 5.3 update).
>
> Who can shine some light on this dark matter? :-)
I uprgraded PHP for same reason with just one simple command:
portmaster php5-extensions-1.1
It did all required steps (it first upgrade libraries for core PHP, then
php5-5.x.x, then libraries for extensions, then extensions and as last
step php5-extensions-1.1)
(optionally you can upgrade PECL extensions by portmaster pecl-\*)
Then restart Apache and PHP 5.2.6_2 is on ;)
Miroslav Lachman
More information about the freebsd-ports
mailing list