Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 http://my.domain.com/test.php, it won't bind at all.

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

share|improve this question

2 Answers 2

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

 
discard

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.