19 June 2017

PHP7 Unable to load php_curl.dll extension on windows


Problem:  

PHP Startup: Unable to load dynamic library 'C:\\php7\\ext\\php_curl.dll' - The operating system cannot run %1.\r\n in Unknown on line 0

Solution:

  • Step1: Uncomment the php_curl.dll from php.ini
  • Step2: Copy the following three files from php installed directory.i.e "C:\\php7".
    1. libeay32.dll,
    2. libssh2.dll,
    3. ssleay32.dll
  • Step3: Paste the files under two place
    1. httpd.conf's ServerRoot directive. i.e "C\Apache24"
    2. apache bin directory. i.e "C\Apache24\bin"
  • Step4: Restart apache.
That's all. I solve the problem by this way.Hope it might work for you.


Mastering PHP 7: Design, configure, build, and test professional web applications

No comments:

Post a Comment

Featured Post

How to Write PHP code and HTML code within a same file

A PHP file can have both PHP code and HTML code together. Any HTML code written outside of PHP <?php //php code here… ?> Code is ig...

Popular Posts