码迷,mamicode.com
首页 > Web开发 > 详细

lnmp之php7.2.9安装

时间:2018-09-06 00:12:10      阅读:434      评论:0      收藏:0      [点我收藏+]

标签:bsp   nat   mcrypt   reg   dia   http   col   useradd   back   

php官网

http://php.net/

The PHP development team announces the immediate availability of PHP 7.2.9. This is a bugfix release.

All PHP 7.2 users are encouraged to upgrade to this version.  #官方鼓励安装这个版本

[root@s100 ~]# uname -a
Linux s100 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

 

安装

yum install zlib-devel libxml2-devel libjpeg-turbo-devel  freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel libmcrypt-devel  mhash mcrypt -y

 

wget http://hk1.php.net/get/php-7.2.9.tar.gz/from/this/mirror

 

tar xf php-7.2.9.tar.gz

 

useradd www -s /sbin/nologin -M

 

cd php-7.2.9

 

./configure --prefix=/usr/local/php-7.2.9 --enable-fpm --with-mysql
./configure \
--prefix=/usr/local/php-7.2.9 \
--with-mysql=mysqlnd \
--with-mysqli \
--with-pdo-mysql=mysqlnd \
--with-iconv-dir=/usr/local/libiconv \
--with-freetype-dir \
--with-libxml-dir=/usr \
--with-jpeg-dir \
--with-png-dir \
--with-zlib \
--enable-xml \
--disable-rpath \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--with-curl \
--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-soap \
--enable-short-tags \
--enable-static \
--with-xsl \
--with-fpm-user=www \
--with-fpm-group=www \
--enable-ftp \
--enable-opcache=yes

 

make && make install 

 

cp php.ini-production /usr/local/php/lib/php.ini

 

cp php-fpm.conf.default php-fpm.conf

 

echo ‘/usr/local/php/sbin/php-fpm‘ >>/etc/rc.loca

 

/usr/local/php/sbin/php-fpm  #启动

 

细节方面根据报错,自己处理下。

 

lnmp之php7.2.9安装

标签:bsp   nat   mcrypt   reg   dia   http   col   useradd   back   

原文地址:https://www.cnblogs.com/cs-chenyan/p/9595249.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!