What exactly made you think to rename the index.php to index.html ?
Does your Webserver even support PHP? (mod-php)

greetings & bye

Timm

> I am trying to setup phpQLAdmin and need some help. Here is my setup:
> 
> OS: OpenBSD 3.2 * Apache is shipped with 3.2 so the only thing i needed 
> to do was install php....so i installed php-4 using the module option 
> for apache.
> 
> Openldap version 2.1.12. The ldap is up and working and the database i 
> am to administer with phpqladmin is present. I can use other tools such 
> as gq to connect / edit the database just fine. OK, i am trying to get 
> phpQLAdmin-2.0.8 working and have done the following per the instructions:
> 
> 1. untared below the web server root.  apache's root on openbsd 3.2 is 
> /var/www, so phpqladmin is installed in /var/www/phpQLAdmin-2.0.8
> 
> 2. i have copied the file /include/config.inc.CHANGE_ME  to config.nic 
> and edited it with the ldap info.
> 
> 3. i changed the file index.php to index.html and pointed apache to this 
> but for some reason when i try to connect to phpqladmin via netscape or 
> internet explorer @  http://192.168.0.10  ( this is the machine running 
> openldap, apache / phpqladmin) on my desktop i am getting the following:
> 
> 
> 
> LDAP Server:   
> 
> :  
> :  
>  
>        submit                 reset   
> 
> default server:port $host = split(' ', $server); // Get hostname and 
> base DN $dn = split(';', $host[0]); $USER_SEARCH_DN_CTR = $dn[2]; 
> session_register("USER_SEARCH_DN_CTR"); } 
> elseif(is_array($USER_SEARCH_DN_CTR)) { $host = $USER_HOST[2]; 
> $USER_SEARCH_DN_CTR = $host; session_register("USER_SEARCH_DN_CTR"); } 
> // NOTE: // These variables will be NULL the first time, // so we will 
> bind anonymously... // We must have read access (to the DN and CN/UID => 
> // the PQL_LDAP_REFERENCE_USERS_WITH define entry) as // anonymous here! 
> $_pql = new pql($USER_HOST, $USER_DN, $USER_PASS); // 
> ------------------------------------- // Get DN of user // TODO: This is 
> wrong. There might (?) be multiple // users with the same uid in the 
> database // (under different branches/trees). $rootdn = 
> pql_get_dn($_pql, $uname); if(!$rootdn) die("Can't find you in the 
> database!"); if($passwd and !$USER_PASS) $USER_PASS = $passwd; // Rebind 
> as user $_pql->bind($rootdn, $USER_PASS); $error = 
> ldap_errno($_pql->ldap_linkid); if( $error != 0 ){ $msg = PQL_ERROR . ": 
> " . ldap_err2str($error); header("Location:index.php?msg=" . 
> urlencode($msg)); exit; } $USER_ID = $uname; $USER_DN = $rootdn; if(! 
> session_register("USER_ID", "USER_PASS", "USER_DN")) die 
> (PQL_SESSION_REG); $log = date("M d H:i:s"); $log .= " : Logged in 
> ($rootdn)\n"; error_log($log, 3, "phpQLadmin.log"); 
> Header("Location:index2.php"); } // Closing connection /* * Local 
> variables: * mode: php * tab-width: 4 * End: */ ?>
> 
> It just wont load phpqladmin for some reason.
> 
> I have attached a copy of the webpage and what i am seeing when trying 
> to connect to phpqladmin.  If someone could please help me with this i 
> sure would appreciate it.
> 
> 
> Thanks in advance and have a great evening.
> 
> 

Reply via email to