Home  >  Q&A  >  body text

使用homebrew安装php如何使用自定义的参数

使用homebrew安装php,后面加上安装参数。

brew install php56 --enable-fpm --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib --enable-zip --enable-soap --enable-opcache --with-mcrypt --with-openssl --with-curl --enable-mbstring --enable-sockets --with-freetype-dir --with-jpeg-dir --with-png-dir --with-gd --without-homebrew-php

可是装完后查看安装参数都是homebrew的默认参数。

如何安装自定义的参数,我百度了下好像别人也都是我这么做的。

PHPzPHPz2684 days ago725

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-10 18:09:59

    谢邀吧,(其实我不会php的)

    不确定你的那些参数是否合法,我建议你直接看官网(百度在这方面真心不行,搜娱乐信息倒是蛮好的)。

    homebrew-php

    看下面章节:

    你是不是应该先brew options php56看一下到底有哪些option,然后再用

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-10 18:09:59

    可以单独安装扩展
    比如:
    brew search php-redis
    列出相应的扩展
    brew install /xxx/xxx/php-redis

    reply
    0
  • Cancelreply