You’d like to add mod_security to your custom apache+mod_php build. The package requires a recent version of libxml2 which must be installed in parallel. Once compiled, httpd is unable to start as a result of missing symbols.
Continue reading TECH NOTES: Building mod_security with libxml2