PHP modules not loading though php.ini looks fine

PHP modules not loading though php.ini looks fine

Napisane bez: Rod Ward ()
Liczba ôdpowiedzi: 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?

W ôdpowiedzi na Rod Ward

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

Napisane bez: Iñaki Arenaza ()
Ôbrŏz Core developers Ôbrŏz Documentation writers Ôbrŏz Peer reviewers Ôbrŏz 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.

W ôdpowiedzi na Iñaki Arenaza

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

Napisane bez: 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!

W ôdpowiedzi na Rod Ward

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

Napisane bez: Martin Dougiamas ()
Ôbrŏz Core developers Ôbrŏz Documentation writers Ôbrŏz Moodle HQ Ôbrŏz Particularly helpful Moodlers Ôbrŏz Plugin developers Ôbrŏz Testers
Hey Rod, feel free to drop into Moodle HQ if you're near Northbridge uśmiych

http://moodle.com/hq
W ôdpowiedzi na Martin Dougiamas

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

Napisane bez: 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