Problem Enabling Ldap Module on Php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • billkirim
    New Member
    • Nov 2006
    • 25

    Problem Enabling Ldap Module on Php

    PHP Warning: PHP Startup: Unable to load dynamic library 'c:/www/php/ext/php_ldap.dll' - The specified module could not be found.\r\n in Unknown on line 0

    why this is happening?

    i have uncomment the extension=php_l dap.dll
    and i have copied the libeay32.dll and the ssleay32.dll in my
    windows\system3 2 directory.
    my php.ini file is on c:\windows\
    my php path c:\www\php\

    Any ideas..??? Please Help me.
    Apache/2.0.54 (Win32) mod_ssl/2.0.54 OpenSSL/0.9.7 PHP/5.1.6)
  • seangates
    New Member
    • Dec 2006
    • 19

    #2
    Originally posted by billkirim
    ... i have uncomment the extension=php_l dap.dll
    and i have copied the libeay32.dll and the ssleay32.dll in my
    windows\system3 2 directory.
    my php.ini file is on c:\windows\
    my php path c:\www\php\ ...
    The line in PHP.INI needs to be
    Code:
    extension=libeay32.dll
    ... and you may want to add ...
    Code:
    extension=ssleay32.dll
    Does that work?

    Sean

    Comment

    • billkirim
      New Member
      • Nov 2006
      • 25

      #3
      Originally posted by seangates
      The line in PHP.INI needs to be
      Code:
      extension=libeay32.dll
      ... and you may want to add ...
      Code:
      extension=ssleay32.dll
      Does that work?

      Sean
      nope i va got that error
      PHP Warning: PHP Startup: Unable to load dynamic library 'c:/www/php/ext/php_ldap.dll' - The operating system cannot run %1.\r\n in Unknown on line 0
      PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'libeay32.dll' in Unknown on line 0
      PHP Warning: PHP Startup: Unable to load dynamic library 'c:/www/php/ext/ssleay32.dll' - The operating system cannot run %1.\r\n in Unknown on line 0

      Comment

      • hamarsheh
        New Member
        • Jun 2007
        • 20

        #4
        do asearch and be sure if the file php_ldap.dll exists or not
        it must be on you'r computer

        Comment

        • Motoma
          Recognized Expert Specialist
          • Jan 2007
          • 3236

          #5
          How did you install PHP and Apache? Did you install them separately, together, or compile from source?

          Comment

          • jessienjr
            New Member
            • Jan 2008
            • 4

            #6
            I am having the same problem. Did you ever resolve this issue?

            Thanks,

            Jessie

            Comment

            • jessienjr
              New Member
              • Jan 2008
              • 4

              #7
              Originally posted by Motoma
              How did you install PHP and Apache? Did you install them separately, together, or compile from source?
              I am having the same problem. How did you resolve the issue?

              MYINFO
              I am trying to enable ldap for PHP on Windows Server 2003 SP 1
              I am running PHP5.2.5
              I am running Apache 2.2

              I have copied and put all of the following files in the extensions directory "ext" or C:\PHP\ext

              Files I have copied into ext and windows system32 directory:
              php_ldap.dll
              php_openssl.dll

              I already have the following files in my system32 directory:
              msvcr70.dll
              msvcr71.dll
              ssleay32.dll
              libeay32.dll

              I know that the system is seeing my extensions directory because when I put:
              extension=php_l dap.dll

              The error message shows up twice. This is in the Apache2.2 log file.

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

              When I do a php -v, the output is
              PHP Warning: Module 'magickwand' already loaded in Unknown on line 0
              PHP Warning: Module 'ldap' already loaded in Unknown on line 0
              PHP Warning: Module 'openssl' already loaded in Unknown on line 0
              PHP 5.2.5 (cli) (built: Nov 8 2007 23:18:51)
              Copyright (c) 1997-2007 The PHP Group
              Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

              This is strange.

              Any suggestions would be appreciated.


              Thanks,

              Jessie

              Comment

              • caswebber
                New Member
                • Feb 2008
                • 3

                #8
                Did you find a solution to this problem? I'm having the same issue.

                caswebber

                Originally posted by jessienjr
                I am having the same problem. How did you resolve the issue?

                MYINFO
                I am trying to enable ldap for PHP on Windows Server 2003 SP 1
                I am running PHP5.2.5
                I am running Apache 2.2

                I have copied and put all of the following files in the extensions directory "ext" or C:\PHP\ext

                Files I have copied into ext and windows system32 directory:
                php_ldap.dll
                php_openssl.dll

                I already have the following files in my system32 directory:
                msvcr70.dll
                msvcr71.dll
                ssleay32.dll
                libeay32.dll

                I know that the system is seeing my extensions directory because when I put:
                extension=php_l dap.dll

                The error message shows up twice. This is in the Apache2.2 log file.

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

                When I do a php -v, the output is
                PHP Warning: Module 'magickwand' already loaded in Unknown on line 0
                PHP Warning: Module 'ldap' already loaded in Unknown on line 0
                PHP Warning: Module 'openssl' already loaded in Unknown on line 0
                PHP 5.2.5 (cli) (built: Nov 8 2007 23:18:51)
                Copyright (c) 1997-2007 The PHP Group
                Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

                This is strange.

                Any suggestions would be appreciated.


                Thanks,

                Jessie

                Comment

                • jessienjr
                  New Member
                  • Jan 2008
                  • 4

                  #9
                  Originally posted by caswebber
                  Did you find a solution to this problem? I'm having the same issue.

                  caswebber
                  This is what worked for me.

                  I downloaded the latest version of libeay32.dll. I put that version in my windows system32 directory. I also put it in my php directory "C:\PHP\" I did the same with ssleay32.dll. I moved the old dll to a temp directory just in case the new dll broke something. Basically, I made sure my dlls that had to be in the php directory and the system32 directory were the same version. Vola, it worked.

                  Make sure you follow of the directions on the php website for file depencies for php_ldap.dll. On the php website for this extension is a thread of emails that will be very helpful. Locate the one that points you to the website with the latest libeay32.dll. That is the dll I am using.

                  I hope this helps!

                  jessienjr

                  Comment

                  • caswebber
                    New Member
                    • Feb 2008
                    • 3

                    #10
                    Thanks for the quick reply.
                    I'll try it.
                    caswebber

                    Originally posted by jessienjr
                    This is what worked for me.

                    I downloaded the latest version of libeay32.dll. I put that version in my windows system32 directory. I also put it in my php directory "C:\PHP\" I did the same with ssleay32.dll. I moved the old dll to a temp directory just in case the new dll broke something. Basically, I made sure my dlls that had to be in the php directory and the system32 directory were the same version. Vola, it worked.

                    Make sure you follow of the directions on the php website for file depencies for php_ldap.dll. On the php website for this extension is a thread of emails that will be very helpful. Locate the one that points you to the website with the latest libeay32.dll. That is the dll I am using.

                    I hope this helps!

                    jessienjr

                    Comment

                    • TOUNSI
                      New Member
                      • Mar 2008
                      • 7

                      #11
                      hi for every body where i can found php_ldap.dll.

                      thanks

                      Comment

                      • ronverdonk
                        Recognized Expert Specialist
                        • Jul 2006
                        • 4259

                        #12
                        Originally posted by TOUNSI
                        hi for every body where i can found php_ldap.dll.

                        thanks
                        In the ext folder of your PHP libraries.

                        Ronald

                        Comment

                        • cgallo
                          New Member
                          • Mar 2008
                          • 1

                          #13
                          PHP Version: 5
                          Apache Version: 2.2
                          Operating System: Windows 2003 Server

                          I was trying to set the following in php:
                          extension php_ldap.dll

                          And i was getting the following error on the apache error log
                          ERROR:
                          Unable to load dynamic library 'c:\\php\\ext\\ php_ldap.dll' - The operating system cannot run %1.\r\n in Unknown on line 0

                          Solution:
                          --- Added "c:\php\ext " and "c:\php\" to my path.
                          --- Removed old versions of libeay32.dll and ssleay32.dll (php_ldap.dll depends on them) from system32. See: http://www.corephp.co. uk/archives/36-A-Guide-to-using-PHP-5-Extensions-on-Windows.html
                          --- Make sure to have latest versions of libeay32.dll and ssleay32.dll

                          Comment

                          Working...