Update php from 5.4 to 5.5 ?

Dr. Peter Voigt pvoigt at uos.de
Wed Jun 18 16:56:29 UTC 2014


Am Wed, 18 Jun 2014 13:09:20 +0200
schrieb Kurt Jaeger <lists at opsec.eu>:

> Hi!
> 
> If I would like to upgrade from php 5.4 to 5.5, would this work ?
> 
> portupgrade -o lang/php55 -f lang/php5
> portupgrade -fr lang/php55
> 
> vi /etc/make.conf
> DEFAULT_VERSIONS= php=5.5
> 

Hi Kurt,

just a few days ago I have done the migration from PHP 5.4 to PHP 5.5.

My first step was only slightly different:

# portmaster -o lang/php55 lang/php5

The subsequent procedure was completely different and I assume I just
selected the most complicated way ever :-)

I first tried

# portmaster -o lang/php55-extensions lang/php5-extensions

but this failed with complaints about same installation place of old an
new PHP modules. Therefore I went the hard way: I deleted all php5-*
modules and then issued

# portmaster lang/php55-extensions

Then I manually deleted www/mod_php5 and installed the new version:

# portmaster www/mod_php55

And finally I figured out all ports depending on lang/php5 re-installed
them. If I remember correctly this affected on my machine just nocc and
owncloud.

A conclusive dependency check

# pkg check -dnv

revealed no errors.

Currently I do not have any PHP related settings in my /etc/make.conf.

Although my procedure is probably more complicated than necessary the
new PHP version is working as expected.

Regards,
Peter


More information about the freebsd-ports mailing list