您的位置:首页 > 运维架构 > Apache

apache配置php的php5apache2_2.dll过程并加载Zend Guard Loader (windows)

2013-12-09 11:00 836 查看
在给apache配置php的过程中,如果php安装目录里没有php5apache2_2.dll,一定是下载的版本不对。 php 5.3.4有v9版和v6好几个版本 网站左边有几段文字: which version do i choose?if you are using php with apache 1 or apache2 from apache.org you need to use the vc6 versions of php 所以要下载v6c versions of php ,v6c又有两个版本如下:vc6 x86 non thread safe vc6 x86 thread safe 以上两个版本中,non thread safe版的php在安装过程中,没有apache的选项: select the web server you wish to setup iis fastcgi other cgi do not setup a web server
而thread safe版的安装过程中有apache 2.2.x module选项:select the web server you wish to setupapache 2.2.x module apache cgiiis fastcgi iis cgi nsapi xitaminetserve web server other cgi do not setup a web server ------------------------- 所以应该下载的版本是 vc6 x86 thread  

----------------------------------------------------------------------------------------------------------------------------------------------Zend Guard Loader 需要 windows(非线程安全)non thread safe版所以windows 下 apache(thread safe版)  =  php  =  Zend Guard Loader   无法配置
PHP 5.3 下,Zend Optimizer 已经被全新的 Zend Guard Loader 取代 ------------------------------------------------1. 下载 Zend Guard Loader 压缩包。(官方下载地址(附件为For Windows版本):http://www.zend.com/en/products/guard/downloads )
2. 解压并提取 ZendGuardLoader.so(Linux)或 ZendLoader.dll(Windows),对应你的PHP版本。
3. 在你的 php.ini 文件添加下面一行,用来加载 Zend Guard Loader:
    Linux 和 Mac OS X:  zend_extension = 完整路径/ZendGuardLoader.so    Windows(非线程安全):   zend_extension = 完整路径/ZendLoader.dll
4. 在 php.ini 额外新增一行,启用 Zend Guard Loader:
    zend_loader.enable = 1
5. 可选:可以在 php.ini 文件添加以下行到 Zend Guard Loader 配置位置:
    ;禁用许可证检查(为了性能的原因)    zend_loader.disable_licensing = 0
    ;让 Zend Guard Loader 支持混淆级别。级别在 Zend Guard 的官方详细文档 。 0 - 不启用混淆    zend_loader.obfuscation_level_support = 3
    ;从这个路径寻找Zend产品授权的产品许可证。欲了解更多有关如何创建一个许可证文件的信息,请参阅 Zend Guard 用户指南.    zend_loader.license_path =
6. 如果您使用 Zend debugger,请确保加载 Zend guard Loader。
7. 如果您使用 ioncube loader,请务必在它之前加载 Zend guard Loader。
8. 重新启动Web服务器。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: