Installing PHP and PHP Extension on mac
     发布在:PHP      浏览:63      评论:3 条评论
# list php version
> brew list | grep php

# install php
> brew install php72
# set environment variable
> sudo vim ~/.bash_profile
# --------------------------------
PHP72="/usr/local/opt/php@7.2"
PATH=${PATH}:${PHP72}/bin:${PHP72}/sbin
export PATH

# install php extension
> curl [extension_url] -o [extension]
> pecl install [extension]
# extensions path: /usr/lib/php/extensions/
    Responses

      加载中...
    1. wintel 飘过。

      回复
    2. 终于回归了~ 撒花~

      回复
      • OceanicKang博主

        终于是把主要的一些配置搞完了,Wordpress 比 Typecho 麻烦好多。。。

        回复