apache+mysql+php编译参数

本文提供了Apache HTTP Server、MySQL及PHP的安装配置示例,详细列出了各组件的编译参数,有助于读者快速搭建LAMP环境。
经常性的编译这个东西,把参数公布出来大家参考。说起来还是Apache的模块最多,所以用的更多些。

  httpd-2.2.10
mysql-5.1.30
php-5.2.8

 

./configure --prefix=/data/apache2
--enable-mods-shared=all
--enable-module=so
--disable-info
--enable-ssl=static
--enable-cache
--enable-file-cache
--enable-mem-cache
--enable-disk-cache
--with-mpm=worker
--enable-deflate
--enable-module=proxy
--enable-proxy
--enable-proxy-http
--enable-proxy-ajp
--enable-proxy-balancer
--with-apr=/data/apr/bin/apr-1-config
--with-apr-util=/data/apr-util/bin/apu-1-config

./configure --prefix=/data/mysql
--enable-assembler
--with-charset=utf8
--with-extra-charsets=all
--enable-largefile
--with-big-tables
--without-debug
--with-mysqld-ldflags="-all-static -ltcmalloc"
--with-client-ldflags=-all-static
--enable-thread-safe-client

./configure --prefix=/data/php5
--with-mysql=/data/mysql
--with-apxs2=/data/apache2/bin/apxs
--with-iconv
--enable-sysvshm
--enable-ftp
--enable-sockets
--with-zlib
--with-gd
--enable-gd-native-ttf
--enable-gd-jis-conv
--with-freetype-dir
--with-xpm-dir
--with-jpeg-dir
--with-png-dir
--with-ttf=shared,/usr
--enable-mbstring
--enable-inline-optimization
--with-gettext
--enable-fastcgi
--with-curl=/data/curl
--enable-suhosin


本文转自 holy2009 51CTO博客,原文链接:http://blog.51cto.com/holy2010/410302
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值