Monday, July 23, 2012

A problem with php.curl extension while installing new moodle instance

This was fun, not! I installed an initial moodle instance on a new Windows 2008 R2 server today.  All was fine until I hit the Server checks portion of the install.  I activated the extension=php_curl.dll directive in the php.ini file, restarted Apache but  was still getting a Server Checks error for the curl extension

After much effort and analysis, I narrowed the problem to a faulty .dll file  in the Wamp version I am using, Wampserver 2.2 64 bit version.  Can you believe it? A corrupt .dll file?  Corrupt in the Windows environment.  I swear, Windows is just plain bad.

This is the zip file that contains the repaired php_curl.dll file.

php_curl-5.3.13-VC9-x64.zip

Copy the extracted file php_curl.dll into the wamp\bin\php\php5.3.13\ext directory, replacing the corrupt one, restart Apache and refresh your moodle Server Check screen.

Good grief!


3 comments:

  1. thanks James, I quickly found where this file was located by glancing at this message. I have saved the file, but could not recall where to put it, that path wamp\bin\php\php5.3.13\ext did the trick. Restarted apache, refreshed my server environment info and was in better shape.

    ReplyDelete
  2. Thanks Its work for me
    searching for solution since 3 days

    ReplyDelete
  3. Yeah James Good Work .. Nice Post.
    For Moodle to work best for you, it is necessary to know what version of Moodle Hosting you would like to host. You also need to take into your consideration the recommended requirements for Moodle. As Cloud Hosting gives optimal performance on a Linux Server.

    ReplyDelete