Several Web servers have been configured recently to post the installation notes. There is no time like before, the article written as the system, please forgive me. Detailed configuration, you can see the previous old article: http://blog.zyan.cc/nginx_php_v6 1, installation Nginx:mkdir-p/data/TGZCD/data/tgzYum Install wgetYum InstallPcreYum Installopenssl*Yum-YInstall GCC GCC-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel GLib C Glibc-devel Glib2 Glib2-develbzip2 bzip2-devel ncurses ncurses-devel Curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel OpenSSL OpenSSL -devel openldap openldap-devel nss_ldap openldap-clients openldap-servers MakeYum-YInstallGD GD2 Gd-devel gd2-devel/usr/sbin/Groupadd www/usr/sbin/useradd-g www wwwulimit-shn65535wget FTP://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.32.tar.gzTarZXVF pcre-8.32.Tar. GZCD Pcre-8.32./configure--prefix=/data/apps/Pcre Make&& Make InstallCD../wgethttp//nginx.org/download/nginx-1.5.2.tar.gzTarZXVF nginx-1.5.2.Tar. GZCD Nginx-1.5.2./configure--user=www--group=www--prefix=/data/apps/nginx--with-http_stub_status_module--with-http_ssl_module-- with-pcre=/data/tgz/pcre-8.32--with-http_realip_module--with-Http_image_filter_module Make Make InstallCD../2, install MySQL:wgethttp//downloads.mysql.com/archives/mysql-5.6/mysql-5.6.10-linux-glibc2.5-x86_64.tar.gzTarZXVF mysql-5.6.Ten-LINUX-GLIBC2.5-x86_64.Tar. GZMVmysql-5.6.Ten-LINUX-GLIBC2.5-x86_64/data/apps/MySQL/usr/sbin/Groupadd MySQL/usr/sbin/useradd-g MySQL MySQLmkdir-p/data/data/mysql/DataYum InstallLibaio/data/apps/mysql/scripts/mysql_install_db--basedir=/data/apps/mysql--datadir=/data/data/mysql/data--user=MySQLsed-I."s#/usr/local/mysql#/data/apps/mysql#g"/data/apps/mysql/bin/Mysqld_safe3, installing PHP dependent librariesmkdir-p/data/apps/libs/wgethttp//www.ijg.org/files/jpegsrc.v9.tar.gzTarZXVF jpegsrc.v9.Tar. GZCD JPEG-9/./configure--prefix=/data/apps/libs--enable-shared--enable-static--prefix=/data/apps/Libs Make Make InstallCD../wgethttp//prdownloads.sourceforge.net/libpng/libpng-1.6.2.tar.gzTarZXVF libpng-1.6.2.Tar. GZCD libpng-1.6.2/./configure--prefix=/data/apps/Libs Make Make InstallCD../wgethttp//download.savannah.gnu.org/releases/freetype/freetype-2.4.12.tar.gzTarZXVF freetype-2.4. A.Tar. GZCD FreeType-2.4. A/./configure--prefix=/data/apps/Libs Make Make InstallCD../wget "http://downloads.sourceforge.net/mhash/mhash-0.9.9.9.tar.gz?big_mirror=0"wget "http://downloads.sourceforge.net/mcrypt/libmcrypt-2.5.8.tar.gz?big_mirror=0"wget "http://downloads.sourceforge.net/mcrypt/mcrypt-2.6.8.tar.gz?big_mirror=0"TarZXVF libmcrypt-2.5.8.Tar. GZCD Libmcrypt-2.5.8/./configure--prefix=/data/apps/Libs Make Make InstallCD Libltdl/./configure--prefix=/data/apps/libs--enable-ltdl-Install Make Make InstallCD../.. /TarZXVF mhash-0.9.9.9.Tar. GZCD Mhash-0.9.9.9/./configure--prefix=/data/apps/Libs Make Make InstallCD../VI/etc/LD. so.conf Add:/data/apps/libs/Lib then: LdconfigTarZXVF mcrypt-2.6.8.Tar. GZCD MCrypt-2.6.8/Export Ldflags="-l/data/apps/libs/lib-l/usr/lib"Export CFLAGS="-i/data/apps/libs/include-i/usr/include"Touchmalloc.h./configure--prefix=/data/apps/libs--with-libmcrypt-prefix=/data/apps/Libs Make Make InstallCD../4, compile and install PHP5.5wgethttp//Www.php.net/get/php-5.5.1.tar.gz/from/tw2.php.net/mirrorTarZXVF php-5.5.1.Tar. GZCD php-5.5.1/Export LIBS="-lm-ltermcap-lresolv"Export Dyld_library_path="/data/apps/mysql/lib/:/lib/:/usr/lib/:/usr/local/lib:/lib64/:/usr/lib64/:/usr/local/lib64"Export Ld_library_path="/data/apps/mysql/lib/:/lib/:/usr/lib/:/usr/local/lib:/lib64/:/usr/lib64/:/usr/local/lib64"./configure--prefix=/data/apps/php--with-config-file-path=/data/apps/php/etc--with-mysql=/data/apps/mysql--with-mysqli=/data/apps/mysql/bin/mysql_config-- with-iconv-dir--with-freetype-dir=/data/apps/libs--with-jpeg-dir=/data/apps/libs--with-png-dir=/data/apps/libs--with-zlib--with-libxml-dir=/USR--enable-xml--disable-rpath--enable-bcmath--enable-shmop--enable-sysvsem--enable-inline-optimization-- With-curl--enable-mbregex--enable-fpm--enable-mbstring--with-mcrypt=/data/apps/libs--WITH-GD-- Enable-gd-native-ttf--with-openssl--with-mhash--enable-pcntl--enable-sockets--with-xmlrpc--enable-Zip--enable-soap--enable-opcache--with-pdo-mysql--enable-maintainer-Zts Make Make InstallCPphp.ini-development/data/apps/php/etc/Php.inicd ./LN-s/data/apps/mysql/lib/libmysqlclient. -. dylib/usr/lib/libmysqlclient. -. DylibMV/data/apps/php/etc/php-fpm.conf.default/data/apps/php/etc/php-fpm.conf5, compiling and installing PHP extensionswgethttp//ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gzTarZXVF Autoconf-latest.Tar. GZCD autoconf-2.69/./configure--prefix=/data/apps/Libs Make Make InstallCD../wgethttp//pecl.php.net/get/memcache-2.2.7.tgzTarZXVF memcache-2.2.7. TGZCD memcache-2.2.7/Export php_autoconf="/data/apps/libs/bin/autoconf"Export Php_autoheader="/data/apps/libs/bin/autoheader"/data/apps/php/bin/phpize./configure--with-php-config=/data/apps/php/bin/php-Config Make Make InstallCD../Open/data/apps/php/etc/php.ini search; Extension_dir ="ext"add a line after: extension="memcache.so"
Nginx 1.5.2 + PHP 5.5.1 + MySQL 5.6.10 compiler installation under CentOS