• Centos7.0安装配置PHP7.0


    YUM安装所需开发包

    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-devel

    下面安装libmcrypt-2.5.8

    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.0

    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配置

    ./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
    

      

    最后安装

    make
    make install
    

      

    飞儿传媒www.firadio.com
  • 相关阅读:
    林大妈的JavaScript基础知识(二):编写JavaScript代码前的一些简单工作
    林大妈的JavaScript基础知识(一):JavaScript简史
    制作X509证书
    浏览器对象模型
    JS事件
    CSS操作
    Element节点
    Document节点
    Dom中的一些接口
    DOM节点的属性和方法
  • 原文地址:https://www.cnblogs.com/firadio/p/5348236.html
Copyright © 2020-2023  润新知