Home > php教程 > php手册 > body text

mamp 2.0.5 安装 Zend Optimizer

WBOY
Release: 2016-06-06 20:07:30
Original
973 people have browsed it

MAMP2.0版本默认取消了对Zend Optimizer的支持。这也可以理解,这东西活到现在的确已经没啥意义了。 但是shopex这烂货,7年了,还TM加密,真是无语。我05年的用户,偶然登陆shopex居然因为系统升级把我所有的授权都弄没了。两天了还没搞定。再度BS一下。 言

MAMP2.0版本默认取消了对Zend Optimizer的支持。这也可以理解,这东西活到现在的确已经没啥意义了。

但是shopex这烂货,7年了,还TM加密,真是无语。我05年的用户,偶然登陆shopex居然因为系统升级把我所有的授权都弄没了。两天了还没搞定。再度BS一下。

言归正传,参考了一德国人的blog,是因为apache 32位和64位的问题。

首先肯定是下载Optimizer扩展,从这里下载for macos的就可以,然后把对应的php5.2.x版本的ZendOptimizer.so文件copy到

/Applications/MAMP/bin/php/php5.2.17/lib/php/extensions/no-debug-non-zts-20060613/
Copy after login

php.ini中设置为:

[Zend]
zend_extension="/Applications/MAMP/bin/php/php5.2.17/lib/php/extensions/no-debug-non-zts-20060613/ZendOptimizer.so"
zend_optimizer.enable_loader = 1
zend_optimizer.optimization_level=15
Copy after login

然后执行:

mv /Applications/MAMP/Library/bin/httpd /Applications/MAMP/Library/bin/httpd.64
lipo -thin i386 /Applications/MAMP/Library/bin/httpd.64 -output /Applications/MAMP/Library/bin/httpd.32
ln -s /Applications/MAMP/Library/bin/httpd.32 /Applications/MAMP/Library/bin/httpd
Copy after login

然后重启即可。查看phpinfo看看有没有“with Zend Optimizer v3.3.9”,有则成功。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template