怪啦!今天的Apache和IIS都没法正确加载php_mysql.dll。google了一下,原来发现出现这个问题的人还不少,PHP startup: Unable to load dynamic library :E;/PHP5/ext/php_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).

看文档耐心不够,自己找了点麻烦。:P

php load dynamic library,PHP startup: Unable to load dynamic library错误的错误相关推荐

  1. php dynamic library,PHP Startup: Unable to load dynamic library 问题。

    PHP Startup: Unable to load dynamic library ... (tried:... 这种算是比较常见的问题, 当然这里只讨论在保证 php.ini 中启用了相关扩展, ...

  2. cmd运行php文件以及环境配置出现的问题、 php.exe不是内部或外部命令,也不是可运行的程序 或批处理文件、PHP startup: Unable to load dynamic library

    我用php.exe远行php文件出现了几个问题,先说一下怎么解决这些问题的,然后再说怎么运行 首先是出现 'php.exe' 不是内部或外部命令,也不是可运行的程序 或批处理文件,查了一下,是没有配置 ...

  3. php报错:PHP Startup Unable to load dynamic library

    今天遇到使用php命令运行文件报错,提示:PHP Startup: Unable to load dynamic ,于是网上找了好多资料,终于解决,记录如下,以便日后查阅. 报错内容如下: PHP W ...

  4. [乐意黎原创]PHP抛PHP Startup:Unable to load dynamic library bcmath,Libmcrypt,mhash,mcrypt等警告及模块动态安装详解

    如下,Centos里启动 php-fpm 时,控制台总在抛若干警告. [root@aerchi] #service php-fpm startStarting php-fpm daemon is su ...

  5. PHP Startup: Unable to load dynamic library 解决办法

    Windows上安装PHP的v8js模块报错: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php71\ext ...

  6. Warning: PHP Startup: Unable to load dynamic library 'D:\phpS p\php-7.0.12-nts\ext\php_igbinary.dll'

    php   加载redis时出现如下错误 Warning: PHP Startup: Unable to load dynamic library 'D:\phpS p\php-7.0.12-nts\ ...

  7. windows下php连接oracle安装oci8扩展报错(PHP Startup: Unable to load dynamic library ‘oci8_11g‘)

    记录一下php7.29安装oci8的艰苦过程,简直就是唐僧西天取经历经九九八十一难. 使用的是phpstudy_pro安装的ph扩展wnmp环境下: 1 .安装oralce Instant Clien ...

  8. PHP Warning: PHP Startup: Unable to load dynamic library ‘bz2‘ (tried: /usr/local/php8/lib/php/exte

    PHP安装,创建完软连接,第一次使用 php -m查看扩展正常 但是在调用软连接:php -v 或者 php -m 会出现以下错误 PHP Warning: PHP Startup: Unable t ...

  9. PHP问题 —— Warning: PHP Startup: Unable to load dyna

    1.1  Warning: PHP Startup: Unable to load dynamic library 1.1.1  现象 如下错误信息: Warning: PHP Startup: Un ...

最新文章

  1. POSTGRESQL小玩
  2. 点云配准 PointNet + Concat + FC
  3. linux vscode配置spring boot开发环境
  4. UC Berkeley提出变分判别器瓶颈,有效提高对抗学习平衡性
  5. java学习(100):集合类简介
  6. LeetCode MySQL 185. 部门工资前三高的所有员工(dense_rank)
  7. WebView 文档 翻译
  8. 【AI视野·今日CV 计算机视觉论文速览 第201期】Wed, 19 May 2021
  9. The Nth Item
  10. scala 提取器模式匹配_Scala提取器应用,取消应用和模式匹配
  11. 力扣-62 不同路径
  12. asp连接linux下的oracle,如何从ASP连接到Oracle Server?
  13. 动态规划之子串和(续。升级版)nyoj745
  14. 电大计算机考试试题及答案,电大统考计算机考试试题及答案.doc
  15. nginx中$host、$http_host和$proxy_host区别
  16. 在Linux操作系统中,存放用户账号加密口令的文件是
  17. Tensorflow中的数据对象Dataset.shuffle()、repeat()、batch() 等用法
  18. android app targetsdk从23升级到28
  19. Linux网络——远程访问控制(SSH服务)
  20. 美拉德不做鬼佬BBQ,只做中国餐饮文化

热门文章

  1. 多期高收入的C++on-job学员
  2. 飞鸽传书软件来说到目前为止最难走的路
  3. 在我还是14岁的时候那会学C++
  4. Windows Vista和局域网聊天的计算机
  5. 百度SEO优化技术点总结
  6. 内向的人这样改善人际关系(四)
  7. mysql 索引 测试_mysql的索引测试
  8. OCR识别之图像预处理
  9. 生信宝典Linux学习系列文章整理
  10. python每隔几秒执行一次_Python设置程序等待时间