• PHP-5.6.22安装


    查看系统及内核版本

    [root@test88 ~]# cat /etc/redhat-release 
    CentOS release 6.6 (Final)
    [root@test88 ~]# uname -rm
    2.6.32-504.el6.x86_64 x86_64
    

     安装epel源

    rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest-6.noarch.rpm
    

     安装依赖包

    yum install -y zlib-devel libxml2-devel libjpeg-devel libiconv-devel freetype-devel libpng-devel gd-devel curl-devel libxslt-devel mysql-devel libmcrypt-devel mhash mcrypt
    wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz 或者 wget http://60.205.224.143/source/libiconv-1.15.tar.gz
    tar zxf libiconv-1.15.tar.gz
    cd libiconv-1.15
    ./configure --prefix=/usr/local/libiconv-1.15
    make
    make install
    ln -s /usr/local/libiconv-1.15 /usr/local/libiconv
    useradd nginx -s /sbin/nologin -M
    

     编译安装php

    [root@test88 libiconv-1.14]# wget http://mirrors.sohu.com/php/php-5.6.22.tar.gz
    [root@test88 libiconv-1.14]# tar xf php-5.6.22.tar.gz 
    [root@test88 libiconv-1.14]# cd php-5.6.22
    ./configure 
    --prefix=/application/php-5.6.22 
    --with-mysql 
    --with-mysqli=mysqlnd 
    --with-pdo-mysql=mysqlnd 
    --with-iconv-dir=/usr/local/libiconv 
    --with-freetype-dir 
    --with-jpeg-dir 
    --with-png-dir 
    --with-zlib 
    --with-libxml-dir=/usr 
    --with-gettext 
    --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=nginx 
    --with-fpm-group=nginx 
    --enable-ftp 
    --enable-opcache=no
    
    make
    make install
    ln -s /application/php-5.6.22/ /application/php
    cp php.ini-production /application/php/lib/php.ini
    cd /application/php/etc/
    cp php-fpm.conf.default php-fpm.conf
    /application/php/sbin/php-fpm
    netstat -lntup|grep php-fpm
    
  • 相关阅读:
    XCode下Swift – WebView IOS demo
    swift-初探webView与JS交互
    Swift 实践之UIWebView
    iOS 权限判断 跳转对应设置界面
    iOS~判断应用是否有定位权限
    iOS 判断是否有权限访问相机,相册
    UIAlertController中TextField的用法
    Swift-UITextField用法
    多年iOS开发经验总结(一)
    Python lambda和reduce函数
  • 原文地址:https://www.cnblogs.com/Peter2014/p/7589075.html
Copyright © 2020-2023  润新知