Doc #76649 [Ver]: cURL module requires libssh2.dll

From: Date: Sun, 22 Jul 2018 18:14:17 +0000
Subject: Doc #76649 [Ver]: cURL module requires libssh2.dll
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15915@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76649&edit=1 ID: 76649 Updated by: requinix@php.net Reported by: laucomm at gmail dot com Summary: cURL module requires libssh2.dll Status: Verified Type: Documentation Problem Package: cURL related Operating System: Windows PHP Version: 7.2.8 Block user comment: N Private report: N New Comment: Oh. When in doubt with problems like this, make sure you have error logging enabled (including display_startup_errors) and that you've checked the appropriate error logs. Previous Comments: ------------------------------------------------------------------------ [2018-07-22 18:13:26] requinix@php.net As the top three comments on the cURL installation page say, http://php.net/manual/en/curl.installation.php you need libssh2.dll in the path. The Apache download includes libcrypto and libssl but not libssh2. Copying it from the PHP download to Apache's bin\ is sufficient. Docs need updating. ------------------------------------------------------------------------ [2018-07-22 17:57:42] spam2 at rhsoft dot net that only proves that you modified the config for the cli successful so hell look at phpinfo() output which configs the webserver is using and enable display _startup_errors (I'm at a mobile so please look for exactly name) and make sure you have set a proper writable error_log when your cli can load the extension it is for sure a local config issue and as said this is the wrong bug tracker ------------------------------------------------------------------------ [2018-07-22 17:35:12] laucomm at gmail dot com If by "both APIs" you mean the php.exe being called directly with the "-m" parameter and php being loaded by apache as a module, than yes. When I remove the "extension=curl" line from the php.ini file, the "php.exe -m" output is missing the "curl" line as expected. ------------------------------------------------------------------------ [2018-07-21 12:59:02] cmb@php.net Are you absolutely sure that both APIs use the same ini settings? ------------------------------------------------------------------------ [2018-07-20 17:16:12] laucomm at gmail dot com As implicitly suggested, here the version and modules output: PS C:\Program Files\php> .\php.exe -v PHP 7.2.8 (cli) (built: Jul 18 2018 10:03:03) ( ZTS MSVC15 (Visual C++ 2017) x64 ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies PS C:\Program Files\php> .\php.exe -m [PHP Modules] bcmath calendar Core ctype curl <-- date dom filter gd hash iconv json libxml mbstring mysqli mysqlnd openssl pcre PDO Phar readline Reflection session SimpleXML soap SPL standard tokenizer wddx xml xmlreader xmlwriter zip zlib [Zend Modules] PS C:\Program Files\php> It can be seen, that curl is listed, bu it is not listed in the phpinfo() output and no cURL functions are available. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=76649 -- Edit this bug report at https://bugs.php.net/bug.php?id=76649&edit=1

« previous php.doc.bugs (#15915) next »