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
标签:bin,sudo,zip,PHPzip,扩展,MxSrvs,net,php From: https://www.cnblogs.com/rxbook/p/17526202.html