I want to know where is the location ($APACHE_ROOT) of the Apache installation in Centos 5.7
bash# $APACHE_ROOT/bin/apxs -iac mod_evasive.c
The instructions you read assume that Apache is compiled from the source. If you didn't, just install the httpd-devel
package:
# yum -y install httpd-devel
/usr/sbin/apxs
comes from this package, you can check by running:
# yum provides *bin/apxs
--prefix
path or /usr/local
by default. But if you install with yum/rpm
, the binaries are installed to /usr/(s)bin
, the libraries go to /usr/lib
, ...
Depends on how you've installed it. Default setting is /usr/local/apache2. If it's not there you can find it with "locate apxs"