Home>Article>Backend Development> How to install curl extension in php under win7

How to install curl extension in php under win7

王林
王林 Original
2021-09-22 17:12:38 2161browse

How to install the curl extension in PHP under win7: 1. Edit the php.ini configuration file and enable the extension=php_curl.dll option; 2. Copy the libeay32.dll file to the system32 directory; 3. Restart apache.

How to install curl extension in php under win7

The operating environment of this article: windows7 system, php7, thinkpad t480 computer.

The specific steps to install the curl extension for PHP under Windows 7 system:

1. Edit the php.ini configuration file and enable extension=php_curl .dll option

Remove the semicolon;before;extension=php_curl.dllin php.ini

How to install curl extension in php under win7

2. Move the libeay32.dll, ssleay32.dll, and libssh2.dll files under the php folder into thewindows/system32, orwindows/syswow64folder;

3. Restart Apache.

Use the phpinfo() function to return information about PHP configuration. You can see:

How to install curl extension in php under win7

ok, the curl extension is installed successfully!

Recommended learning:php training

The above is the detailed content of How to install curl extension in php under win7. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn