Index: src/webservice/htdocs/setup.php
===================================================================
--- src/webservice/htdocs/setup.php	(revision 92c9c7cf0efa1759b51ecb3e58d804f77ebdcbf0)
+++ src/webservice/htdocs/setup.php	(revision 92c9c7cf0efa1759b51ecb3e58d804f77ebdcbf0)
@@ -0,0 +1,92 @@
+<?php
+/*
+    Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+*/
+
+require_once("config/config.php");
+require_once("inc/DatabaseHandler.php");
+
+function printError($message)
+{
+	echo "<div class=\"error\">\n";
+	echo "	<h3>The following error occured:</h3>\n";
+	echo $message;
+	echo "</div>\n";
+}
+
+function printResult($result, $message)
+{
+	$class = "success";
+	$icon = "dialog-ok-apply.png";
+	if(!$result){
+		$class = "error";
+		$icon = "dialog-cancel.png";
+	}
+	echo "<li class=\"". $class ."\"><img src=\"resources/icons/". $icon ."\"/>". $message ."</li>\n";
+}
+
+?>
+
+<html>
+	<head>
+		<title>SiWeather Webservice Configuration</title>
+		<link rel="stylesheet" type="text/css" link="resources/css/webservice.css"/>
+	</head>
+	<body>
+		<h1>Welcome for the setup of the webservice backend for SiWeather</h1>
+		<ul>
+<?php
+
+$db = new DatabaseHandler();
+$dbFile = $db->databaseFile();
+if(is_null($dbFile)){
+	printResult(false, "No database file given (". $db->lastErrorMessage() .")");
+}
+
+$dbDirectory = pathinfo($dbFile, PATHINFO_DIRNAME);
+if(empty($dbDirectory)){
+	printResult(false, "Failed to extract directory from database file path ("+ $dbFile +")");
+}
+else{
+	if(is_dir($dbDirectory)){
+		printResult(true, "Database directory exists (". $dbDirectory .")!");
+	}
+	else{
+		if(!mkdir($dbDirectory)){
+			printResult(false, "Failed to create database directory (". $dbDirectory .")!");
+		}
+		else{
+			printResult(true, "Created directory ". $dbDirectory ." as database directory");
+		}
+	}
+
+	if(!is_writable($dbDirectory)){
+		printResult(false, "Database directory is not writable (". $dbDirectory .")!");
+	}
+	if($db->connect()){
+		printResult(true, "Connection to database established!");
+	}
+	else{
+		printResult(false, "Could not connect to the database (". $db->lastErrorMessage() .")");
+	}
+}
+
+?>
+		</ul>
+	</body>
+</html>
