How to disable configuration options while building Apache2 from ports

According to, OPTIONS support has been added on September 18, 2007 causing several knobs (like WITH_STATIC_MODULES) being ignored. In order to disable OPTIONS one should consider defining WITHOUT_APACHE_OPTIONS. Since I’m using portupgrade to do my regular ports maintenance I was trying to find where to put WITHOUT_APACHE_OPTIONS to make the change systemwide.

One of the options was to put it in /usr/ports/www/apache22/Makefile – it did work, but as soon as you update ports all changes will be overwritten. After some digging I finally figured out that putting


to /etc/make.conf will do the trick.

Tags: , , , , ,

Leave a Reply