#endif /* _NGINX_H_INCLUDED_ */ 二、nginx安装编译 tar -zxvf pcre-7.9.tar.gz cd pcre-7.9 ./configure make && make install
tar -zxvf nginx-0.7.65.tar.gz cd nginx-0.7.65 --prefix=/usr/local/nginx --without-http_userid_module --without-http_ssi_module --without-http_memcached_module --without-http_map_module --without-http_empty_gif_module --without-http_geo_module --without-http_empty_gif_module --without-http_autoindex_module --without-http_auth_basic_module --without-http_browser_module --without-http-cache make && make install 三、mysql安装编译 groupadd mysql useradd -g mysql -d /usr/local/mysql/ -M mysql
tar xzf jpegsrc.v6b.tar.gz alias 'cp=cp' cp -f /usr/share/libtool/config.sub jpeg-6b cp -f /usr/share/libtool/config.guess jpeg-6b cd jpeg-6b ./configure --prefix=/usr/local/modules/jpeg6 --enable-shared --enable-static make && make install
tar -zxf libxml2-2.7.3.tar.gz cd libxml2-2.7.3 sed -i 's/@TAR@/& --wildcards/' xstc/Makefile.in ./configure --prefix=/usr/local/modules/libxml make && make install
tar xzf freetype-2.3.8.tar.gz cd freetype-2.3.8 ./configure --prefix=/usr/local/modules/freetype make && make install
tar xzf libpng-1.2.35.tar.gz cd libpng-1.2.35 cp scripts/makefile.linux makefile make && make install
tar xzf gd-2.0.35.tar.gz cd gd-2.0.35 ./configure --prefix=/usr/local/modules/gd --with-jpeg=/usr/local/modules/jpeg6 --with-png --with-freetype=/usr/local/modules/freetype make && make install
tar xzf libmcrypt-2.5.8.tar.gz cd libmcrypt-2.5.8 ./configure --prefix=/usr/local/modules/libmcrypt make && make install cd libmcrypt-2.5.8/libltdl ./configure --enable-ltdl-install make && make install
tar -zxf mhash-0.9.9.9.tar.gz cd mhash-0.9.9.9 ./configure --prefix=/usr/local/modules/mhash make && make install
tar -zxvf libiconv-1.13.tar.gz cd libiconv-1.13 ./configure --prefix=/usr/local/modules/iconv make && make install
tar -zxf libevent-1.4.11-stable.tar.gz cd libevent-1.4.11-stable ./configure make && make install
tar -zxvf autoconf-2.13.tar.gz(这个看系统环境来定,由于在给php-fpm打补丁安装时报错,需将autoconf安装到2.13以上) cd autoconf-2.13 ./configure make && make install mv /usr/bin/autoconf /usr/bin/autoconf.bak ln -s /usr/local/bin/autoconf /usr/bin/autoconf tar -zxvf php-5.3.2.tar.gz(由于我们是使用fpm来管理fastcgi需要打fpm补丁,我们install服务器上已有打php-fpm补丁的php-fpm-5.3.2.tar.gz)注:如果采用mysqlnd,mysql可以不用安装 cd php-5.3.2 svn co sapi/fpm ./buildconf --force ./configure --prefix=/usr/local/php5 --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-gd=/usr/local/modules/gd --with-iconv-dir=/usr/local/modules/iconv --with-jpeg-dir=/usr/local/modules/jpeg6 --with-freetype-dir=/usr/local/modules/freetype --with-libxml-dir=/usr/local/modules/libxml --with-mcrypt=/usr/local/modules/libmcrypt --with-mhash=/usr/local/modules/mhash --with-png-dir --with-zlib --with-xmlrpc --with-openssl --with-curl --with-curlwrappers --enable-fpm --enable-xml --enable-soap --enable-sockets --enable-mbstring --enable-bcmath --enable-exif --enable-gd-native-ttf --enable-safe-mode --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-mbregex --enable-pcntl --disable-rpath make && make install cp ./php.ini-production /usr/local/php5/lib/php.ini php扩展模块安装 install ImageMagick tar -zxf ImageMagick-6.4.9-9.tar.gz cd ImageMagick-6.4.9-9 ./configure LDFLAGS="-L/usr/local/modules/freetype/lib -L/usr/local/modules/jpeg6/lib" CPPFLAGS="-I/usr/local/modules/freetype/include -I/usr/local/modules/jpeg6/include" --prefix=/usr/local/ImageMagick --enable-shared make && make install
install imagick for php tar zxf imagick-2.2.2.tgz cd imagick-2.2.2 /usr/local/php5/bin/phpize ./configure --with-php-config=/usr/local/php5/bin/php-config --with-imagick=/usr/local/ImageMagick/ make && make install perl -pi -e 's%extension_dir = "./"%extension_dir = "/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/"%g' /usr/local/php5/lib/php.ini perl -pi -e 's%^;extension=php_bz2.dll%extension=imagick.so\n;extension=php_bz2.dll%' /usr/local/php5/lib/php.ini
服务器端 tar -zxf memcached-1.2.6.tar.gz cd memcached-1.2.6 ./configure --prefix=/usr/local/memcached make && make install
php memcache扩展 install memcache for php tar zxf memcache-2.2.5.tgz cd memcache-2.2.5; /usr/local/php5/bin/phpize ./configure --with-php-config=/usr/local/php5/bin/php-config --with-gettext --with-gettext --enable-socket --enable-memcache --enable-sysvshm --enable-shmop make && make install perl -pi -e 's%^;extension=php_bz2.dll%extension=memcache.so\n;extension=php_bz2.dll%' /usr/local/php5/lib/php.ini
install another memcached client for php tar zxf libmemcached-0.27.tar.gz cd libmemcached-0.27 ./configure --with-memcached=/usr/local/memcached make && make install
安装igbinary wget /usr/local/php5/bin/phpize ./configure CFLAGS="-O2 -g" --enable-igbinary --with-php-config=/usr/local/php5/bin/php-config make && make install
php memcached扩展 tar zxf memcached-1.0.0.tgz cd memcached-1.0.0 /usr/local/php5/bin/phpize ./configure --with-php-config=/usr/local/php5/bin/php-config --with-gettext --with-gettext --enable-socket
make && make install perl -pi -e 's%^;extension=php_bz2.dll%extension=memcached.so\n;extension=php_bz2.dll%' /usr/local/php5/lib/php.ini
apc 安装 tar zxvf APC-3.1.3p1.tgz cd APC-3.1.3p1 /usr/local/php5/bin/phpize ./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/local/php5/bin/php-config make && make install