Apache 2.4, php-5.6.30 under win10
Call to undefined function curl_ init()。
1. Confirm extension_ Dir = “PHP extended directory”
2. Confirm extension = PHP_ The comment of curl.dll has been removed, and PHP does exist in the EXT directory_ curl.dll。
If curl still doesn’t work
The reason is that libeay32.dll, ssleay32.dll and libssh2.dll, which curl depends on, cannot be loaded. These three files are in the PHP installation directory
Many people on the Internet say that as long as libeay32.dll and ssleay32.dll are used, I can’t test them. If curl is not turned on, libssh2.dll is still needed
Method 1: copy them to the bin directory of Apache, restart Apache, and start curl of PHP successfully
Method 2: add the PHP installation directory to the environment variable, restart Apache, and succeed
PS: I have tried these two methods
Add in Apache’s configuration file httpd.conf
LoadFile "D:/wamp/php-5.6.30/php5ts.dll"
LoadFile "D:/wamp/php-5.6.30/libeay32.dll"
LoadFile "D:/wamp/php-5.6.30/ssleay32.dll"
LoadFile "D:/wamp/php-5.6.30/libssh2.dll"
, test result: invalid
Similar Posts:
- Zend Studio 9 configure and install Zend debugger
- Cannot load php7apache2 to server
- Call to undefined function socket_create()
- [Solved] Qt Program http Error: TLS initialization failed
- curl: (7) couldn’t connect to host [How to Solve]
- Fatal error: Uncaught Error: Class “SQLite3” not found in C:\Code\phpcode\phpbk\tt.php:2 Stack trace: #0 {main} thrown in C:\Code\phpcode\phpbk\tt.php on line 2
- [Solved] Fatal error: Call to undefined function json_decode()
- [Solved] PHP Fatal error: Class ‘mysqli’ not found in xxx
- [Solved] Php5.6.30 environment error call to undefined function imagecreate() compile and install GD Library
- [Solved] An error class’ ZipArchive ‘not found is reported after testing phpexcel