Nginx was developed by Igor Sysoev, the second rambler.ru site for Russian traffic, which has run over 2.5 at the site. Igor releases the source code in the form of a BSD-like license. Nginx has been known for its stability, rich feature sets, sample configuration files, and low system resource consumption. is a high-performance web and reverse proxy server, which transcends the high performance and stability of Apache.
Nginx + PHP + MySQL can withstand a high number of concurrent connections, equivalent to the same environment Apache 10 times times (hehe ~ ~ This is experts say oh ... )。
This chapter will introduce Nginx + PHP + MYSQL + phpmyadmin+ discuz_x2 Build: Lnmp+bbs
System: Centos 5.6
Preparation Tool:
Libiconv-1.13.1.1.tar.gz
Libmcrypt-2.5.8.tar.gz
Mhash-0.9.9.9.tar.gz
Mcrypt-2.6.8.tar.gz
Mysql-5.1.58.tar.gz
php-5.2.14.tar.bz2
Nginx-1.0.0.tar.gz
Phpmyadmin-3.0.0-rc1-all-languages.tar
Discuz_x2_sc_utf8
Installation steps
The support library required to compile and install PHP5.2.14
# tar ZXVF libiconv-1.13.1.tar.gz
# CD LIBICONV-1.13.1/
#./configure--prefix=/usr/local
# Make;make Install
# CD ... /
# tar ZXVF 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 ZXVF mhash-0.9.9.9.tar.gz
# CD mhash-0.9.9.9/
#./configure
# Make;make Install
# CD ... /
# ln-s/usr/local/lib/libmcrypt.la/usr/lib/libmcrypt.la
# ln-s/usr/local/lib/libmcrypt.so/usr/lib/libmcrypt.so
# ln-s/usr/local/lib/libmcrypt.so.4/usr/lib/libmcrypt.so.4
# ln-s/usr/local/lib/libmcrypt.so.4.4.8/usr/lib/libmcrypt.so.4.4.8
# ln-s/USR/LOCAL/LIB/LIBMHASH.A/USR/LIB/LIBMHASH.A
# ln-s/usr/local/lib/libmhash.la/usr/lib/libmhash.la
# ln-s/usr/local/lib/libmhash.so/usr/lib/libmhash.so
# ln-s/usr/local/lib/libmhash.so.2/usr/lib/libmhash.so.2
# ln-s/usr/local/lib/libmhash.so.2.0.1/usr/lib/libmhash.so.2.0.1