<link href="/js/bootstrap/css/bootstrap.css" rel="stylesheet"> <div class="container"> <div class="row"> <div class="span9 offset2"> <?php use app\inc\Util; use app\conf\App; use app\models\Database; use app\models\Dbcheck; include "../../app/conf/App.php"; new \app\conf\App(); App::$param['protocol'] = App::$param['protocol'] ?: Util::protocol(); App::$param['host'] = App::$param['host'] ?: App::$param['protocol'] . "://" . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT']; //print_r(App::$param); echo "<div>PHP version " . phpversion() . " "; if (function_exists(apache_get_modules)) { echo " running as mod_apache</div>"; $mod_apache = true; } else { echo " running as CGI/FastCGI</div>"; $mod_apache = false; } // We check if "wms/mapfiles" is writeable $ourFileName = "../../app/wms/mapfiles/testFile.txt"; $ourFileHandle = @fopen($ourFileName, 'w'); if ($ourFileHandle) { echo "<div class='alert alert-success'>app/wms/mapfiles dir is writeable</div>"; @fclose($ourFileHandle); @unlink($ourFileName); } else { echo "<div class='alert alert-error'>app/wms/mapfiles dir is not writeable. You must set permissions so the webserver can write in the wms/mapfiles dir.</div>";