您的位置:首页 > 运维架构 > Apache

apache+mysql+php编译参数

2010-10-25 11:55 267 查看
经常性的编译这个东西,把参数公布出来大家参考。说起来还是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


本文出自 “Holy” 博客,请务必保留此出处http://holy2010.blog.51cto.com/1086044/410302
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: