Topics

User Functions

Events

There are no upcoming events

What's New

Stories

1 new Stories in the last 2 weeks

Comments last 2 weeks


Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Sunday, May 26 2013 @ 04:34 AM EDT


 Forum Index > Support > Installation Support New Topic Post Reply
 Frustration!
   
Anonymous: TheHeggy
 07/17/04 11:40PM (Read 1693 times)  

grumpy


I've been trying to install Geeklog all night and I can't seem to get it right. I've tried everything I can think of.....

I keep getting the "does not exist" directory error, and the error that ends in "halt". Below is the code for config.php and lib-database.php

CONFIG:
PHP Formatted Code

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

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

// The table prefix is prepended to each table used be 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['http://www.theheggy.com/config.php']            = 'http://www.theheggy.com/config.php'; // 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']      = '/path/to/your/public_html/';
$_CONF['path_html']         = '/http://www.theheggy.com/';


// +---------------------------------------------------------------------------+
// | (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['http://www.theheggy.com']          = 'http://www.theheggy.com';

// 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['admin@theheggy.com']         = 'admin@theheggy.com';

// Name and slogan of your site
$_CONF['TheHeggy.com']         = 'TheHeggy.com';
$_CONF['You know you like it.']       = 'You know you like it.';
 



LIB-DATABASE (Lines 98 through 119)
PHP Formatted Code
// +---------------------------------------------------------------------------+
// | DO NOT TOUCH ANYTHING BELOW HERE                                          |
// +---------------------------------------------------------------------------+

if (eregi ('lib-database.php', $PHP_SELF)) {
    die ('This file can not be used on its own.');
}

/**
* Include appropriate DBMS object
*
*/

require_once($_CONF['/var/html/config.php'] . 'databases/'. $_DB_dbms . '.class.php');

// Instantiate the database object
$_DB = new database($_DB_host,$_DB_name,$_DB_user,$_DB_pass,'COM_errorLog');

// +---------------------------------------------------------------------------+
// | These are the library functions.  In all cases they turn around and make  |
// | calls to the DBMS specific functions.  These ARE to be used directly in   |
// | the code...do NOT use the $_DB methods directly
// +---------------------------------------------------------------------------+
 

 
 Quote
Anonymous: TheHeggy
 07/17/04 11:45PM  



And no, that's not my password in the config

 
 Quote
i2eeD
 07/18/04 01:55AM  
++---
Junior

Status: offline


Registered: 12/05/03
Posts: 31
The config.php is not in your HTML directory in the lib database that you show. "var/html/config.php." It's in the root folder. That's my take.

Are you not entertained?
 
Profile Email Website
 Quote
ironmax
 07/18/04 02:16AM  
MMMMM
Moderator

Status: offline


Registered: 06/20/03
Posts: 645
Take a look at your paths again and make sure they are correct. You are using a URL where the path to the config file is.

Example (for windows users) of a path is:
$_CONF['path'] = 'c:/inetpub/wwwroot/'; // should end in a slash


Have you seen the Geeklog Demo site? Check it out by clicking on the Demo Site link to the left under Resources - Getting started.
 
Profile Email Website
 Quote
machinari
 07/18/04 03:51AM  
+++++
Full Member

Status: offline


Registered: 03/22/04
Posts: 1512
now that you've provided your config.php for all to see you may now want to change your database username and password.

and ya, your path to your public_html dir should be just that, a "path" not a "url". something like /usr/var/public_html/.

 
Profile Email
 Quote
JohnVanVliet
 07/18/04 04:23AM  
+++++
Full Member

Status: offline


Registered: 10/09/03
Posts: 161
you have realy mesed up your paths .
Start over and config.php should look like this edited one
( P.S. never post your real file with out changing it )
PHP Formatted Code
 +---------------------------------------------------------------------------+
// | (1) Database Settings                                                     |
// +---------------------------------------------------------------------------+

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

// The table prefix is prepended to each table used be Geeklog to avoid name
// collisions with other tables that may already exist in your database.
$_DB_table_prefix = 'gl123_';         // 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']            = 'C:/webroot/Johns...../'; // 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']      = '/path/to/your/public_html/';
$_CONF['path_html']         = $_CONF['path'] . '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://johnscelestiapage.no-ip.com';

// 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']         = 'joh...@yahoo.com';

// Name and slogan of your site
$_CONF['site_name']         = 'JohnsCelestiaPage';
$_CONF['site_slogan']       = '"  One Small Step For Man ... "';


// ****************************************************************************
// * If you set up Geeklog for the first time, you shouldn't need to change   *
// * anythi..................................
...........

 


