LAMP 编译参数

apache

  1. ./configure --prefix=/usr/local/apache/ --enable-modules=most --enable-speling=shared --enable-so --enable-proxy --enable-isapi --enable-cache --enable-file-cache --enable-disk-cache --enable-mem-cache --enable-ssl 

nginx

  1. --prefix=/usr/local/nginx --with-pcre --with-md5=/usr/lib --with-sha1=/usr/lib --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_realip_module --with-http_flv_module --with-http_dav_module --with-http_ssl_module --with-http_sub_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_secure_link_module --with-http_addition_module 

 php

  1. ./configure --prefix=/usr/local/php/ --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/etc/php/ --with-pdo-mysql=/usr/local/mysql --with-jpeg-dir --with-png-dir --with-freetype-dir --with-mcrypt --with-libxml-dir --with-xsl --with-curl --with-gd --with-zlib --with-libexpat-dir --enable-soap --enable-ftp --enable-mbstring --enable-sockets 

 mysql

  1. ./configure --prefix=/usr/local/mysql --with-extra-charsets=complex --enable-thread-safe-client --enable-local-infile --enable-assembler --enable-shared --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static