PHP modules not loading though php.ini looks fine

PHP modules not loading though php.ini looks fine

by Rod Ward -
Number of replies: 5

Hi folks!. I'm hoping that one of you may have seen this issue before.

I've just installed Moodle 1.8.2 and the latest PHP 5 onto a Windows 2003 server with IIS 6.0 and using MS SQL Server as the DB.

Everything looks OK and is working fine except for the fact that, for some reason I cannot fathom, some of my PHP extensions are not loading. The ones I'm having problems with are:

  • cURL - php_curl.dll
  • OpenSSL - php_openssl.dll
  • LDAP - php_ldap.dll

All other extensions required for Moodle to work are loading OK and details appear in phpinfo...but not these.

They are definitely not commented out in php.ini and this is definitely the only php.ini on the box.  I've rebooted several times. I tried turning on PHP startup errors but this just meant that PHP would not load at all! I'm baffled.

Does anyone have any ideas about what I might be missing?

Average of ratings: -
In reply to Rod Ward

Re: PHP modules not loading though php.ini looks fine

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers

I don't know about cURL, but OpenSSL and LDAP need LIBEAY32.DLL and SSLEAY32.DLL (the names might not be right, I'm typing from memory) to be somewhere in the PATH. I usually copy them into system32 and forget about PATH issues.

Saludos. Iñaki.

In reply to Iñaki Arenaza

Re: PHP modules not loading though php.ini looks fine

by Rod Ward -

Yet again I find myself in your debt Iñaki,

This was indeed the problem. I found an old version of LIBEAY32.DLL sitting inside the Windows/System32 folder. (It was dated 2002. Not sure if this DLL is used by any other system or somebody had once upon a time tried setting up PHP on this server.)

Once I had copied in the two DLLs as you suggested, all was working well again.

Thank you again. If you are ever in Perth Western Australia, I owe you a beer!

In reply to Rod Ward

Re: PHP modules not loading though php.ini looks fine

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Hey Rod, feel free to drop into Moodle HQ if you're near Northbridge smile

http://moodle.com/hq
In reply to Martin Dougiamas

Re: PHP modules not loading though php.ini looks fine

by Rod Ward -

Actually I'll be in the city this afternoon.

I may just take you up on this. Love to see Moodle HQ.

Cheers