MAC OS中使用brew安装php拓展
2017-08-03 23:39
513 查看
MAC OS中brew安装的PHP使用brew安装拓展
PHP拓展(可装可不装,brew拓展方便)
MongoDb拓展(前面安装的是数据库)
安装前先searchbrew search mongo
PHP56 安装 MongoDb拓展
sphp 56 brew install php56-mongo
PHP71 安装 MongoDb拓展
sphp 71 brew install php71-mongodb
重启
sudo apachectl -k restart,然后
http://localhost查看拓展开启没有
PHP各个版本安装xdebug拓展
PHP56 安装 xdebug拓展sphp 56 brew install php56-xdebug
PHP71 安装 xdebug拓展
sphp 71 brew install php71-xdebug
重启
sudo apachectl -k restart,然后
http://localhost查看拓展开启没有
PHP安装YAML,symfony框架使用速度提高x5
PHP56 安装 YAML拓展sphp 56 brew install php56-yaml
PHP71 安装 YAML拓展
sphp 71 brew install php71-yaml
安装 OPcache and APCu(缓存机制,加快PHP的编译速度)
在PHP56里面安装$ sphp 56 $ brew install php56-opcache $ brew install php56-apcu
在PHP71里面安装
$ sphp 71 $ brew install php71-opcache $ brew install php71-apcu
重启
sudo apachectl -k restart,然后
http://localhost查看拓展开启没有
原文地址:http://biyongyao.com/archives/166
相关文章推荐
- Mac OS使用brew安装Nginx、MySQL、PHP-FPM的LAMP开发环境
- Mac OS使用brew安装Nginx、MySQL、PHP-FPM的LAMP开发环境
- Mac OS使用brew安装Nginx、MySQL、PHP-FPM的LAMP开发环境
- MAC使用brew安装nginx+php+mysql环境
- mac下使用brew安装php的xdebug扩展
- 使用phpize为编译好的PHP安装拓展模块
- centos7系统下安装php-memcached拓展及简单使用
- MAC使用brew安装Nginx+PHP+MySql环境
- Mac os 使用brew 安装 clang-opm
- (纯干货) MAC OS 下使用 MAMP + Zend Studio 搭建 PHP 开发环境及安装WordPress
- 【Mac OS】brew的安装和使用
- mac使用 brew 安装php apache 及php nginx 记录(BUG 记录)
- centos7系统下安装php-memcached拓展及简单使用
- mac环境中使用brew安装php5.5.15
- mac下通过brew 安装的php,可能使用了 --debug 标识,php命令行时,一直出现 "Unable to initialize module"
- Mac OS上使用brew安装软件
- mac环境中使用brew安装php5.5.15
- Mac OS上使用brew安装软件,类似ubuntu下的apt-get
- mac环境中使用brew安装php5.5.15
- mac os使用brew安装docker