boxifeng 2010-06-07
##fast-cgi模式编译php
./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--with-mysql=/usr/local/mysql--with-mysqli=/usr/local/mysql/bin/mysql_config--with-iconv-dir=/usr/local--with-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib--with-libxml-dir=/usr--enable-xml--disable-rpath--enable-discard-path--enable-safe-mode--enable-bcmath--enable-shmop--enable-sysvsem--enable-inline-optimization--with-curl--with-curlwrappers--enable-mbregex--enable-fastcgi--enable-fpm--enable-force-cgi-redirect--enable-mbstring--with-mcrypt--with-gd--enable-gd-native-ttf--with-openssl--with-mhash--enable-pcntl--enable-sockets--with-ldap--with-ldap-sasl--with-xmlrpc--enable-zip--enable-soap--without-pear
##编译安装nginx
./configure--user=www--group=www--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_ssl_module
##编译安装apache
./configure--prefix=/usr/local/apache2--enable-rewrite=shared--enable-track-vars--enable-cgi--enable-so--enable-mods-shared=all--with-config-file-path=/usr/local/apache2/conf--with-mpm=worker
##编译安装mysql,安装sphinx插件
./configure--prefix=/usr/local/mysql-sphinx--with-charset=utf8--with-extra-charsets=all--enable-thread-safe-client--enable-assembler--with-readline--with-big-tables--with-plugins=all--with-tcp-port=3310--with-unix-socket-path=/usr/local/mysql-sphinx/etc/mysql.sock--with-mysqld-ldflags=-all-static--with-client-ldflags=-all-static
注意:--with-plugins=all表示安装所有插件;--with-plugins=sphinx表示只安装sphinx插件
##编译安装sphinx
ldconfig/usr/local/mysql-sphinx/lib/mysql
ldconfig/usr/local/mysql-sphinx/include/mysql
./configure--prefix=/usr/local/sphinx--with-mysql=/usr/local/mysql-sphinx
##PHP编译成apache的模块
./configure--prefix=/usr/local/php-apache--with-gd--with-jpeg-dir--with-zlib--with-png-dir--with-freetype-dir--with-mysql=/usr/local/mysql--with-pdo-mysql=/usr/local/mysql--with-iconv-dir=/usr/local--enable-mbstring--with-pear--with-apxs2=/usr/local/apache2/bin/apxs--with-config-file-path=/usr/local/php-apache/etc--with-libxml-dir=/usr/lib
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/fafa211/archive/2009/12/21/5050867.aspx