Welcome to Geeklog, Anonymous Thursday, April 25 2024 @ 12:50 pm EDT

Geeklog Forums

fatal error: mysql.class.php


Status: offline

billandlars

Forum User
Newbie
Registered: 10/27/04
Posts: 3
Hey guys, I've trying to put geeklog on a new site, and its being a real pain. Cannot figure out what is causing this error:

Warning: main(httpdocs/main/system/databases/mysql.class.php): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/rockx.com/httpdocs/main/system/lib-database.php on line 114

Fatal error: main(): Failed opening required 'httpdocs/main/system/databases/mysql.class.php' (include_path='.:/usr/share/pear') in /usr/local/psa/home/vhosts/rockx.com/httpdocs/main/system/lib-database.php on line 114

I've looked at similar errors, and my cohort has tried those fixes. Here is what we have from config.php:

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

...

// This should point to the directory where your config.php file resides.
$_CONF['path'] = '/httpdocs/main/'; // 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']';

httpdocs/main/ is where we're putting all of our stuff. All geeklog directories were uploaded to this page, since we don't have shell access.

Any help would be greatly appreciated. We've come to the realization that everything sucks compared to geeklog. There is no alternative!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by billandlars: httpdocs/main/ is where we're putting all of our stuff.

Make sure to use the complete path, as indicated in the hint at the bottom of the first page of the install script.

From the error message, it seems you should really have

$_CONF['path'] = '/usr/local/psa/home/vhosts/rockx.com/httpdocs/main/';

Also enter that path when you run the install script.

bye, Dirk
 Quote

Status: offline

billandlars

Forum User
Newbie
Registered: 10/27/04
Posts: 3
FOLLOW-UP:

Yeah, Dirk was absolutely right: the complete path name needed to be in there.

However, we came across a permission problem also.

I guess some of these hosted servers that don't allow a person to get to the shell need to have the permission set differently. Be aware of that if anyone else comes across a similar problem.

Thanks alot, Dirk.
 Quote

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