Solve the php dll module loading error.

Source: Internet
Author: User
Tags mysql functions sybase client
How can I solve the "php startup: Unable to load dynamic library" error?
Strange! Neither Apache nor IIS can load php_mysql.dll correctly today. After Google, many people found this problem. php startup: Unable to load dynamic library: E;/PhP5/EXT/php_mysql.dll. Obviously, php_mysql.dll is placed under extension_dir (= "E:/PhP5/EXT"). How can this happen? This problem does not occur in extension = php_gd2.dll before php_mysql.dll! Some people say that copying libmysql. DLL to % WINDIR %/system32 can solve the problem. In fact, this is not the solution:
I moved a nest of PHP files % ProgramFiles % to E:/. As a result, some extensions that depend on other DLL files cannot be loaded normally, and an error occurred while loading the extensions, taking php_mysql.dll as an example, php_mysql depends on libmysql. DLL, because the PHP 5 has been moved to the nest, and the new E:/PhP5 channel % PATH % is not removed, the libmysql cannot be found. DLL. Therefore, in order to be able to use these MySQL extensions, in addition to correctly configuring extension_dir, you must ensure that the system can use the DLL that these extensions depend on. There are two solutions: 1, copy these dependent DLL files to % WINDIR %/system32
2, or add the installation directory of PhP5 to % PATH %.
Both of them can achieve our goal well. It is simple enough, but sometimes it cannot be thought. Which extensions depend on which DLL? The following list can help us answer this question: php_curl.dll curl, client URL library functions requirements: libeay32.dll, ssleay32.dll (bundled)
Php_domxml.dll Dom XML functions php <= 4.2.0 requirement: libxml2.dll
(Bundled) php> = 4.3.0 requirement: iconv. dll (bundled)
Php_fdf.dll FDF: forms data format functions. Requirement: fdftk. dll
Gnu_gettext.dll (bundled), php> = 4.2.3 requires libintl-1.dll,
Php_iconv.dll iconv characterset conversion requirements: iconv-1.3.dll
Php_ingres.dll ingres ii functions requirements: ingres ii Libraries
Php_interbase.dll Interbase functions requirements: gds32.dll (bundled)
Php_java.dll Java functions php <= 4.0.6 requirement: JVM. dll (bundled)
Php_ldap.dll LDAP functions php <= 4.2.0 requires libsasl. dll (bundled ),
Php> = 4.3.0 requires libeay32.dll and ssleay32.dll (bundled)
Php_mcrypt.dll mcrypt encryption functions requirements: libmcrypt. dll
Php_mhash.dll mhash functions php> = 4.3.0 requirement: libmhash. dll (bundled)
Php_mcrypt.dll mcrypt encryption functions requirements: libmcrypt. dll
Php_mhash.dll mhash functions php> = 4.3.0 requirement: libmhash. dll (bundled)
Php_msql.dll msql functions requirements: msql. dll (bundled)
Php_mssql.dll MSSQL functions requirements: ntwdblib. dll (bundled)
Php_mysql.dll MySQL functions php> = 5.0.0, libmysql. dll (bundled) required)
Php_mysqli.dll mysqli functions php> = 5.0.0. libmysqli. dll (bundled) is required)
Php_oci8.dll Oracle 8 functions requirements: Oracle 8.1 + client libraries
Php_openssl.dll OpenSSL functions requirements: libeay32.dll (bundled)
Php_oracle.dll Oracle functions requirements: oracle 7 client libraries
Php_sybase_ct.dll Sybase functions requirements: Sybase client libraries
Php_xmlrpc.dll XML-RPC functions php> = 4.2.1 requirement: iconv. dll (bundled)
Php_cmdt.dll XSLT functions php <= 4.2.0 requires sablot. dll, expat. dll (bundled ).
Php> = 4.2.1 The requirements for sablot. dll, expat. dll, iconv. dll (bundled). The above are reproduced on the Internet.

Some of your experiences are as follows:
For PhP5, the configuration file PHP. INI is stored in the */apache2/bin/directory without any problems.
To solve the preceding problem, add the PHP Directory such as "; D:/grams/apache2/php511" to the system variable path. A semicolon is used to separate it from other parameters.
Or copy libmysql. dll in the PHP Directory to the */apache2/bin/directory.
After adding % PHP % to path, you need to restart the computer. It is useless to log out.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.