--with-zlib \
--with-gd \
--with-kerberos \
--with-gettext \
--enable-force-cgi-redirect \
--with-iconv \
--enable-gd-native-ttf \
--enable-sockets \
--with-snmp \
--enable-ucd-snmp-hack
--with-zlib \
--with-gd \
--with-kerberos \
--with-gettext \
--enable-force-cgi-redirect \
--with-iconv \
--enable-gd-native-ttf \
--enable-sockets \
--with-snmp \
--enable-ucd-snmp-hack
#sh config.sh
# make
# make install
#cp php.ini-dist /usr/local/php/lib/php.ini
4、安装modsecurity(mod_security 可以加强apache的安全性特别是在防sql 注入上。
# tar zxvf modsecurity-apache-1.9.tar.gz
# cd modsecurity-apache-1.9/apache2/
# /apache2/bin/apxs -cia mod_security.c
5、安装mod_evasive防DDOS攻击
# tar zxvf mod_evasive_
# cd mod_evasive_1.10.1
#/apache/bin/apxs -i -a -c mod_evasive20.c
# /usr/local/apache/bin/apxs -i -a -c mod_evasive20.c