APR and Apache upgrade

For the second time, I have run into a snag upgrading PHP, and Apache 2.x due to an Apache Portable Runtime dependency.  It’s a bit of an annoying snag, that on FreeBSD at least (if you are one who uses ports) requires some fancy footwork.

According to /usr/ports/UPDATING you need to:

pkg_delete -f apache-2.\*

portupgrade -f -o devel/apr1 devel/apr

reinstall apache port

I know this is fairly technical for the AU blog – but just in case anyone is running Apache for their web server, it’s good to know.