How to install mod security easily apxs:Error: Command failed with rc=65536

When I install mod security in centos cpanel I got the following error

"mkdir: cannot create directory `/modsecurity-apache_2.1.7/apache2/.libs': No such file or directory
apxs:Error: Command failed with rc=65536
In file included from modsecurity-apache_2.1.7/apache2/modsecurity.h:35,
from modsecurity-apache_2.1.7/apache2/mod_security2.c:16:
modsecurity-apache_2.1.7/apache2/msc_pcre.h:16:18: error: pcre.h: No such file or directory
apxs:Error: Command failed with rc=65536
In file included from modsecurity-apache_2.1.7/apache2/modsecurity.h:35,
from modsecurity-apache_2.1.7/apache2/mod_security2.c:16:
modsecurity-apache_2.1.7/apache2/msc_pcre.h:16:18: error: pcre.h: No such file or directory
apxs:Error: Sorry, cannot determine bootstrap symbol name.
apxs:Error: Please specify one with option `-n'.
gcc: modsecurity-apache_2.1.7/apache2/modsecurity2.c: No such file or directory
gcc: no input files
apxs:Error: Command failed with rc=65536
cc1: error: /usr/local/include/php/ext/pcre/pcrelib/pcre.h: not a directory
apxs:Error: Command failed with rc=65536 "

SOLUTION FOR THE PROBLEM
These problem is big but the solution is very easy. If you install apache run the following command
Procedure for installing mod security First run the following command

#/script/apache
apxs:Error: Command failed with rc=65536 mod security error  how to resolve And select the following things continuouslty
Select >> php security >>Apache 2.0 >>php5>>select version>>enable Mod Security.
Finally it will take some time to install mod security without any error...

Related post