zoukankan      html  css  js  c++  java
  • centos6编译安装php7

    https://www.cnblogs.com/wenwei-blog/p/6261637.html

    https://www.cnblogs.com/imzye/p/5109770.html

    centos6安装php7

    #源码位置
        D:sharesrcphp-web
    
    #安装依赖
        yum install gcc gcc-c++ pcre* openssl* gd-devel* zlib-devel pcre-devel libxml2-devel curl-devel
    
    #安装libmcrypt
        tar -xf libmcrypt-2.5.8.tar.gz
        cd libmcrypt-2.5.8
        ./configure
        make && make install
    
        vim /etc/ld.so.conf
        添加如下内容
        /usr/local/lib
    
        执行
        ldconfig
    
    #安装php7
        tar -xf php-7.0.14.tar.gz
        cd php-7.0.14
        ./configure 
        --prefix=/opt/php7 
        --exec-prefix=/opt/php7 
        --bindir=/opt/php7/bin 
        --sbindir=/opt/php7/sbin 
        --includedir=/opt/php7/include 
        --libdir=/opt/php7/lib/php 
        --mandir=/opt/php7/php/man 
        --with-config-file-path=/opt/php7/etc 
        --with-mcrypt=/usr/include 
        --with-mhash 
        --with-openssl 
    --with-mysql=mysqlnd
    --with-mysqli=shared,mysqlnd --with-pdo-mysql=shared,mysqlnd --with-gd --with-iconv --with-zlib --enable-zip --enable-inline-optimization --disable-debug --disable-rpath --enable-shared --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-mbregex --enable-mbstring --enable-ftp --enable-gd-native-ttf --enable-pcntl --enable-sockets --with-xmlrpc --enable-soap --without-pear --with-gettext --enable-session --with-curl --with-jpeg-dir --with-freetype-dir --enable-opcache --enable-fpm --without-gdbm --disable-fileinfo make && make install cp /opt/php7/etc/php-fpm.conf.default /opt/php7/etc/php-fpm.conf cp /opt/php7/etc/php-fpm.d/www.conf.default /opt/php7/etc/php-fpm.d/www.conf cp /opt/tools/php-7.0.14/php.ini-production /opt/php7/etc/php.ini cp /opt/tools/php-7.0.14/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm7 chmod 755 /etc/init.d/php-fpm7 chkconfig --add php-fpm7 chkconfig php-fpm7 on 启动php service php-fpm7 start

    discuz3.4

    https://www.cnblogs.com/huiy/p/8335505.html

  • 相关阅读:
    JavaWeb
    申请百度开发者账号
    秋招C++面试相关总结索引
    游戏开发客户端
    Python源码剖析——02虚拟机
    Python源码剖析——01内建对象
    Pymongo 笔记
    调用其他文件__name__=='__main__'下代码
    Python 相关
    Python import本地模块
  • 原文地址:https://www.cnblogs.com/hanxiaohui/p/8749835.html
Copyright © 2011-2022 走看看