tar zxf libiconv-1.13.1.tar.gz
cd libiconv-1.13.1/
./configure --prefix=/usr/local
make
make install
cd ../
tar zxf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8/
./configure
make
make install
/sbin/ldconfig
cd libltdl/
./configure --enable-ltdl-install
make
make install
cd ../../
tar zxf mhash-0.9.9.9.tar.gz
cd mhash-0.9.9.9/
./configure
make
make install
cd ../
修改php-fpm.conf
<value name="owner">apache</value>
<value name="group">apache</value>
<value name="mode">0644</value>
<value name="user">apache</value>
<value name="group">apache</value>
---------------------------------------------
tar zxvf nginx-0.8.53.tar.gz
cd nginx-0.8.35/
./configure --prefix=/usr/local/nginx
make && make install
cd ../
修改一下nginx的配置文件
worker_processes 4;
worker_connections 51200;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
----------------------------------------
tar zxf httpd-2.2.17.tar.gz
cd httpd-2.2.17
./configure --prefix=/opt/httpd --enable-so --enable-cgi --enable-rewrite --enable-cgid --with-mpm=worker
make all install
cd ../
tar zxf mod_fastcgi-current.tar.gz
cd mod_fastcgi-2.4.6
cp Makefile.AP2 Makefile
make top_dir=/opt/httpd
make install