佳木斯湛栽影视文化发展公司

主頁(yè) > 知識(shí)庫(kù) > PHP startup: Unable to load dynamic library錯(cuò)誤的錯(cuò)誤

PHP startup: Unable to load dynamic library錯(cuò)誤的錯(cuò)誤

熱門標(biāo)簽:IT外包 網(wǎng)站建設(shè) 太平洋壽險(xiǎn)電話營(yíng)銷 外呼線路 人工座席 記事本 呼叫外包 呼叫中心解決方案

怪啦!今天的Apache和IIS都沒(méi)法正確加載php_mysql.dll。google了一下,原來(lái)發(fā)現(xiàn)出現(xiàn)這個(gè)問(wèn)題的人還不少,PHP startup: Unable to load dynamic library :E;\PHP5\ext\php_mysql.dll。明明php_mysql.dll就擺在extension_dir (= "E:/PHP5/ext")下的嘛,怎么會(huì)呢?而且就在php_mysql.dll之前的extension=php_gd2.dll都沒(méi)有出現(xiàn)這個(gè)問(wèn)題,怪了!有人說(shuō)copy libmysql.dll到 %windir%\system32下就可以解決問(wèn)題,其實(shí)"華山不這一條道":

PHP被我挪了個(gè)窩,%ProgramFiles%到E:\下,導(dǎo)致一些要依賴于其他dll才能工作的擴(kuò)展無(wú)法正常加載這些dll,出現(xiàn)加載擴(kuò)展出
錯(cuò),以剛才的php_mysql.dll為例,php_mysql依賴libmysql.dll,由于給PHP5挪窩了,而又沒(méi)有把新的E:\PHP5夾道%PATH%中去
,所以沒(méi)法找到這個(gè)libmysql.dll,才會(huì)出錯(cuò)。所以為了能夠使用這些mysql的擴(kuò)展,除了要正確地配置extension_dir外
,還得保證系統(tǒng)能夠這些擴(kuò)展所依賴的dll,解決的辦法有兩個(gè):
1 將這些依賴的dll拷貝到%windir%\system32下
2 或者將PHP5的安裝目錄添加到%PATH%中。
無(wú)論那個(gè)都可以很好地達(dá)到我們地目的。
夠簡(jiǎn)單的,但是有時(shí)候還就想不到哪兒去。
到底哪些擴(kuò)展依賴哪些dll呢?以下列表可以幫助我們回答這個(gè)問(wèn)題:
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).

看文檔耐心不夠,自己找了點(diǎn)麻煩。:P

 

標(biāo)簽:泰安 那曲 延安 淮北 常州 綏化 那曲 山南

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《PHP startup: Unable to load dynamic library錯(cuò)誤的錯(cuò)誤》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    鄂伦春自治旗| 麻城市| 泸西县| 江陵县| 东城区| 绥化市| 大庆市| 六安市| 辛集市| 曲松县| 九台市| 东乡族自治县| 长武县| 和龙市| 收藏| 邳州市| 民权县| 泸定县| 阜康市| 墨玉县| 天气| 微山县| 贵定县| 苏尼特右旗| 丹棱县| 余庆县| 筠连县| 寻乌县| 鄂尔多斯市| 全南县| 盐城市| 都兰县| 改则县| 蒙阴县| 平泉县| 阳东县| 大宁县| 禹州市| 乐都县| 囊谦县| 保定市|