[WAF]apache和modsecurity的安装
2012-02-11 10:30
155 查看
安装pcre
安装apr
http://labs.renren.com/apache-mirror//apr/apr-1.4.5.tar.gz
./configure
make
make install
apache的安装
./configure --with-included-apr --with-php --with-mysql --with-susexec --disable-info --with-mpm=prefork --enable-so --enable-cgi --enable-rewrite --enable-ssl --enable-mime-magic --enable-unique-id --enable-mods-shared=all --enable-ssl=shared --enable-proxy
--enable-proxy-connect --enable-proxy-ftp --enable-proxy-http
make
make install
注意 不要指定--prefix=/app/apache,否则出现error: cannot install `libaprutil-1.la' to a directory not ending in /usr/local/apache2/lib
因为编译使用了shared modules,必须添加LoadModule authz_host_module modules/mod_authz_host.so,否则出现 Invalid command 'Order', perhaps misspelled or defined by a module not included in the server config
验证apxs安装
/usr/local/apache2/bin/apxs -c -i
安装modsecurity
来源位置: http://cdnetworks-kr-1.dl.sourceforge.net/project/mod-security/modsecurity-apache/2.6.0/modsecurity-apache_2.6.0.tar.gz
./configure --with-apxs=/usr/local/apache2/bin/apxs --with-pcre=/usr/local/bin/pcre-config --with-apr=/usr/local/apache2/bin/apr-1-config --with-apu=/usr/local/apache2/bin/apu-1-config
make
make install
创建目录modsecurity
mkdir /usr/local/apache2/conf/modsecurity/
修改httpd.conf
加入
LoadFile /usr/lib/libxml2.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule security2_module modules/mod_security2.so
安装apr
http://labs.renren.com/apache-mirror//apr/apr-1.4.5.tar.gz
./configure
make
make install
apache的安装
./configure --with-included-apr --with-php --with-mysql --with-susexec --disable-info --with-mpm=prefork --enable-so --enable-cgi --enable-rewrite --enable-ssl --enable-mime-magic --enable-unique-id --enable-mods-shared=all --enable-ssl=shared --enable-proxy
--enable-proxy-connect --enable-proxy-ftp --enable-proxy-http
make
make install
注意 不要指定--prefix=/app/apache,否则出现error: cannot install `libaprutil-1.la' to a directory not ending in /usr/local/apache2/lib
因为编译使用了shared modules,必须添加LoadModule authz_host_module modules/mod_authz_host.so,否则出现 Invalid command 'Order', perhaps misspelled or defined by a module not included in the server config
验证apxs安装
/usr/local/apache2/bin/apxs -c -i
安装modsecurity
来源位置: http://cdnetworks-kr-1.dl.sourceforge.net/project/mod-security/modsecurity-apache/2.6.0/modsecurity-apache_2.6.0.tar.gz
./configure --with-apxs=/usr/local/apache2/bin/apxs --with-pcre=/usr/local/bin/pcre-config --with-apr=/usr/local/apache2/bin/apr-1-config --with-apu=/usr/local/apache2/bin/apu-1-config
make
make install
创建目录modsecurity
mkdir /usr/local/apache2/conf/modsecurity/
修改httpd.conf
加入
LoadFile /usr/lib/libxml2.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule security2_module modules/mod_security2.so
相关文章推荐
- [WAF]apache和modsecurity的安装
- Ubuntu Apache搭建modSecurity,创建自己的WAF
- Apache安装ModSecurity和CRS
- Apache下ModSecurity的安装启用与配置
- IIS 7安装ModSecurity实现WAF功能
- 64位linux centOS 5.5 安装 Apache+Mysql+PHP+GD
- apache 安装
- Apache Hadoop 2.7.1文档翻译(2)集群安装
- windows server2008下apache+php+mysql+memcache安装与配置
- Apache php Mysql部署(一)下载安装
- 详解CentOS7安装配置Apache HTTP Server
- FreeBSD5.3安装apache,mysql,php
- apache2.2的优化及模块安装
- [转]Apache+php+mysql在windows下的安装与配置(图文)
- Cacti和Zabbix所需Apache安装配置(一)
- 编译安装Apache
- apache 2.44安装网页压缩模块
- CentOS 6.0 系统 LAMP(Apache+MySQL+PHP)安装步骤
- linux下源码包安装apache
- linux 下卸载和安装apache