Workaround for fatal error call to undefined function curl_init () in PHP under Windows

Source: Internet
Author: User

Refer to official Solution: http://nz.php.net/manual/en/curl.installation.php

1, the PHP installation directory under the Ext folder has the Php_curl.dll file, and then right-click Properties---details to see if the version number is the same as the PHP version;
2. php.ini file; Extension=php_curl.dll front ";" Remove
If the above method is not enough, please continue down;
3, (if it is windows32 bit system) copy Php_curl.dll, Ssleay32.dll, Libeay32.dll to system32 directory
4. Copy the Libssh2.dll to the Apache24\bin directory and restart the service


Note:note to Win32 Users
In order to enable the This module on a Windows environment, Libeay32.dll and Ssleay32.dll must is present in your PATH. You don ' t need libcurl.dll from the CURL site.

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

Workaround for fatal error call to undefined function curl_init () in PHP under Windows

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.