DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I wanted to use php to manage my ldap server.
I used php5-ldap from debian site.
The php ran correctly , same thing for ladp ;
but when I tried the ldap-connect via the module php, nothing is appeared and the window froze ( blank page ), after that any simple php command didn't work untill I restarted apache2.
The ldap.load is added to the directory /etc/apache2/mods-enabled, but there is not file ldap.conf !!!!! is it correct or missed ??
here is an example for connection:
<?php
$ds=ldap_connect("localhost");
echo " my connection : $ds";
?>
after that I wait for a long time!!!!, nothing , don't receive any answer for my echo
,
thanks for help
Is PHP running correctly? you need to enable the interpretation of PHP itself within the httpd.conf, LDAP configuration is irrelevant if PHP itself is not being interpreted. Get basic PHP going first.
Is PHP running correctly? you need to enable the interpretation of PHP itself within the httpd.conf, LDAP configuration is irrelevant if PHP itself is not being interpreted. Get basic PHP going first.
Yes php is running correctly, just run phpinfo(); to see the info of the server and other info.
I am sure the problem in not in php, apache or ldap themselve , but the combine ldap and php.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.