Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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

1 Answer 1

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

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.