手动安装Nginx与php5-kin86
wget http://cn2.php.net/distributions/php-5.4.45.tar.gz //下载php-5.4.45软件包tar -zxvf php-5.4.45.tar.gz //解压软件包
cd php-5.4.45
./configure --prefix=/usr/local/php --disable-debug --disable-ipv6 --disable-rpath --enable-bcmath --enable-exif --enable-gd-native-ttf --enable-mbregex --enable-mbstring=all --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-xml --with-config-file-path=/usr/local/php/etc --with-curl --with-curlwrappers --with-freetype-dir --with-gd --with-gettext --with-iconv-dir=/usr/local --with-jpeg-dir --with-ldap --with-ldap-sasl --with-libdir=lib --with-libxml-dir=/usr --with-mcrypt --with-mhash --with-openssl --with-pdo-mysql --with-pear --with-png-dir --with-xmlrpc --with-zlib-dir --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql=/usr/local/mysql --enable-fpm
make ZEND_EXTRA_LIBS='-liconv' //编译
make install //安装
cp php.ini-production /usr/local/php/etc/php.ini //拷贝PHP配置文件到指定目录下
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf //安原始php-fpm 配置文件复制到指定目录下
页:
[1]