Centos7.0安裝配置PHP7.0

YUM安裝所需開發包php

yum install wget make gcc gcc-c++ bison autoconf patch \
pcre-devel zlib-devel openssl-devel net-snmp-devel \
ncurses-devel libxml2-devel bzip2-devel gd-devel libcurl-devel \
php-mysql

  yum install libmcrypt-develmysql

 

 

下面安裝libmcrypt-2.5.8c++

wget http://downloads.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz
tar zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8
./configure
make
make install

  

下載PHP7.0sql

wget http://am1.php.net/distributions/php-7.0.5.tar.xz
xz -d php-7.0.5.tar.xz
tar xvf php-7.0.5.tar
cd php-7.0.5

  

執行./configure配置bash

./configure --prefix=/usr/local/php \
--enable-fpm --enable-gd-native-ttf --enable-gd-jis-conv --enable-soap \
--enable-zip --enable-pcntl --enable-sockets --enable-mbstring --enable-xml \
--with-bz2 --with-openssl --with-iconv --with-zlib --with-curl \
--with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-mcrypt \
--with-mysqli --with-pdo-mysql --enable-bcmath

  

最後安裝curl

make
make install
相關文章
相關標籤/搜索