### openssl的编译
./config --prefix=/usr/local/web/ssl shared
### nginx的编译
--prefix=/usr/local/web/nginx --with-http_ssl_module --with-openssl=/usr/local/src/openssl-1.0.2j --with-http_secure_link_module
### php的编译
./configure --prefix=/usr/local/web/php --with-config-file-path=/usr/local/web/php/etc --enable-fpm --with-mhash --enable-sockets --enable-shared --with-mysql --with-mysqli --with-pdo-mysql --with-pic --enable-calendar --enable-ctype --enable-wddx --with-gd --enable-bcmath --enable-ftp --with-iconv --enable-mbstring --with-regex=php --enable-sysvsem --enable-sysvshm --enable-soap --with-libxml--with-jpeg --with-png --with-curl --with-freetype --with-gmp --with-xsl --enable-zip --with-zlib --with-mcrypt=/usr/local/web/libmcrypt --enable-pcntl --enable-opcache
安装php之前,如果你要使用加密库,老一点的操作系统需要自行安装libmcrypt(我觉得这里有一个突破点)
安装php的系统依赖
yum install libxml2-devel
yum install libcurl-devel
yum install libpng-devel
yum install gmp-devel
yum install libxslt-devel
yum install libmemcached-devel
yum install mysql-libs libxslt-devel