"; ?>

 Mapbender

Setup-Checker

"; if (phpversion()>'4.3.0'){ if (phpversion()<'5.1.0') $check .=""; else $check .=""; } else $check .=""; #php-schnittstelle if(php_sapi_name() == 'cgi') $check.=""; else $check.=""; # path to php.ini if (!get_cfg_var('cfg_file_path')) $check .=""; else $check .=""; # extension dir if (!get_cfg_var('extension_dir')||get_cfg_var('extension_dir')=='') $check .=""; else $check .=""; # session.save_path if (!get_cfg_var('session.save_path')) $check .=""; else $check .=""; # memory_limit if (get_cfg_var('memory_limit')) $check .=""; else $check .=""; # error_reporting $check .=""; if (get_cfg_var('error_reporting')!=2039) $check .=""; else $check .=""; # session.save_handler if (!get_cfg_var('session.save_handler')||get_cfg_var('session.save_handler')!='files') $check .=""; else $check .=""; # file_uploads $check .=""; if (get_cfg_var('file_uploads')=='1') $check .= ""; else $check .= ""; # allow_url_fopen $check .=""; if (get_cfg_var('allow_url_fopen')=='1') $check .= ""; else $check .= ""; echo $check; ################################################# #PHP Extensioncheck ################################################# #MYSQL ?>
PHP Configurationcheck php VersionVersion: " . phpversion() . "! you should think about upgrade to >=php5.1!
XVersion: " . phpversion() . "
Version: " . phpversion() . "! your PHP is very old, think about upgrade to >=php5.1!
interfaceXCGI-PHP
interfaceXModul-PHP
path to php.iniNo Path to php.ini found
path to php.iniX" . get_cfg_var('cfg_file_path') . "
extension_dirno extension_dir set!
extension_dirX" . get_cfg_var('extension_dir') . "(check the path, is it correct?)
session.save_pathplease configure a session.save_path!
session.save_pathX" . get_cfg_var('session.save_path') . " (check out the authorisation of the dir)
memory LimitX" . get_cfg_var('memory_limit') . " (running in memory-trouble with printing? Perhaps raise your memory limit)
memory Limitmemory_limit must be set (30M will be enough for the moment)
error-reportingplease set error_reporting to 'E_ALL & ~E_NOTICE' except for testing
Xok, error_reporting = E_ALL & ~E_NOTICE
session.save_handlersession.save_handler must be set to 'session.save_handler = files'!
session.save_handlerXsession.save_handler = " . get_cfg_var('session.save_handler') . "
file_UploadsXOn
Off
allow_url_fopenXOn
Off =>allow_url_fopen must be on read this


"; else $check=""; #PGSQL if(!extension_loaded('pgsql')) $check.=""; else $check.=""; #GD if(extension_loaded('gd')) $check.=""; else $check.=""; echo $check; #################################### # Database check #################################### ?>
PHP Extensioncheck MySQL checkMySQL not installed! (You have to include mysql-extension if you want to use MySQL as MB-Database!)
MySQL checkXMySQL installed
PostgreSQL checkPostgreSQL not installed (You have to include pgsql-extension if you want to use Postgres as MB-Database!)
PostgreSQL checkXPostgreSQL installed
GD2 checkXGD installed
GD2 checkGD not installed (no printing possible)


"; $check .= ""; if($con) $check .=""; else $check .=""; $check .=""; $con_string = "host= " . GEOS_DBSERVER . " port=" . GEOS_PORT . " dbname=" . GEOS_DB . " user=" . GEOS_OWNER . " password=" .GEOS_PW; if (pg_connect($con_string)){ pg_connect($con_string); $con_postgis = pg_connect($con_string); $sql = "Select postgis_full_version();"; $res = pg_query($con_postgis,$sql); if(!$res) $check .=""; else{ $cnt=0; while(pg_fetch_row($res)){ $check .=""; $check .=""; $cnt++; } if ($cnt==0) $check .=""; } } else $check .=""; echo $check; } else{ $check = ""; $check .= ""; if($con) $check .=""; else $check .=""; # md5 support $sql = "Select md5('root');"; $res = pg_query($sql); if(!$res) $check .=""; else{ $row = db_fetch_array($res); if ($row) $check .=""; else $check .=""; } echo $check; ###################################### # PostGIS check ###################################### ?>
Database check Administration DatabaseXMySQL
Connect to DatabaseXconnected
not connected
PostGIS function check
PostGIS supportno PostGIS function available
PostGIS supportXPostGIS function available
VersionX" . pg_fetch_result($res,$cnt,0). "
PostGIS supportno PostGIS function available
Postgis supportno PostGIS function available
Administration DatabaseXPostgreSQL
Connect to DatabaseXconnected
not connected
MD5 supportno md5 support
MD5 supportXmd5 supported
MD5 supportno md5 support


