centos6.8安装php

1、执行该命令下载php7.2 到mirror下     wget http://php.net/get/php-7.2.5.tar.gz/from/this/mirror

2、解压  tar -vxzf mirror

3 、cd mirror

4、cd php-7.2.5

5、./configure --prefix=/opt/php72 --with-config-file-scan-dir=/opt/php72/etc/php.d --disable-debug --with-pic --with-bz2 --with-gettext --with-gmp --enable-mbregex --enable-mbstring --with-openssl --with-zlib --with-layout=GNU --enable-exif --enable-zip --enable-sockets --enable-xml --with-pear --enable-fpm --with-pdo-mysql --with-curl --with-gd --with-mysqli --enable-soap --with-fpm-user=www --with-fpm-group=www --with-freetype-dir --enable-mbstring --enable-bcmath --with-jpeg-dir --with-ldap-dir

6、make

7、 make install

8、cp php-fpm.conf.default php-fpm.conf

9、cp php.ini-development /opt/php72/etc/php.ini

centos6.8安装php_第1张图片

centos6.8安装php_第2张图片

centos6.8安装php_第3张图片

./php-fpm开启php

 

 

 

 

你可能感兴趣的:(centos6.8安装php)