PHP to turn on curl

Source: Internet
Author: User

First step: In the php.ini configuration file, Extension=php_curl.dll the preceding semicolon (;) remove

Step Two: Locate Extension_dir to configure the extended directory Extension_dir = "C:/amp/php/ext"

Step three: Restart Apache in effect

Many times this does not turn on curl, which is handled in the following way

1 Copy the file under PHP libeay32.dll,libssh2.dll,ssleay32.dll three files to Windows/system32

2 Copy the file Php_curl.dll under Php/ext to Windows/system32

3 Copy the file Php_curl.dll under the Php/ext to the Apache/bin directory (if no libeay32.dll is copied in)

(If you've configured these two items, you can skip it and remember to restart Apache)

4 in the php.ini configuration file, Extension=php_curl.dll the preceding semicolon (;) remove

5 Find Extension_dir to configure the extended directory Extension_dir = "C:/amp/php/ext"

6 Restart Apache in effect


Find a lot of information, have not solved, finally found a solution on the official website.

http://php.net/manual/zh/curl.installation.php

The reply of the Great God abroad:

I had to also also copy Libssh2.dll into my Apache24 folder for this to work with my PHP 5.6.2 installation. So altogether I had to do the following:


Move to Windows\System32 folder:

Libssh2.dll, Php_curl.dll, Ssleay32.dll, Libeay32.dll


Move to Apache24\bin folder

Libssh2.dll


Uncomment Extension=php_curl.dll


This article is from the IT technology blog, so be sure to keep this source http://linuxubuntu.blog.51cto.com/4964714/1913467

PHP to turn on curl

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.