Vista安裝appsrv,php不能使用mssql、Curl

 

安裝完appserv之後
把php.ini中的這兩行前面的;拿掉,發現他還是沒有成功load

extension=php_curl.dll
extension=php_mssql.dll

在Error log中看到

PHP Warning: PHP Startup: Unable to load dynamic library ‘D:\AppServ\php5\ext\php_curl.dll’ – xa7xe4xa4xa3xa8xecxabxfcxa9wxaaxbaxbcxd2xb2xd5xa1Crn in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘D:\AppServ\php5\ext\php_mssql.dll’ – xa7xe4xa4xa3xa8xecxabxfcxa9wxaaxbaxbcxd2xb2xd5xa1Crn in Unknown on line 0

首先要知道每個php的每個元件都會相依其他的東西

ExtensionDescriptionNotes
php_bz2.dll bzip2 compression functions None
php_calendar.dll Calendar conversion functions Built in since PHP 4.0.3
php_cpdf.dll ClibPDF functions None
php_crack.dll Crack functions None
php3_crypt.dll Crypt functions unknown
php_ctype.dll ctype family functions None
php_curl.dll CURL, Client URL library functions Requires: libeay32.dll, ssleay32.dll (bundled)
php_cybercash.dll Cybercash payment functions None
php_db.dll DBM functions Deprecated. Use DBA instead (php_dba.dll)
php_dba.dll DBA: DataBase (dbm-style) Abstraction layer functions None
php_dbase.dll dBase functions None
php3_dbm.dll Berkeley DB2 library unknown
php_domxml.dll DOM XML functions Requires: libxml2.dll (bundled)
php_dotnet.dll .NET functions None
php_exif.dll Read EXIF headers from JPEG None
php_fbsql.dll FrontBase functions None
php_fdf.dll FDF: Forms Data Format functions. Requires: fdftk.dll (bundled)
php_filepro.dll filePro functions Read-only access
php_ftp.dll FTP functions Built-in since PHP 4.0.3
php_gd.dll GD library image functions None
php_gettext.dll Gettext functions Requires: gnu_gettext.dll (bundled)
php_hyperwave.dll HyperWave functions None
php_iconv.dll ICONV characterset conversion Requires: iconv-1.3.dll (bundled)
php_ifx.dll Informix functions Requires: Informix libraries
php_iisfunc.dll IIS management functions None
php_imap.dll IMAP POP3 and NNTP functions PHP 3: php3_imap4r1.dll
php_ingres.dll Ingres II functions Requires: Ingres II libraries
php_interbase.dll InterBase functions Requires: gds32.dll (bundled)
php_java.dll Java extension Requires: jvm.dll (bundled)
php_ldap.dll LDAP functions Requires: libsasl.dll (bundled)
php_mhash.dll Mhash Functions None
php_ming.dll Ming functions for Flash None
php_msql.dll mSQL functions Requires: msql.dll (bundled)
php3_msql1.dll mSQL 1 client unknown
php3_msql2.dll mSQL 2 client unknown
php_mssql.dll MSSQL functions Requires: ntwdblib.dll (bundled)
php3_mysql.dll MySQL functions Built-in in PHP 4
php3_nsmail.dll Netscape mail functions unknown
php3_oci73.dll Oracle functions unknown
php_oci8.dll Oracle 8 functions Requires: Oracle 8 client libraries
php_openssl.dll OpenSSL functions Requires: libeay32.dll (bundled)
php_oracle.dll Oracle functions Requires: Oracle 7 client libraries
php_pdf.dll PDF functions None
php_pgsql.dll PostgreSQL functions None
php_printer.dll Printer functions None
php_xslt.dll XSLT functions Requires: sablot.dll (bundled)
php_snmp.dll SNMP get and walk functions NT only!
php_sybase_ct.dll Sybase functions Requires: Sybase client libraries
php_yaz.dll YAZ functions None
php_zlib.dll ZLib compression functions None

然後我終於知道我缺少甚麼東西了
就是libeay32.dll, ssleay32.dll, ntwdblib.dll

而且不要從網路上亂抓
通常就是PHP會附…我也是去看php官方網站才知道

就是把這3個檔COPY到%windows%/system32/

終於把測試環境搞定了…..看來我又是被appserv給寵壞了,他沒有幫我準備我就暈了頭

~ 由 壞孩子 於 三月 23, 2007.

3 回應 to “Vista安裝appsrv,php不能使用mssql、Curl”

  1. 感謝你的分享,也遇到同樣的問題😛 (玩了一個早上找不出原因 = =)

  2. 謝謝你來看我的經驗跟分享….

  3. great tip.

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

 
%d 位部落客按了讚: