Win8 and Win7 to solve php5.3 and 5.4, 5.5 and so on can not load Php_curl.dll the ultimate solution

Source: Internet
Author: User

Recently installed PHP high version on WIN7 and WINDOWS8 respectively! Have been confronted with this problem!

I. Win7 system 32-bit, apache2.2, php5.2 upgrade to 5.4.

This is relatively easy:

1. Phpinfo found no curl loaded;

2. Set Extension_dir in php.ini to point to E:\php5.4\ext; Some PHP extensions are loaded, but curl is still not working.

3. Set the Windows System environment variable, Phpext, point to E:\php5.4\ext, PHPRC point to e:\php5.4

Set the PATH environment variable to add e:\php5.4

4. Restart Apache, finally out, done!

I. WIN8 system 64-bit, apache2.2, php5.4, v9 version

First of all, the front win7 is executed, but not alive! Also downloaded a lot of 64-bit php_curl.dll, also not!

Later saw this article:

Http://www.cnblogs.com/perhaps/archive/2010/11/15/1877653.html

Discovery is likely to be a load dependent problem! Finally solved!

1. Perform the 1-4 steps of the front win7!

2. Download: http://www.dependencywalker.com/

3. Check the Php_curl.dll module dependencies in PHP version! Try it yourself, run and find the Php_curl.dll path, and open the view dependent library.

4. In http.conf, finally, add:

LoadFile E:/php/php-5.4/php5ts.dll
LoadFile E:/php/php-5.4/libeay32.dll
LoadFile E:/php/php-5.4/ssleay32.dll
LoadFile E:/php/php-5.4/libssh2.dll


LoadModule php5_module "E:/php/php-5.4/php5apache2_2.dll"
AddType application/x-httpd-php. php

5. Restart, the merit depends on!

Three summary:

The main problem, PHP to download the security version, all the methods are tried, still not, see dependencies and try to add.

The php_curl.dll extension in the PHP package should be available and should not be replaced casually. Also, although the PHP documentation notes that the 32-bit environment needs to be relied upon, this is not the case.

It took me half the time!

Win8 and Win7 to solve php5.3 and 5.4, 5.5 and so on can not load Php_curl.dll the ultimate solution

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.