"; else{ $cnt=0; while(pg_fetch_row($res)){ $check .=""; $check .=""; $cnt++; } if ($cnt==0) $check .=""; } } else $check .=""; echo $check; } ################################# # Mapbender configuration check ################################# ?>
PostGIS check pg_query($con,$sql)"; if(!$res) $check .="
PostGIS supportno PostGIS function available
PostGIS supportXPostGIS function available
VersionX" . pg_fetch_result($res,$cnt,0). "
PostGIS supportno PostGIS function available
Postgis supportno PostGIS function available


"; else $check =""; # DBSERVER if (DBSERVER !="" && DBSERVER != "" && defined('DBSERVER')) $check .=""; else $check .=""; # Mapbender-DB if (DB !="" && DB != "" && defined('DB')) $check .=""; else $check .=""; # DB Owner if (OWNER !="" && OWNER != "" && defined('OWNER')) $check .=""; else $check .=""; # PREPAREDSTATEMENTS if (defined('PREPAREDSTATEMENTS')){ if (PREPAREDSTATEMENTS == true){ if (phpversion()<'5.1.0') $check.=""; else $check .=""; } else{ if (phpversion()<'5.1.0') $check .=""; else $check .=""; } } else $check .=""; # CHARSET if (CHARSET != "" && defined('CHARSET')) $check .=""; else $check .=""; # TMPDIR if (TMPDIR != "" && defined('TMPDIR')) $check .=""; else $check .=""; # MAXLOGIN if (MAXLOGIN != "" && defined('MAXLOGIN')) $check .=""; else $check .=""; # LOGIN if (defined('LOGIN')) $check .= ""; else $check .= ""; echo $check; echo ""; echo "
mapbender.conf check Administration DatabaseX" . SYS_DBTYPE . "
Administration DatabaseSYS_DBTYPE is not defined for mysql or pgsql
DB-ServerX" . DBSERVER . " (is this your DB-Server)
DB-ServerDBSERVER is not defined
Mapbender-DBX" . DB . " (is this your Mapbender-DB)
Mapbender-DBDB is not defined
DB-OwnerX" . OWNER . " (is this your DB-Owner)
DB-OwnerOWNER is not defined
PREPAREDSTATEMENTS-
compatibility
PREPAREDSTATEMENTS =set to 'true' and php version " . phpversion() . " is incompatible
set PREPAREDSTATEMENTS to false or update php to >=5.1
PREPAREDSTATEMENTS-
compatibility
Xset to 'true' and php " . phpversion() . " should work
PREPAREDSTATEMENTS-
compatibility
Xset to 'false' and php " . phpversion() . " should work (but think about upgrading to php 5.1)
PREPAREDSTATEMENTS-
compatibility
Xset to 'false' and php " . phpversion() . " should work (but you can set PREPAREDSTATEMENTS to 'true')
PREPAREDSTATEMENTS-
compatibility
PREPAREDSTATEMENTS is not defined
CHARSETX" . CHARSET . "
CHARSETCHARSET is not defined
TMPDIRX" . TMPDIR . "
TMPDIRTMPDIR is not defined
MAXLOGINX" . MAXLOGIN . "
MAXLOGINMAXLOGIN is not defined
Login-Path" . LOGIN . "
(if this link doesn't work, check out your 'URL to Login' in your mapbender.conf
Perhaps an alias in your httpd.conf will solve the prob')
Login-PathLOGIN is not defined
Legend:
red = maybe your Mapbender will run into trouble
blue = just a tip
green = seems to be alright
"; echo "
for further informations visit  Mapbender installation instructions