This article is based on the banquet Nginx0.7.x + PHP5.2.10 (FastCGI) to build a Web server that is 10 times better than Apache (version 5th ).
This article is based on the banquet
Nginx 0.7.x + PHP 5.2.10 (FastCGI) build a Web server that is 10 times better than Apache (version 5th)
Original article address
Http://blog.s135.com/nginx_php_v5/
Because the compilation process and wait time are cumbersome, I wrote a fully automated shell script. this script can be modified at will. for reprinting, please indicate the source.
This article is the second version of this series.
1. log cutting
2. install yum or rpm intelligently
Note: If the yum source cannot be used, place it on the system disc and a single dvd. if multiple discs are used, find all the rpm packages to be installed on the disc and copy them to a directory, and modify
Umount/dev/cdrom
Mkdir/mnt/cdrom _ $
Mount/dev/cdrom/mnt/cdrom _ $
Cd/mnt/cdrom _ $/
RPMPATH = $ (find $ (pwd)-name 'Kernel-2 *')
RPMPATH =$ {RPMPATH % /*}
Cd $ {RPMPATH}
Is
Cd yourdir
Yourdir stores the root path of all your packages
After download
# Unzip install.zip
# Chmod + x install. sh
#./Install. sh
Run the command as root.
Note: many parameters of this script are based on the configuration of a large load server. if a virtual machine is used for experiments, some services may fail to start. for example, mysql parameters require large memory support, modify the configuration parameters manually.