5

I have recently set up apache+php+mysql from scratch and everything seems to be working fine except the cURL , imap and interbase extensions of PHP

The ext directory has all the necessary dlls including php_curl.dll and the other mentioned extensions however , in the error log , the following is coming

PHP Warning:  PHP Startup: Unable to load dynamic library 'B:/XServ/host/php/ext\\php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'B:/XServ/host/php/ext\\php_intl.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'B:/XServ/host/php/ext\\php_interbase.dll' - The specified module could not be found.\r\n in Unknown on line 0
[Tue Jul 12 19:16:07.025738 2016] [mpm_winnt:notice] [pid 2100:tid 344] AH00354: Child: Starting 64 worker threads.

As you may have noticed , there are two trailing backslashes instead of a forward slash.

Also , here is a snippet of my php.ini

extension_dir = "B:/XServ/host/php/ext"

extension=php_bz2.dll
extension=php_curl.dll
extension=php_fileinfo.dll
;extension=php_gd2.dll
extension=php_gettext.dll
;extension=php_gmp.dll
extension=php_intl.dll
extension=php_imap.dll
extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_exif.dll      ; Must be after mbstring as it depends on it
extension=php_mysqli.dll
;extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client
extension=php_openssl.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll

All other extensions work fine.

I am on Windows 8.1 , Apache 2.4.23 , PHP 7.0.8

Any solution for this ?

2
  • Try typing B:/XServ/host/php/ext to the explorer address bar, can you access it? Commented Jul 12, 2016 at 15:12
  • Yeah , i am able to access it. Commented Jul 13, 2016 at 7:57

2 Answers 2

11

You may want to test PHP first.

Have you tried to run php -v on the console? It will return you the exact error why it can't load the specified modules even if the extension_dir has the correct path.

ALSO

libCurl needs the file libssh2.dll. So, to resolve it try the following:

Copy the libssh2.dll file from your PHP Directory to the BIN dir of Apache (same location as httpd.exe)

or

In your httpd.conf file, add this `LoadFile B:/XServ/host/php/libssh2.dll

Sign up to request clarification or add additional context in comments.

1 Comment

You might also need to replace nghttp2.dll in apache's bin dir, as is the case with PHP 7.2.2
0

cURL and Windows have never been a happy couple, you'll need an extension for this, go to

http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/

and download the cURL version that corresponds to your PHP version under "Fixed curl extensions" then replace the php_curl.dll in ext folder.

Hope it helps

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.