解决PHP startup: Unable to load dynamic library的错误

2016-01-29 13:30 175 1 收藏

解决PHP startup: Unable to load dynamic library的错误,解决PHP startup: Unable to load dynamic library的错误

【 tulaoshi.com - PHP 】

怪啦!今天的Apache和IIS都没法正确加载php_mysql.dll。google了一下,原来发现出现这个问题的人还不少,PHP startup: Unable to load dynamic library :E;PHP5extphp_mysql.dll。明明php_mysql.dll就摆在extension_dir (= "E:/PHP5/ext")下的嘛,怎么会呢?而且就在php_mysql.dll之前的extension=php_gd2.dll都没有出现这个问题,怪了!有人说copy libmysql.dll到 %windir%system32下就可以解决问题,其实"华山不这一条道":



PHP被我挪了个窝,%ProgramFiles%到E:下,导致一些要依赖于其他dll才能工作的扩展无法正常加载这些dll,出现加载扩展出
错,以刚才的php_mysql.dll为例,php_mysql依赖libmysql.dll,由于给PHP5挪窝了,而又没有把新的E:PHP5夹道%PATH%中去
,所以没法找到这个libmysql.dll,才会出错。所以为了能够使用这些mysql的扩展,除了要正确地配置extension_dir外
,还得保证系统能够这些扩展所依赖的dll,解决的办法有两个:
1 将这些依赖的dll拷贝到%windir%system32下
2 或者将PHP5的安装目录添加到%PATH%中。
无论那个都可以很好地达到我们地目的。
够简单的,但是有时候还就想不到哪儿去。
到底哪些扩展依赖哪些dll呢?以下列表可以帮助我们回答这个问题:
php_curl.dll CURL, Client URL library functions Requires: libeay32.dll, ssleay32.dll (bundled)
php_domxml.dll DOM XML functions PHP <= 4.2.0 requires: libxml2.dll
(bundled) PHP = 4.3.0 requires: iconv.dll (bundled)
php_fdf.dll FDF: Forms Data Format functions. Requires: fdftk.dll
gnu_gettext.dll (bundled), PHP = 4.2.3 requires libintl-1.dll,
php_iconv.dll ICONV characterset conversion Requires: iconv-1.3.dll
php_ingres.dll Ingres II functions Requires: Ingres II libraries
php_interbase.dll InterBase functions Requires: gds32.dll (bundled)
php_java.dll Java functions PHP <= 4.0.6 requires: jvm.dll (bundled)
php_ldap.dll LDAP functions PHP <= 4.2.0 requires libsasl.dll(bundled),
PHP = 4.3.0 requires libeay32.dll,ssleay32.dll (bundled)
php_mcrypt.dll Mcrypt Encryption functions Requires: libmcrypt.dll
php_mhash.dll Mhash functions PHP = 4.3.0 requires: libmhash.dll (bundled)
php_mcrypt.dll Mcrypt Encryption functions Requires: libmcrypt.dll
php_mhash.dll Mhash functions PHP = 4.3.0 requires: libmhash.dll (bundled)
php_msql.dll mSQL functions Requires: msql.dll (bundled)
php_mssql.dll MSSQL functions Requires: ntwdblib.dll (bundled)
php_mysql.dll MySQL functions PHP = 5.0.0, requires libmysql.dll (bundled)
php_mysqli.dll MySQLi functions PHP = 5.0.0, requires libmysqli.dll (bundled)
php_oci8.dll Oracle 8 functions Requires: Oracle 8.1+ client libraries
php_openssl.dll OpenSSL functions Requires: libeay32.dll (bundled)
php_oracle.dll Oracle functions Requires: Oracle 7 client libraries
php_sybase_ct.dll Sybase functions Requires: Sybase client libraries
php_xmlrpc.dll XML-RPC functions PHP = 4.2.1 requires: iconv.dll (bundled)
php_xslt.dll XSLT functions PHP <= 4.2.0 requires sablot.dll, expat.dll (bundled).
PHP = 4.2.1 requires sablot.dll, expat.dll, iconv.dll (bundled).

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/php/)

来源:https://www.tulaoshi.com/n/20160129/1490425.html

延伸阅读
标签: 电脑入门
Microsoft Windows Installer其实就是微软用来运行MSI安装程序所使用的Windows程序模块,是专门用来管理和配置软件服务的工具。 故障现象:安装程序时提示:不能访问Windows Installer 服务。可能你在安全模式下运行 Windows,或者Windows Installer 没有正确的安装。请和你的支持人员联系以获得帮助。或者无法访问Windows安装程序,服务中Win...
标签: 电脑入门
我的电脑有时经常出现ADSL无法拨号,报告错误678。上网查了不少资料,才找到一个临时的解决方案,就是把原来的拨号程序删除,再重新安装一次能恢复正常,但是一般情况下,如果出现错误678,很难恢复正常。 首先看看官方解释: 错误代码:ADSL Error 678 问题描述:拨入方计算机没有应答,无法完成拨号网路连接。 导致原因:(很多原因都能导...
标签: PHP
    我们编写程序时,无论怎样小心谨慎,犯错总是在所难免的。这些错误通常会迷惑 PHP 编译器。如果开发人员无法了解编译器报错信息的含义,那么这些错误信息不仅毫无用处,还会常常让人感到沮丧。 编译PHP脚本时,PHP编译器会尽其所能 报告 它遇到的第一个问题。这样就产生一个问题:只有当错误出现时,PH...
LOAD DATA INFILE语句从一个文本文件中以很高的速度读入一个表中。如果指定LOCAL关键词,从客户主机读文件。如果LOCAL没指定,文件必须位于服务器上。(LOCAL在MySQL3.22.6或以后版本中可用。) 为了安全原因,当读取位于服务器上的文本文件时,文件必须处于数据库目录或可被所有人读取。另外,为了对服务器上文件使用LOAD DATA INFILE,在服务...
Part Six: assert.h Diagnostics for Programmers By James M. Rogers -------------------------------------------------------------------------------- The last article was on stdlib.h Standard Library. This article is on assert.h Diagnostics for Programmers. I am assuming a knowledge...

经验教程

144

收藏

6
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部