Problem upgrading php related packages in PORTS on FreeBSD

Apache & php are a essential to any open source servers. Not just only web, but a lot of utilities / programs are running on them as well. This make them popular. Popular to target vulnerabilities. Program bugs are also less desirable if not patching them regularly. Not to mentioned the latest functionalities that will make our life easier. All in all, less user complains, more user prasing. :p

Problem :
Upgrading php prior 5.2.8 giving errors. e.g.
warning: package ‘php5-pcre-5.2.6_2′ requires ‘php5-5.2.8′, but ‘php5-pcre-5.2.6_2′ is installed

Solution :
pkg_delete -f php5-pcre-5.2.6
pkgdb -F
portupgrade -v <other packages>

It is also a good idea to check out /usr/port/UPDATING should you encounter other ports upgrades error.

Hasta la vista !!!

No comments: