- Edit /usr/ports/lang/php5/Makefile and add the following line: –with-pcre-regex So your Makefile should have: CONFIGURE_ARGS= \ –with-layout=GNU \ –localstatedir=/var \ –with-config-file-scan-dir=${PREFIX}/etc/php \ –disable-all \ –enable-libxml \ –enable-mysqlnd \ –with-libxml-dir=${LOCALBASE} \ –with-pcre-regex \ –with-zlib-dir=/usr \ –program-prefix=”" Apache restart… Finished..