zoukankan      html  css  js  c++  java
  • Centos 6.5 下php5.6.2 的编译安装

    1. 纯净的Centos 6.5系统

    2. 配置163yum源 (稍后会写一篇文档)

    3. 安装  开发软件包:yum  -y groupinstall  "Development Tools"

    4. 安装     mysql :        yum  -y install mysql mysql-server mysql-devel

    5. 下载php-5.6.2      wgethttp://cn2.php.net/distributions/php-5.6.2.tar.gz

    6.  解压  tar -zxvf php-5.6.2.tar.gz

    7.  切换到 php-5.6.2

    8.  ./configure 
      --prefix=/usr/local/php 
      --with-config-file-path=/usr/local/php/etc 
      --enable-fpm 
      --with-fpm-user=php-fpm 
      --with-fpm-group=php-fpm 
      --with-mysql=mysqlnd                   //这里mysqlnd 是内部查找命令
      --with-mysql-sock=/tmp/mysql.sock 
      --with-libxml-dir 
      --with-gd 
      --with-jpeg-dir 
      --with-png-dir 
      --with-freetype-dir 
      --with-iconv-dir 
      --with-zlib-dir 
      --with-mcrypt 
      --enable-soap 
      --enable-gd-native-ttf 
      --enable-ftp 
      --enable-mbstring 
      --enable-exif 
      --disable-ipv6 
      --with-pear 
      --with-curl 
      --with-openssl
    9.出现未安装的错误,直接用yum 进行安装即可 记得不要忘了装上 -devel    (libcurl libpng libcrul12等等)
    10.出现找不到文件路径的情况下  用find / -name 'name'去查找一下
    11.出现warning 的情况大多是因为版本已经默认安装了,可以去掉该行

    12.make
    13.make install
  • 相关阅读:
    9。11
    9.9样式
    9.9 容我懵逼一会
    16.9.8
    16.9.6下午
    16.9.6上午
    16.9.5下午
    流程例子
    使用极酷阳光播放器做流媒体播放并不暴露视频地址
    php 文件限速下载代码
  • 原文地址:https://www.cnblogs.com/mfryf/p/6086085.html
Copyright © 2011-2022 走看看