Welcome to Geeklog, Anonymous Wednesday, December 25 2024 @ 11:46 am EST
Geeklog Forums
Frustration!
TheHeggy
Anonymous
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:
// +---------------------------------------------------------------------------+
// | (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)
// | 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
// +---------------------------------------------------------------------------+
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:
Text 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)
Text 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
// +---------------------------------------------------------------------------+
7
3
Quote
TheHeggy
Anonymous
And no, that's not my password in the config
4
5
Quote
ironmax
Anonymous
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
Example (for windows users) of a path is:
$_CONF['path'] = 'c:/inetpub/wwwroot/'; // should end in a slash
5
5
Quote
Status: Banned
machinari
Forum User
Full Member
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/.
and ya, your path to your public_html dir should be just that, a "path" not a "url". something like /usr/var/public_html/.
4
6
Quote
Status: offline
JohnVanVliet
Forum User
Full Member
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 )
// | (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
* 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
Start over and config.php should look like this edited one
( P.S. never post your real file with out changing it )
Text 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
Text 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
4
5
Quote
TheHeggy
Anonymous
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?
Alright, got config sorted out I think, but I am not sure where to put the path in lib-database....
Like this?
Text Formatted Code
require_once($_CONF['/var/www/html/config.php'] . 'databases/'. $_DB_dbms . '.class.php');
4
4
Quote
TheHeggy
Anonymous
Okay, I got past the first step
Now I'm getting this:
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.
* 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.
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
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.
Text 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.
4
3
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
4
6
Quote
TheHeggy
Anonymous
Alright, I did what you said
It looks like it wants to work, but now I have ths error:
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:
// | (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:
* 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....
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
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:
Text 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:
Text 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....
4
5
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
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
5
6
Quote
All times are EST. The time is now 11:46 am.
- 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