The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.19-0ubuntu0.18.04.2 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 10-21-2019, 02:19 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Private instance
10-15-2012, 12:44 AM
Post: #1
Private instance
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']);
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Private instance - wptuser - 10-15-2012 12:44 AM
RE: Private instance - pmeenan - 10-16-2012, 05:09 AM
RE: Private instance - wptuser - 10-16-2012, 10:39 AM
RE: Private instance - pmeenan - 10-17-2012, 02:46 AM
RE: Private instance - RLilly - 08-23-2014, 12:27 AM
RE: Private instance - andydavies - 09-17-2014, 07:10 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)