Environment:
Operating system: windows2008
php:5.2.13
apache:2.2.25
After configuring the httpd.conf and PHP.ini in the Win7 operating system, the PHP program can be successfully deployed to Apache. However, the same configuration is reported callto undefined function curl_init () error after porting the program to win2008. Google, Baidu has been n long, there are the following solutions:
1. Find Extension=php_curl.dll in php.ini, remove the front ;
2. Find Extension_dir = "ext" in php.ini, remove the front, and change to Extension_dir = "d:\php5\ext".
3, Php_curl.dll, Libeay32.dll, Ssleay32.dll, Php5ts.dll are copied to system32 under the ~
4, restart Apache, restart the operating system!
Follow the above methods to step up the operation or to report this error!
The method is resolved as follows :
When configuring the PHP extension, first look at whether the extension relies on other dynamic link libraries (post-dependency scenarios). If you have a dependent DLL, you do not need to copy it to the System32, and you do not need to add the file location to the path. In the httpd.conf file, add:
LoadFile the full path of the dynamic link library
For example, PHP needs to extend curl here, so the workaround is to add the following in the httpd.conf file:
LoadFile D:/php/libeay32.dll
LoadFile D:/php/ssleay32.dll
Problem Solving ~ ~ ~ The following is a dependency of the PHP extension:
Extension Library description annotations
Php_bz2.dll bzip2 compression Function Library No
Php_calendar.dll Calendar conversion function library from PHP 4.0.3 Built-in
Php_cpdf.dll ClibPDF Function Library None
Php_crack.dll password cracking function library None
Php_ctype.dll CType Family Function library from PHP 4.3.0 built-in
Php_curl.dll Curl, client URL library function library required: Libeay32.dll,ssleay32.dll (included)
Php_cybercash.dll Network cash payment function library PHP <= 4.2.0
The Php_db.dll DBM Library of functions has been deprecated. Replace with DBA (Php_dba.dll)
Php_dba.dll DBA: Database (dbm style) abstract layer function library None
Php_dbase.dll dBASE Function Library No
Php_dbx.dll DBX function Library
Php_domxml.dll DOM XML function library PHP <= 4.2.0 required: Libxml2.dll (included), PHP >= 4.3.0 required: Iconv.dll (included)
Php_dotnet.dll. NET function library PHP <= 4.1.1
The Php_exif.dll EXIF function library requires Php_mbstring.dll. And in php.ini, Php_exif.dll must be loaded after php_mbstring.dll.
Php_fbsql.dll frontbase function library PHP <= 4.2.0
Php_fdf.dll fdf: Form data Format function library required: Fdftk.dll (included)
Php_filepro.dll Filepro Function Library read-only access
Php_ftp.dll FTP function library from PHP 4.0.3 Built-in
Php_gd.dll GD library image function library is removed in PHP 4.3.2. Also note that the true color function cannot be used in GD1, instead of Php_gd2.dll.
Php_gd2.dll GD library image function library GD2
Php_gettext.dll gettext function library PHP <= 4.2.0 need Gnu_gettext.dll (included), PHP >= 4.2.3 need Libintl-1.dll,iconv.dll (included).
Php_hyperwave.dll Hyperwave Function Library None
Php_iconv.dll Iconv Character Set conversion required: Iconv-1.3.dll (included), php>=4.2.1 required Iconv.dll
Php_ifx.dll Informix Libraries required: Informix Library
Php_iisfunc.dll IIS management function Library None
Php_imap.dll Imap,pop3 and NNTP libraries None
Php_ingres.dll Ingres II Libraries required: Ingres II Library
Php_interbase.dll InterBase functions Required: Gds32.dll (included)
Php_java.dll Java function Library PHP <= 4.0.6 required: Jvm.dll (included)
Php_ldap.dll LDAP function library PHP <= 4.2.0 need Libsasl.dll (included), PHP >= 4.3.0 need Libeay32.dll,ssleay32.dll (included)
Php_mbstring.dll multi-byte string function library None
Php_mcrypt.dll MCrypt Cryptographic function library required: Libmcrypt.dll
Php_mhash.dll mhash function Library PHP >= 4.3.0 required: Libmhash.dll (included)
Php_mime_magic.dll Mimetype function library required: Magic.mime (included)
Php_ming.dll Ming function library (Flash) No
Php_msql.dll mSQL function library required: Msql.dll (included)
Php_mssql.dll MSSQL function library required: Ntwdblib.dll (included)
Php_mysql.dll MySQL function library PHP >= 5.0.0 need Libmysql.dll (included)
Php_mysqli.dll mysqli function library PHP >= 5.0.0 required Libmysql.dll (<= in PHP 5.0.2 Libmysqli.dll) (included)
Php_oci8.dll Oracle 8 function library required: Oracle 8.1+ client Library
Php_openssl.dll OpenSSL function library required: Libeay32.dll (included)
Php_oracle.dll Oracle Function library required: Oracle 7 client Library
Php_overload.dll object overload function library from PHP 4.3.0 built-in
Php_pdf.dll PDF Function Library None
Php_pgsql.dll PostgreSQL Function Library No
Php_printer.dll Printer Function Library None
Php_shmop.dll Shared memory function library None
Php_snmp.dll SNMP function library is only used for Windows nt!
Php_soap.dll soap Function library PHP >= 5.0.0
Php_sockets.dll Socket Function Library None
Php_sybase_ct.dll Sybase function library required: Sybase client library
Php_tidy.dll Tidy function library PHP >= 5.0.0
Php_tokenizer.dll tokenizer function library from PHP 4.3.0 built-in
Php_w32api.dll W32api Function Library None
Php_xmlrpc.dll xml-rpc function Library PHP >= 4.2.1 required Iconv.dll (included)
Php_xslt.dll XSLT function library PHP <= 4.2.0 requires Sablot.dll,expat.dll (included). PHP >= 4.2.1 requires Sablot.dll,expat.dll,iconv.dll (included).
Php_yaz.dll Yaz function library required: Yaz.dll (included)
Php_zip.dll zip file function Library read-only access
Php_zlib.dll zlib compression function library from PHP 4.3.0 built-in
Call to undefined function curl_init () workaround