Welcome to Geeklog, Anonymous Saturday, December 03 2022 @ 01:43 pm EST

Geeklog Forums

Cannot configure Geeklog


mark

Anonymous
Hi all,

I hav set up the configuration files for geeklog. However after entering the settings on the first of the setup pages, i get the erroro message

Fatal error: Cannot instantiate non-existent class: database in c:program filesapache groupapachehtdocsgeeklogsystemlib-database.php on line 117

here is my config.php file:


// +---------------------------------------------------------------------------+
// | (1) Database Settings |
// +---------------------------------------------------------------------------+

$_DB_host = 'localhost'; // host name or IP address of your DB server
$_DB_name = 'geeklog'; // name of your database,
// must exist before running the installer!
$_DB_user = 'root'; // MySQL user name
$_DB_pass = ''; // MySQL password

// The table prefix is prepended to each table used by Geeklog to avoid name
// collisions with other tables that may already exist in your database.
$_DB_table_prefix = 'gl_'; // e.g. 'gl_'


// +---------------------------------------------------------------------------+
// | (2) Paths |
// +---------------------------------------------------------------------------+

// Note for Windows users: It's safe to use the forward slash '/' instead of
// the backslash '' in paths. Make sure each path starts with a drive letter!

// This should point to the directory where your config.php file resides.
$_CONF['path'] = 'http://localhost/geeklog/'; // should end in a slash

// You only need to change this if you moved or renamed the public_html
// directory. In that case, you should specify the complete path to the
// directory (i.e. without the $_CONF['path']) like this:
// $_CONF['path_html'] = 'html://localhost/geeklog/public_html/';
$_CONF['path_html'] = 'html://localhost/geeklog/public_html/';


// +---------------------------------------------------------------------------+
// | (3) Site Settings |
// +---------------------------------------------------------------------------+

// Make sure this is the correct URL to your site, i.e. to where Geeklog's
// index.php file resides (no trailing slash).
$_CONF['site_url'] = 'http://localhost/geeklog/public_html';

// Some hosting services have a preconfigured admin directory. In that case,
// you need to rename Geeklog's admin directory to something like "myadmin"
// and change the following URL as well. Leave as is until you experience any
// problems accessing Geeklog's admin menu.
$_CONF['site_admin_url'] = $_CONF['site_url'] . '/admin';

// This is the return address for all email sent by Geeklog:
$_CONF['site_mail'] = 'admin@example.com';

// Name and slogan of your site
$_CONF['site_name'] = 'Geeklog Site';
$_CONF['site_slogan'] = 'Another Nifty Geeklog Site';

and here is my lib-common.php file

// $Id: lib-common.php,v 1.407 2004/12/22 16:10:28 blaine Exp $

// Prevent PHP from reporting uninitialized variables
error_reporting( E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR );

/**
* This is the common library for Geeklog. Through our code, you will see
* functions with the COM_ prefix (e.g. COM_siteHeader()). Any such functions
* can be found in this file. This file provides all configuration variables
* needed by Geeklog with a series of includes (see futher down).
*
* --- You only need to modify one line in this file! ---
*
* WARNING: put any custom hacks in lib-custom.php and not in here. This file is
* modified frequently by the Geeklog development team. If you put your hacks in
* lib-custom.php you will find upgrading much easier.
*
*/

/**
* Turn this on to get various debug messages from the code in this library
* @global Boolean $_COM_VERBOSE
*/

$_COM_VERBOSE = false;

/**
* Configuration Include: You should ONLY have to modify this line.
* Leave the rest of this file intact!
*
* Make sure to include the name of the config file,
* i.e. the path should end in .../config.php
*/
require_once('http://localhost/geeklog/config.php');


// Before we do anything else, check to ensure site is enabled

my directory structure is as follows

>>geeklog>
config.php
>>(various other folders)
>>public_html>
lib-common.php
index.php
(various other foles and folders)

It is still in the same directories as when it is extracted by winzip

This is a windows based system.
 Quote

eatri

Anonymous
// the backslash '' in paths. Make sure each path starts with a drive letter!// This should point to the directory where your config.php file resides.
$_CONF['path'] = 'http://localhost/geeklog/'; // should end in a slash Big Celebration
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by eatri: // the backslash '' in paths. Make sure each path starts with a drive letter!// This should point to the directory where your config.php file resides.
$_CONF['path'] = 'http://localhost/geeklog/'; // should end in a slash Big Celebration

The actual problem here is that this should be a path, not a URL ...

bye, Dirk
 Quote

Mark

Anonymous
Thanks, I worked that out an hour or so after i posted the prob. now i have another.
 Quote

All times are EST. The time is now 01:43 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content