在centos6.8系统上,安装部署php-5.6.

Posted 51yuki

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在centos6.8系统上,安装部署php-5.6.相关的知识,希望对你有一定的参考价值。

第一步:安装依赖关系

[[email protected] ~]# yum -y install openssl-devel swig libjpeg-turbo libjpeg-turbo-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel libcurl libcurl-devel libmcrypt-devel mhash-devel mcrypt-devel 

第二步:下载php程序

[[email protected] src]# wget http://soft.51yuki.cn/php-5.6.33.tar.gz

第三步:安装php程序

[[email protected] src]# tar xf php-5.6.33.tar.gz

[[email protected] src]# cd php-5.6.33

[[email protected] php-5.6.33]# useradd www

[[email protected] php-5.6.33]# ./configure --prefix=/usr/local/php-fastcgi --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-mysql=mysqlnd --with-jpeg-dir --with-png-dir --with-zlib --enable-xml --with-libxml-dir --with-curl --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-mbregex --with-openssl --enable-mbstring --with-gd --enable-gd-native-ttf --with-freetype-dir=/usr/lib64 --with-gettext=/usr/lib64 --enable-sockets --with-xmlrpc --enable-zip --enable-soap --disable-debug --enable-opcache --enable-zip --with-config-file-path=/usr/local/php-fastcgi/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www && make && make install

第四步:配置php

[[email protected] php-5.6.33]# cp php.ini-production /usr/local/php-fastcgi/etc/php.ini

[[email protected] php-5.6.33]# cd /usr/local/php-fastcgi/etc/
[[email protected] etc]# cp php-fpm.conf.default php-fpm.conf

[[email protected] php-5.6.33]# cp sapi/fpm/init.d.php-fpm /etc/rc.d/init.d/php-fpm
cp: overwrite `/etc/rc.d/init.d/php-fpm‘? y
[[email protected] php-5.6.33]# chmod u+x /etc/init.d/php-fpm

 

第五步:启动php

[[email protected] php-5.6.33]# service php-fpm start
Starting php-fpm done
[[email protected] php-5.6.33]# ss -tunlp|grep 9000
tcp LISTEN 0 128 10.100.100.105:9000 *:* users:(("php-fpm",3166,7),("php-fpm",3167,0),("php-fpm",3168,0))

 

 

 

 

 

 

 

 

 

 

 

http://soft.51yuki.cn/php-5.6.33.tar.gz







以上是关于在centos6.8系统上,安装部署php-5.6.的主要内容,如果未能解决你的问题,请参考以下文章

php-5.6 安装部署整理

CentOS6.8系统部署lnmp环境

centos6.8上安装部署 jhipster-registry

MySQL安装部署02-VirtualBox虚拟机上Centos6.8安装MySQL5.1.73

3. linux centos6.8环境下部署zookeeper集群

centos6.8部署vnc服务