Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6963417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:47:16+00:00 2026-05-27T15:47:16+00:00

I have the following downloaded on my machine apache2.2.21 zip from apachelounge php 5.3.8

  • 0

I have the following downloaded on my machine

apache2.2.21 zip from apachelounge

php 5.3.8 thread safe zip from php.net

Windows 7

I’ve unzipped them both to some path on my computer. Let’s say its called $HOME.

So I have $HOME/apach2 and $HOME/php.

I’ve successfully gotten the phpinfo() page to display and even installed the xdebug extension for debugging purposes in netbeans.

My problem is the following :

I uncommented ‘extension=php_ldap.dll’ in the php.ini because I need ldap connectivity.

I’ll start apache and the monitor says that apache is running. I then navigate to my index.php but an error occurs saying that ldap_connect doesn’t exist.

When I type if ‘php –rf ldap_connect’ into the command line, I get the function prototype no problem.

I even have a php script written that will use the ldap extension to do ldap search.


$conn = ldap_connect( 'ldap://myhostsomewhere', 389 );

ldap_set_option( $conn, LDAP_OPT_PROTOCOL_VERSION, 3 );

ldap_bind( $conn, 'cn=admin,dc=emc,dc=com', 'secret' );


$rs = ldap_search( $conn, 'cn=jerry,ou=people,dc=example,dc=com', '(cn=jerry)');


$stuff = ldap_get_entries( $conn, $rs );


var_dump( $stuff );

The code above will return an array with all the results and I get NO errors.

When I check the Apache error log however, I get the following error,

PHP Warning: PHP Startup: Unable to load dynamic library ‘C:/Users/jerry/Documents/myprogs/php/ext/php_ldap.dll’ – The specified module could not be found.\r\n in Unknown on line 0.

I’ve double checked and triple checked and the directory is there and all but it isn’t loading when apache tries to run php. BUT it loads fine when I run PHP through the command line.

I’ve looked at the phpinfo() and apache is loading the correct php.ini file as well.

I have NO clue what is going one.

The weird part is that usually a php error like that might cause apache to stop and cause some sort of fault. It’s a PHP Warning though, and apache starts up just fine but it complains when I try to call ldap_connect.

Anyone have any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:47:17+00:00Added an answer on May 27, 2026 at 3:47 pm

    This is how I solved it.

    I think that I must’ve switched the value of something in the php.ini file. I took the windows php installer, ran it and let it override the existing php.ini file.

    After that, I took the zipped version of php and dropped it in to replace the windows installer version but I saved the php.ini file. After that it worked fine, no issues.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have downloaded sample code from Apple Center.I also have gone through following question:
I have downloaded a web project from CodePlex and am getting the following error
I am running Solr on my windows machine using jetty. I have downloaded the
I have just downloaded the latest xdebug for my windows machine running wamp and
I am taking help from the following link: http://www.codeproject.com/KB/cs/SMS.aspx I have Downloaded source and
I have tried the following program for writing the contents into Spreadsheet. I downloaded
I have downloaded follwing code from one of Google Codes but problem is in
For completeness I have downloadded the following archive files from the JOGL website; jogamp-linux-amd64.7z
I'm having trouble installing Tomcat on my windows XP machine. I already have Apache
I have downloaded the latest Eclipse (3.6) for my Linux machine and extracted tar.gz

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.