WinXP中 - PHP启动:无法加载动态库php_ibm_db2.dll作为 [英] WinXP - PHP Startup: Unable to load dynamic library php_ibm_db2.dll

查看:440
本文介绍了WinXP中 - PHP启动:无法加载动态库php_ibm_db2.dll作为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行Windows XP Professional SP 3

Running Windows XP Professional SP 3

PHP版本5.3.14

PHP Version 5.3.14

Zend服务器版本5.6.0

Zend Server Version 5.6.0

的Apache / 2.2.22(Win32的)的mod_ssl / 2.2.22

Apache/2.2.22 (Win32) mod_ssl/2.2.22

PHP的警告:PHP启动:无法加载动态库'C:\\ PROGRAM
  文件\\ Zend的\\ ZendServer对其进行访问\\ lib目录\\ phpext \\ php_ibm_db2.dll作为' - 指定的
  程序无法找到。在在线0未知

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\Zend\ZendServer\lib\phpext\php_ibm_db2.dll' - The specified procedure could not be found. in Unknown on line 0

下面是我的路径变量的一切。

Here is everything in my "Path" variable.

C:\app\adam\product\11.2.0\client_1
;C:\app\adam\product\11.2.0\client_1\bin
;%SystemRoot%\system32
;%SystemRoot%
;%SystemRoot%\System32\Wbem
;C:\PROGRA~1\IBM\CLIENT~1
;C:\PROGRA~1\IBM\CLIENT~1\Shared
;C:\PROGRA~1\IBM\CLIENT~1\Emulator
;C:\PHP
;C:/PHP
;C:\Program Files\Zend\ZendServer\bin
;C:\Program Files\Zend\ZendServer\share\ZendFramework\bin
;C:\PROGRA~1\IBM\SQLLIB\BIN
;C:\PROGRA~1\IBM\SQLLIB\FUNCTION

文件属性:

C:\Program Files\Zend\ZendServer\lib\phpext\php_ibm_db2.dll
Size: 51.5 KB (52,736 bytes)
Created: Sunday, July 01, 2012, 12:18:48 PM
Modified: Tuesday, June 07, 2011, 3:43:00 PM

我的php.ini文件位于C:\\ PHP

My PHP.ini file is in C:\PHP

extension_dir中=C:\\ PHP \\分机

extension_dir = "C:\PHP\ext"

延长= php_ibm_db2.dll作为

extension=php_ibm_db2.dll

对我的整个C一个搜索:\\驱动器与php_ibm_db2.dll作为来了:

A search against my entire C:\ drive for php_ibm_db2.dll comes up with:

如果有任何其他的细节,我可以提供,请让我知道。我百思不得其解,为什么它无法找到此文件。

If there is any other detail i can provide please let me know. I'm baffled as to why it "cant find" this file.

感谢您的帮助。

- 7月30日更新 -

还有没有一个解决方案,但我可能已经发现了一个问题:

Still dont have a solution, but I may have found an issue:

在这个页面的左边: http://windows.php.net/download/

我选择哪个版本?
如果你正在使用PHP和Apache 1或Apache2的从apache.org,你需要使用PHP

"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"

由于我们是根据上面的语句中使用的Apache2,我们需要使用PHP的VC6版本。

Since we are using Apache2, according to the above statement, we need to use the VC6 version of PHP.

PHP 5.4和PHP 5.3是VC9。 PHP 5.2中列出的唯一VC6。 PHP 5.2下载的php-5.2.17-NTS-Win32的VC6-x86.msi不包括php_ibm_db2.dll作为文件。

PHP 5.4 and PHP 5.3 are VC9. PHP 5.2 is the only VC6 listed. PHP 5.2 download "php-5.2.17-nts-Win32-VC6-x86.msi" did not include the php_ibm_db2.dll file.

我一直使用从5.3 .dll文件与PHP 5.2试过,但也得到了同样的错误消息。

I've tried using the .DLL file from 5.3 with PHP 5.2, but also get the same error message.

推荐答案

步骤,使其与PHP5.5工作/ apache2.4.9 / mysql5.5在Windows上:

Steps to make it work with PHP5.5/apache2.4.9/mysql5.5 on Windows:

所有库必须根据你的操作系统是一致的,如果你的工作与32位下载32位的库,与64位一样,不要混用。

All libraries must be consistent according to your OS, if you work with 32 bits download 32 bits libraries, the same with 64 bits, don't mix.

1)安装iSeries客户机库(的 https://www-01.ibm.com/marketing/iwm/iwm/web/$p$pLogin.do?source=swg-idsdpds ),您将需要一个IBM ID来下载,如果你没有它只是注册。

1) Install iSeries client libraries (https://www-01.ibm.com/marketing/iwm/iwm/web/preLogin.do?source=swg-idsdpds) you will need an IBM ID to download, if you dont have it just sign up.

2)配置您的WAMP服务器并创建一个的phpinfo()脚本来检查编译线程安全字段。

2) Configure your WAMP server and create a phpinfo() script to check the Compiler and Thread Safe fields.

3)打开你的php.ini,并添加/修改:
   的extension_dir = C:\\ WAMP \\ BIN \\ PHP \\ php5.5.12 \\分机\\
   扩展 = php_ibm_db2.dll作为

3) Open your php.ini and add/modify: extension_dir = "C:\wamp\bin\php\php5.5.12\ext\" extension=php_ibm_db2.dll

4)下载PECL为IBM_DB2( HTTPS://pecl.php。净/包/ IBM_DB2 / 1.9.7 /窗口),并检查它与编译线程安全步骤2),在我的情况 5.5线程安全(TS)64 ,当我下载的文件的名字叫 php_ibm_db2-1.9 .7-5.5-TS-VC11-64 指示编译 VC11, TS (线程安全),64位版本1.9.7

4) Download the PECL for ibm_db2 (https://pecl.php.net/package/ibm_db2/1.9.7/windows) and check it out with the Compiler and Thread Safe of the step 2), in my case 5.5 Thread Safe (TS) x64, when I downloaded the name of the file was php_ibm_db2-1.9.7-5.5-ts-vc11-x64 that indicates Compiler VC11, TS (Thread Safe), 64 bits 1.9.7 version.

5)解压缩文件和 php_ibm_db2.dll作为复制到你的php 的extension_dir ,于我而言C:\\ WAMP \\ BIN \\ PHP \\ php5.5.12 \\分机\\。

5) Unzip the file and copy php_ibm_db2.dll to your php extension_dir, in my case "C:\wamp\bin\php\php5.5.12\ext\".

6)重启Apache,

6) Restart Apache,

7)运行< PHP回声phpinfo()函数> ,如果你看到 IBM_DB2 部分它的工作原理。

7) Run "<?php echo phpinfo()?>", if you see the ibm_db2 section it works.

这篇关于WinXP中 - PHP启动:无法加载动态库php_ibm_db2.dll作为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