Mac 下的 MxSrvs 安装 PHPzip 的扩展(感觉各种扩展都是这个样子)

发布时间 2023-07-04 16:58:28作者: 码农骆驼

https://my.oschina.net/wgw888/blog/8563131

https://blog.csdn.net/unhejing/article/details/107176891

 

从 PHP 官网下载一个 zip 的扩展,

wget http://pecl.php.net/get/zip

然后在下载好的目录下 使用:
sudo /Applications/MxSrvs/bin/php/bin/pecl install zip
来安装 就 OK 了。记得一定要用sudo!!!

  注意:一定要使用sudo,不然会报错:there was a problem with getting the configured temp directory install failed

 

配置php.ini 添加:

extension=/Applications/MxSrvs/bin/php/lib/php/extensions/no-debug-non-zts-20180731/zip.so