反馈建议 标题:
邮箱:
内容:
  
[隐显目录]
下载PHP
[root@iZ2zef32qxgaqdo7w2m844Z]# cd /home/kxzl/tools  //进入工具目录
[root@iZ2zef32qxgaqdo7w2m844Z tools]# wget http://am1.php.net/distributions/php-5.6.30.tar.gz  //下载PHP5.6.30
[root@iZ2zef32qxgaqdo7w2m844Z tools]# tar zxf php-5.6.30.tar.gz  //解压
[root@iZ2zef32qxgaqdo7w2m844Z tools]# cd php-5.6.30

执行编译
./configure --prefix=/application/php-5.6.30 --with-mysql=/application/mysql --with-iconv-dir=/usr/local/libiconv --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --enable-short-tags  --enable-zend-multibyte --enable-static --with-xsl --with-fpm-user=nginx --with-fpm-group=nginx --enable-ftp
[root@iZ2zef32qxgaqdo7w2m844Z ~]# ln -s /application/mysql/lib/libmysqlclient.so.18 /usr/lib64/
[root@iZ2zef32qxgaqdo7w2m844Z ~]# ln -s /application/mysql/lib/libmysqlclient.so.20 /usr/lib64/
[root@iZ2zef32qxgaqdo7w2m844Z ~]# cd /home/kxzl/tools/php-5.6.30
[root@iZ2zef32qxgaqdo7w2m844Z php-5.6.30]# touch ext/phar/phar.phar
[root@iZ2zef32qxgaqdo7w2m844Z php-5.6.30]# make
[root@iZ2zef32qxgaqdo7w2m844Z php-5.6.30]# make install

至此安装基本完成,下面开始进行相关配置