10-15-2012, 12:44 AM
Hi, I am trying to setup private wpt instance and i followed the instructions (i think :-)) and when i goto http://127.0.0.1, i see the php source code instead of the homepage. Can someone help me with this. The code looks like this..
<?php
include 'common.inc';
if (array_key_exists('bulk', $_GET)) {
$settings['noBulk'] = 0;
}
if (!array_key_exists('noBulk', $settings))
$settings['noBulk'] = 0;
// see if we are overriding the max runs
if (isset($_COOKIE['maxruns'])) {
$settings['maxruns'] = (int)$_GET['maxruns'];
}
if (isset($_GET['maxruns'])) {
$settings['maxruns'] = (int)$_GET['maxruns'];
setcookie("maxruns", $settings['maxruns']);
}
if (!isset($settings['maxruns'])) {
$settings['maxruns'] = 10;
}
if (isset($_REQUEST['map'])) {
$settings['map'] = 1;
}
// load the secret key (if there is one)
$secret = '';
if (is_file('./settings/keys.ini')) {
$keys = parse_ini_file('./settings/keys.ini', true);
if (is_array($keys) && array_key_exists('server', $keys) && array_key_exists('secret', $keys['server'])) {
$secret = trim($keys['server']['secret']);
<?php
include 'common.inc';
if (array_key_exists('bulk', $_GET)) {
$settings['noBulk'] = 0;
}
if (!array_key_exists('noBulk', $settings))
$settings['noBulk'] = 0;
// see if we are overriding the max runs
if (isset($_COOKIE['maxruns'])) {
$settings['maxruns'] = (int)$_GET['maxruns'];
}
if (isset($_GET['maxruns'])) {
$settings['maxruns'] = (int)$_GET['maxruns'];
setcookie("maxruns", $settings['maxruns']);
}
if (!isset($settings['maxruns'])) {
$settings['maxruns'] = 10;
}
if (isset($_REQUEST['map'])) {
$settings['map'] = 1;
}
// load the secret key (if there is one)
$secret = '';
if (is_file('./settings/keys.ini')) {
$keys = parse_ini_file('./settings/keys.ini', true);
if (is_array($keys) && array_key_exists('server', $keys) && array_key_exists('secret', $keys['server'])) {
$secret = trim($keys['server']['secret']);