• mac apache php相关


    1.安装GD库:

    1. 原有php(php5.2)在安装GD时没有编译freetype,造成与生成图片相关的函数无法使用。
    2. brew rm freetype jpeg libpng gd zlib
    3. brew install freetype jpeg libpng gd zlib
    4. 中间可能会提示/usr/local无写权限,给local目录777权限或者757
    5. 创建链接 brew link --overwrite libpng freetype jpeg
    6. brew install php55 (安装php5.5)
    7. 替换
      LoadModule php5_module    libexec/apache2/libphp5.so 为
      LoadModule php5_module    /usr/local/Cellar/php55/5.5.30/libexec/apache2/libphp5.so
    8. 此时配置文件在: /usr/local/etc/php/5.5/php.ini
    9. 中间可能会提示configure: error: Cannot find libz ,解决办法 xcode-select install

    2.安装memcached

    1. brew install memcached
    2. brew install php55-memcached
    3. extension=memcached.so

    3.安装redis

    1. brew install redis
    2. brew install php55-redis
    3. extension=redis.so
    4. redis会用到序列化工具 igbinary,所以在安装之前需要安装igbinary。否则会报 No such file or directory - /usr/local/opt/igbinary/include/igbinary.h
    5. brew install igbinary
    6. brew install php55-igbinary
    7. extension=igbinary.so
  • 相关阅读:
    软件开发模型
    Java学习--数组
    10年软件测试经验
    Log4net
    文件下载界面
    VB.NET中文双引号的处理方法
    SOAPUI使用
    .net数字转换成汉字大写
    SQL调用Webservices
    SQL大小写金额转换
  • 原文地址:https://www.cnblogs.com/jesseZh/p/5060873.html
Copyright © 2020-2023  润新知