1、nginx安装
需要先安装pcre、zlib、openssl
./configure --sbin-path=/usr/local/nginx/nginx \
--conf-path=/usr/local/nginx/nginx.conf \
--pid-path=/usr/local/nginx/nginx.pid \
--with-http_ssl_module \
--with-pcre=/usr/local/src/pcre-8.21 \
--with-zlib=/usr/local/src/zlib-1.2.8 \
--with-openssl=/usr/local/src/openssl-1.0.1c
2、php5.5.6安装
需要先安装mcrypt,其需要安装mhash、libmcrypt。
./configure --prefix=/usr/local/php --with-gd --enable-gd-native-ttf --enable-gd-jis-conv --with-mysql=/usr/local/mysql/ --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql --enable-soap --enable-sockets --enable-zip --enable-xml --with-curl --enable-mbregex --enable-sysvsem --enable-mbstring --enable-fpm --with-mcrypt
问题(1):编译mcrypt 报错"You need at least libmhash 0.8.15 to compile this program"
这是由于在安装 mhash 使用了 --prefix= 此参数 导致系统无法超找到某些文件
可设置变量解决
export LD_LIBRARY_PATH="/usr/local/src/mhash/lib/"
export LDFLAGS="-L/usr/local/src/mhash/lib/ -I/usr/local/src/mhash/include/"
export CFLAGS="-I/usr/local/src/mhash/include/"
(引用:http://yh34.blog.163.com/blog/static/21531516720130294413712/)