Date: Tue, 9 Sep 2008 22:25:05 +1000 (EST) From: "Tim Clewlow" <tim@clewlow.org> To: "Miroslav Lachman" <000.fbsd@quip.cz> Cc: Pine Digital Security Support <support@pine.nl>, freebsd-ports@freebsd.org Subject: Re: Correct way to portupgrade php5 and php5-extensions-1.1 ? Message-ID: <50132.192.168.1.10.1220963105.squirrel@192.168.1.100> In-Reply-To: <48C666F5.7060502@quip.cz> References: <48C65D63.3020504@pine.nl> <48C666F5.7060502@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to > "freebsd-ports-unsubscribe@freebsd.org" > I used this command: portmanager lang/php5-extensions -p -l -ui then restart apache as usual, portmanager "just works" :-) cheers, Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50132.192.168.1.10.1220963105.squirrel>