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


在给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 setup
apache 2.2.x module 
apache cgi
iis fastcgi 
iis cgi 
nsapi 
xitami
netserve 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服务器。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值