LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-02-2010, 02:21 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
ldap and php


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
 
Old 05-02-2010, 03:13 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 05-02-2010, 07:20 AM   #3
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by acid_kewpie View Post
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.

thanks for all
 
Old 05-02-2010, 02:24 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
OK, so then there will be a php error logged on the server side for you to look at.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile php with ldap sandeepthug Linux - Software 3 02-03-2009 08:46 AM
Ubuntu Hardy (php-ldap):Can't contact LDAP server eantoranz Programming 7 12-02-2008 06:40 PM
LDAP Queries with PHP ckoniecny Programming 2 03-08-2006 06:58 PM
php + ldap berrance General 4 08-17-2005 05:57 AM
PHP with LDAP-support senorsnor Slackware 1 08-07-2004 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration