Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a test page (PHP), that binds to an ldap server. When I run php test.php, everything works great. It binds just fine. However, when I go to, it won't bind at all.

I'm open to any suggestions that you might have. Thanks.

share|improve this question

The CLI configuration may not mirror the configuration used by your webserver - compare the output of php -i with a page calling <?php phpinfo(); ?> on your webserver and update your configuration as necessary.

share|improve this answer

We just had this problem happen. It turned out that all we had to do was restart Apache.

I have no idea what the cause was (I don't administer the server) but it was most likely security updates.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.