diff --git a/config.sample.php b/config.sample.php
new file mode 100644
index 0000000000000000000000000000000000000000..0e760dcf71581a047e2bd6c9163253aa5957b22c
--- /dev/null
+++ b/config.sample.php
@@ -0,0 +1,8 @@
+<?php
+
+ini_set('display_errors',true);
+error_reporting(E_ALL);
+
+set_include_path(dirname(__FILE__).'/src:'.dirname(__FILE__).'/lib/php:'.get_include_path());
+
+require_once 'UNL/Autoload.php';
\ No newline at end of file
diff --git a/www/index.php b/www/index.php
index 66c3a36a8f0cb01eee28d335fff6b5c40e023d67..0cea7d87307b084562297d9ee4565a57a2a52cd1 100644
--- a/www/index.php
+++ b/www/index.php
@@ -1,8 +1,6 @@
 <?php
 
-ini_set('display_errors',true);
-error_reporting(E_ALL);
-require_once 'UNL/Autoload.php';
+require_once dirname(__FILE__).'/../config.sample.php';
 
 UNL_Templates::$options['version'] = 3;
 
@@ -15,7 +13,6 @@ $page->head .= '
 <link rel="stylesheet" type="text/css" href="searchCSS.css" />
 ';
 $page->addScript('searchFunc.js');
-$options = array('allowed_schemes' => array('http','https'));
 
 if (isset($_GET['u'])
     && preg_match('/^https?/', $_GET['u'])
diff --git a/www/linkedcse/index.php b/www/linkedcse/index.php
index 6d20e189ebd977efb335bd68128bae7c3dfec875..9645cfb8479d7ac2fae0b4a4c0805cce4c3bbaff 100644
--- a/www/linkedcse/index.php
+++ b/www/linkedcse/index.php
@@ -4,8 +4,7 @@ if (!isset($_GET['u'])) {
     exit();
 }
 
-chdir(dirname(dirname(__FILE__)));
-require_once 'UNL/Autoload.php';
+require_once dirname(__FILE__).'/../../config.sample.php';
 
 header('Content-type:application/xml');
 echo UNL_Search_CSEGenerator::generateCSE($_GET['u']);