then for lib-common it should look like this
PHP Formatted Code
* Make sure to include the name of the config file,
* i.e. the path should end in .../config.php
*/

require_once( 'C:/webroot/Johns...../config.php' );



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

 

 
Profile Email Website
 Quote
Anonymous: TheHeggy
 07/18/04 04:27AM  



Yeah that was pretty dumb of me.... It's late and I wasn't paying attention

Alright, got config sorted out I think, but I am not sure where to put the path in lib-database....

Like this?
PHP Formatted Code
require_once($_CONF['/var/www/html/config.php'] . 'databases/'. $_DB_dbms . '.class.php');
 

 
 Quote
Anonymous: TheHeggy
 07/18/04 04:57AM  



Okay, I got past the first step

Now I'm getting this:

Parse error: parse error in /var/www/html/system/lib-database.php on line 110

Fatal error: Call to a member function on a non-object in /var/www/html/admin/install/install.php on line 167


I know that it means there's some kind of typo somewhere in my database-lib file.... And that's the one file I still don't fully understand.

Here's the file for you to look at. My config file is in var/www/html/config.php.

PHP Formatted Code
/**
* Include appropriate DBMS object
*
*/

require_once( '/var/www/html/config.php' ) . 'databases/'. $_DB_dbms . '.class.php');

// Instantiate the database object
$_DB = new database($_DB_host,$_DB_name,$_DB_user,$_DB_pass,'COM_errorLog');

// +---------------------------------------------------------------------------+
// | These are the library functions.  In all cases they turn around and make  |
// | calls to the DBMS specific functions.  These ARE to be used directly in   |
// | the code...do NOT use the $_DB methods directly
// +---------------------------------------------------------------------------+
 


Off to get some sleep now. Hopefully one of you guys can tell me what I've done wrong in there....

You've been very helpful.

 
 Quote
Dirk
 07/18/04 05:22AM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
Quote by TheHeggy: I know that it means there's some kind of typo somewhere in my database-lib file.... And that's the one file I still don't fully understand.

DON'T change anything in lib-database.php. All the changes you have to make are in config.php (plus that one line in lib-common.php). Don't change any other file (and if you did, please restore the original version of those files).

It looks like you're making things much too complicated for yourself. You only have to change one or two paths ($_CONF['path'] and, possibly, $_CONF['path_html']) and one URL ($_CONF['site_url']) in config.php plus that one line in lib-common.php (plus, of course, the database information) to get the site up and running.

bye, Dirk

 
Profile Email Website
 Quote
Anonymous: TheHeggy
 07/18/04 01:07PM  



Alright, I did what you said

It looks like it wants to work, but now I have ths error:
Parse error: parse error in /var/www/html/lib-common.php on line 4279

Fatal error: Cannot instantiate non-existent class: template in /var/www/html/lib-common.php on line 787


I restored that lib-database one, and my config should be the way it's supposed to be. I'm not normally this much of a dumbass, trust me. I'm normally pretty good with this stuff.....

Here's my config:
PHP Formatted Code
// +---------------------------------------------------------------------------+
// | (1) Database Settings                                                     |
// +---------------------------------------------------------------------------+

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

// The table prefix is prepended to each table used be 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']            = '/var/www/html/'; // 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']      = '/path/to/your/public_html/';
$_CONF['path_html']         = '/var/www/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://www.theheggy.com';

// 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@theheggy.com';

// Name and slogan of your site
$_CONF['site_name']         = 'TheHeggy.com';
$_CONF['site_slogan']       = 'You know you like it.';


// ****************************************************************************
// * If you set up Geeklog for the first time, you shouldn't need to change   *
// * anything below this line. Come back here once the site is up and running.*
// ****************************************************************************
 


Here is the lib-common file:
PHP Formatted Code
/**
* 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( '/var/www/html/config.php' );



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

if( isset( $_CONF['site_enabled'] ) && !$_CONF['site_enabled'] )
 


Again, thank you for all your help guys. Sorry for being a bit of a retard....

 
 Quote
Dirk
 07/18/04 01:28PM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
Quote by TheHeggy: Parse error: parse error in /var/www/html/lib-common.php on line 4279

Fatal error: Cannot instantiate non-existent class: template in /var/www/html/lib-common.php on line 787

Looks like a corrupted lib-common.php.

Also, you have both $_CONF['path'] and $_CONF['path_html'] pointing to the same directory. This is not a good idea. The two should be kept separate of each other, as in the original directory layout of the tarball.

bye, Dirk

 
Profile Email Website
 Quote
Content generated in: 6.11 seconds
New Topic Post Reply

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