Welcome to Geeklog, Anonymous Friday, October 18 2024 @ 01:53 am EDT

Geeklog Forums

2 different errors


jessim

Anonymous
Depending on what I do when I try to install, I get two different errors. When the "install" screen first comes up, the path geeklog puts is " /home/idony/public_html/geeklog/". If I click "Next", I get the following error:

Warning: main(/public_html/geeklog/system/databases/mysql.class.php): failed to open stream: No such file or directory in /home/idony/public_html/geeklog/system/lib-database.php on line 114

Fatal error: main(): Failed opening required '/public_html/geeklog/system/databases/mysql.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/idony/public_html/geeklog/system/lib-database.php on line 114


Now, when I fix it to the correct path, which is "/public_html/geeklog/", then I get loads of fun:

Geeklog could not find config.php in the path you just entered: /public_html/geeklog
Please check this path and try again. Remember that you should be using absolute paths, starting at the root of your file system.


This is the correct path. I have no idea what else to do. I've checked the paths in the config file at least a dozen times. Here it is:


/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
// | Geeklog 1.3 |
// +---------------------------------------------------------------------------+
// | config.php |
// | |
// | Geeklog configuration file. |
// +---------------------------------------------------------------------------+
// | Copyright (C) 2001-2004 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony@tonybibbs.com |
// | Dirk Haun - dirk@haun-online.de |
// +---------------------------------------------------------------------------+
// | |
// | This program is free software; you can redistribute it and/or |
// | modify it under the terms of the GNU General Public License |
// | as published by the Free Software Foundation; either version 2 |
// | of the License, or (at your option) any later version. |
// | |
// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software Foundation, |
// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
// | |
// +---------------------------------------------------------------------------+
// | See the docs/install.html and docs/config.html files for more information |
// | on configuration. |
// +---------------------------------------------------------------------------+
//
// $Id: config.php,v 1.148 2004/12/31 10:33:31 dhaun Exp $

// When setting up Geeklog for the first time, you need to make sure the
// settings in the following 3 sections are correct:
// (1) Database Settings
// (2) Paths
// (3) Site Settings
// You can adjust the other settings once your site is up and running.

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

$_DB_host = 'localhost'; // host name or IP address of your DB server
$_DB_name = 'idony_geeklogdb'; // name of your database,
// must exist before running the installer!
$_DB_user = 'idony_idony'; // MySQL user name
$_DB_pass = 'mypassword'; // 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'] = '/public_html/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'] = '/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://www.mysite.net/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'] = 'mymail@mymail.com';

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


Any help you could give me would be greatly appreciated. Thanks!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
$_CONF['path'] = '/home/idony/public_html/geeklog/';

bye, Dirk
 Quote

jessim

Anonymous
Thanks! but now I'm getting an error that says:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/idony/public_html/geeklog/config.php on line 72
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

jessim

Anonymous
I checked already, but I couldn't find a parse error in Line 72: Here's where it is:

// 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'] = '/public_html/';
$_CONF['path_html'] = $_CONF['path'] . '/public_html/';
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
As that FAQ entry says, the parse error may be in a line preceding the one mentioned in the error message.

Since the last thing you changed was probably the $_CONF['path'] (which is above line 72), check that line again carefully.

bye, Dirk
 Quote

All times are EDT. The time is now 01:53 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