I have just installed the latest version of punbb on the following server config
windows 2003 R2, IIS6.0, PHP4.4, MySQL 4.0.4
- created a website in IISADMIN with a distinct IP, 192.168.18.65
- The files were loaded to the physical location e:\web_forum
- In iis the website description name (forum) points to e:\web_forum.
- uploaded the required files
- created a mysql db
- ran http://192.168.18.65/install.php
- presumeably finished the intial setup
- created the config.php file
Now when I try to access the website I get the following error:
Notice: Undefined variable: pun_user in E:\web_forum\index.php on line 31
Notice: Undefined variable: pun_user in E:\web_forum\index.php on line 36
Warning: main(../lang/index.php): failed to open stream: No such file or directory in E:\web_forum\index.php on line 36
Fatal error: main(): Failed opening required '../lang/index.php' (include_path='.;c:\php\includes') in E:\web_forum\index.php on line 36
the install.php is as follows
// The PunBB version this script installs
$punbb_version = '1.2.12';
// define('PUN_ROOT', './');
// for windows .. define('PUN_ROOT', dirname(__FILE__).'./');
define('PUN_ROOT', dirname("forum"));
The index.php is as follows
// define('PUN_ROOT', './');
// for windows .. define('PUN_ROOT', dirname(__FILE__).'./');
define('PUN_ROOT', dirname("forum").'./');
// forum is the description for the web site identification in IIS
// the local path for the wesite files is "E:\web_forum"
if ($pun_user['g_read_board'] == '0')
message($lang_common['No view']);
// Load the index.php language file
require PUN_ROOT.'lang'.$pun_user['language'].'/index.php';
$page_title = pun_htmlspecialchars($pun_config['o_board_title']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
The config.php is as follows
<?php
$db_type = 'mysql';
$db_host = 'localhost';
$db_name = 'forum';
$db_username = 'root';
$db_password = '*******';
$db_prefix = 'pmg_';
$p_connect = false;
$cookie_name = 'punbb_cookie';
$cookie_domain = '';
$cookie_path = '/';
$cookie_secure = 0;
$cookie_seed = '58c741eb';
define('PUN', 1);
Can someone please help.
Thanks