If you are seeing this in your browser, PHP is not installed on your web server!!! *******************************************/ require 'common.php'; if( ! file_exists(realpath( 'config.php' )) ) { ?> phpLDAPadmin - <?php echo pla_version(); ?>

Configure phpLDAPadmin



You need to configure phpLDAPadmin. Edit the file 'config.php' to do so.

An example config file is provided in 'config.php.example'
\n"; ?> phpLDAPadmin - <?php echo pla_version(); ?> $function()' " . "phpLDAPadmin requires this function to work properly." ); return false; } } /* Make sure the config file is readable */ //if( ! is_readable( 'config.php' ) ) if( ! is_readable( realpath( 'config.php' ) ) ) { echo "The config file 'config.php' is not readable. Please check its permissions."; return false; } /* check for syntax errors in config.php */ // capture the result of including the file with output buffering ob_start(); include 'config.php'; $str = ob_get_contents(); ob_end_clean(); if( $str && false !== strpos( $str, 'error' ) ) { $str = strip_tags( $str ); $matches = array(); preg_match( "/on line (\d+)/", $str, $matches ); $line_num = $matches[1]; $file = file( 'config.php' ); ?> phpLDAPadmin Config File Error

Config file error

Syntax error on line

Looks like your config file has a syntax error on line . Here is a snippet around that line

"; if( $i < 0 ) continue; echo "" . ($i+1) . ": " . htmlspecialchars($file[ $i ]) . "
"; if( $i+1 == $line_num ) echo "
"; } ?>
Hint: Sometimes these errors are caused by lines preceding the line reported. $server ) if( $server['host'] ) $count++; if( $count == 0 ) { echo "None of the " . count($servers) . " servers in your \$servers array is "; echo "active in config.php. phpLDAPadmin cannot proceed util you correct this."; return false; } // Check each of the servers in the servers array foreach( $servers as $id => $server ) { if( isset( $server['host'] ) ) { // Make sure they specified an auth_type if( ! isset( $server['auth_type'] ) ) { echo "Your configuratoin has an error. You omitted the 'auth_type' directive on server number $id"; echo "'auth_type' must be set, and it must be one of 'config' or 'form'."; return false; } // Make sure they specified a correct auth_type if( $server['auth_type'] != 'config' && $server['auth_type'] != 'form' ) { echo "You specified an invalid 'auth_type' (" . htmlspecialchars( $server['auth_type'] ) . ") "; echo "for server number $id in your configuration."; return false; } } } return true; } ?>