macOS 中使用 phpize 动态添加 PHP 扩展的错误解决方法

问题一:

执行 phpize 报错如下:

$ phpize 
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:        
Zend Module Api No:     
Zend Extension Api No:

浏览全部

Mac os 安装 Apache+PHP7+Mysql环境搭建

首先,需要安装brew,关于安装说明,请点此处

1、安装 Apache2.4

<span class="hljs-attribute">brew</span> tap homebrew/apache
brew tap homebrew/php
 brew install httpd24

2、安装 mysql

方法有两种,直接去官网下载dmg包,然后下一步,下一步,下一步安装了事。

也可以 brew install mysql 安装mysql-5.7

浏览全部