Ldap connection after hosting on Web Server


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Ldap connection after hosting on Web Server
# 1  
Old 09-27-2017
Ldap connection after hosting on Web Server

Hi..

I have very limited knowledge on LDAP and its configuration and but I have been trying to figure out one issue that takes place when I am running the program that is written in php, but so far its unsuccessful.

The server, I am working on is ldap server, which is running on Apache. After testing a program (i.e.ldap://localhost:10389/) locally successfully the same was hosted on the web server (Linux Apache server). while running the same program via http ://abc.net:2020/conn.php, it stopped at the "$ldapconn = ldap_connect($host, $port)" and not proceeding to the next line (showstopper), and at the same time not showing any error message too, therefore, I am unable to find out where the issue is actually taking place.

The program I wrote on php is :

Code:
<html>
    <body>
        <?php
        $host = "ldap://1.1.11.111";
        $port = "389";
        
        echo "<br><br>Connecting to ".$host."..........";
        $ldapconn = ldap_connect($host, $port) 
                  or die("Could not connect to {$ldaphost}");
        echo "<br><font style='color:blue'>Connected Successfully!</font>";
        ?>
    </body>
</html>


Help needed to solve this issue.

Thanks in advance.

Last edited by GomathiUoM; 09-27-2017 at 12:42 AM..
# 2  
Old 09-27-2017
Moderator's Comments:
Mod Comment This appears to be a duplicate of the thread LDAP Connection Issue on Apache Web Server. Please continue any discussion on this topic there. This thread is closed.
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Web Development

LDAP Connection Issue on Apache Web Server

Hi.. I have very limited knowledge on LDAP and its configuration and but I have been trying to figure out one issue that takes place when I am running the program that is written in php, but so far its unsuccessful. The server, I am working on is ldap server, which is running on Apache. After... (1 Reply)
Discussion started by: GomathiUoM
1 Replies

2. Web Development

ASP.NET 5 Application on Centos OS7 Web Hosting Server

Hi All, Frankly I'm new to Linux Environment. While we are trying to Host an ASP.NET 5 Web Application on Centos OS7 Web hosting Server. There were couple of steps which we are supposed to go through, please see this link - We are stuck at Create a Container & then Running the Container,... (1 Reply)
Discussion started by: John Fredric
1 Replies

3. Cybersecurity

Web hosting security

Hello, guys ! The company I work for has a few web hosting servers and I'd like to know how can I secure the servers a little bit ? The situation is like this: Apache runs as nobody so all users can run scripts as nobody. This is a big security problem beacause if I have an account on the... (4 Replies)
Discussion started by: Sergiu-IT
4 Replies

4. UNIX for Dummies Questions & Answers

Web page hosting

I built my website based on Dreamweaver, on Windows platform. My server uses Unix, and the page doesn't look too good. Is there any way to solve this problem without too much of a headache? (1 Reply)
Discussion started by: PCL
1 Replies
Login or Register to Ask a Question