lamp之php7.2.9安裝

來源:互聯網
上載者:User

標籤:bug   wget   bz2   check   imm   .gz   官網   mha   useradd   

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.  #官方鼓勵安裝這個版本

 

[[email protected] ~]# 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 -y
yum install libmcrypt-devel -y
yum install mhash -y
yum install mcrypt -y
yum install gcc-c++
yum -y install libicu-devel
yum install openssl-devel -y

 

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

 

useradd www -s /sbin/nologin -M

 

tar xf php-7.2.9.tar.gz

 

cd php-7.2.9

 

./configure \
--prefix=/usr/local/php7.2.29 \
--with-mysql=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-iconv-dir=/usr/local/libiconv \
--with-pcre-regex \
--with-freetype-dir \
--with-libxml-dir=/usr \
--with-jpeg-dir \
--with-png-dir \
--with-zlib \
--with-bz2 \
--enable-xml \
--disable-rpath \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--with-curl \
--enable-mbregex \
--enable-mbstring \
--with-mcrypt \
--with-gd \
--enable-zip \
--enable-skip-gd-check \
--enable-gd-native-ttf \
--with-openssl \
--with-mhash \
--enable-pcntl \
--enable-sockets \
--with-xmlrpc \
--enable-soap \
--enable-short-tags \
--enable-static \
--with-xsl \
--enable-ftp

 

make && make install

 

ln -s /usr/local/php7.2.29/ /usr/local/php

 

vim /etc/ld.so.conf

include ld.so.conf.d/*.conf

/usr/local/php/lib

 

ldconfig

 

僅供參考

 

lamp之php7.2.9安裝

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.