zz775520666 发表于 2018-11-29 06:04:38

apache+mysql+php编译参数

经常性的编译这个东西,把参数公布出来大家参考。说起来还是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

  




页: [1]
查看完整版本: apache+mysql+php编译参数