Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 11th August 2006, 07:37
reddog reddog is offline
Junior Member
Join Date: May 2006
Location: Chicago, IL. USA
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP problem or MySql problem , maybe both?

I've been trying setup apache, mysql, php, and phpmyadmin on a linux box here at home. I have apache up and running, that one is easy. MySql is also running and has a root user and password set. Php is working as far as i can tell, at least the phpinfo() script says so. phpMyAdmin is working fine as well, and as far as i can tell is connecting to the database. So i loaded up nuke7.5 for testing, installed the sql for 7.5. However when i go to http://mysite.com/index.php, i get the following errors:

Warning: main(db/mysql.php) [function.main]: failed to open stream: No such file or directory in /srv/www/htdocs/db/db.php on line 53

Warning: main() [function.include]: Failed opening 'db/mysql.php' for inclusion (include_path='/usr/share/php') in /srv/www/htdocs/db/db.php on line 53

Fatal error: Cannot instantiate non-existent class: sql_db in /srv/www/htdocs/db/db.php on line 86

Coincidentally, when i run the phpinfo(). Under the MySql section the following values read like this:

MySql Includes = "No Value"
MySql Libs = "No Value"
MySql_Modules_Type = "None"

I'm thinking i missed something in one of the config files, and I've gone over it many times. But the errors throw me off, because i don't know diddly about php. So i was hoping one of you gurus could interpret what the errors mean.Thanks in advance for any replies !!

Here are a few more specs:
Suse Linux 10.0
Apache2 - 2.0.54
MySql - 4.1.13
PHP4 - 4.4.0
phpMyAdmin - 2.7.0 -pl2

btw, here is a copy of db.php
 *                                 db.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *   $Id: db.php,v 1.10 2002/03/18 13:35:22 psotfx Exp $

 *   This file is part of the phpBB2 port to Nuke 6.0 (c) copyright 2002
 *   by Tom Nitzschner (tom@toms-home.com)
 *   http://bbtonuke.sourceforge.net (or http://www.toms-home.com)
 *   As always, make a backup before messing with anything. All code
 *   release by me is considered sample code only. It may be fully
 *   functual, but you use it at your own risk, if you break it,
 *   you get to fix it too. No waranty is given or implied.
 *   Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,
 *   then on my site. All original header code and copyright messages will be maintained
 *   to give credit where credit is due. If you modify this, the only requirement is
 *   that you also maintain all original copyright messages. All my work is released
 *   under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.

 *   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.

global $forum_admin;
if ($forum_admin == 1) {
    $the_include = "../../../db";
} elseif ($inside_mod == 1) {
    $the_include = "../../db";
} else {
    $the_include = "db";

switch($dbtype) {

	case 'MySQL':

	case 'mysql4':

	case 'postgres':

	case 'mssql':

	case 'oracle':

	case 'msaccess':

	case 'mssql-odbc':
	case 'db2':


$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
if(!$db->db_connect_id) {
    die("<br><br><center><img src=images/logo.gif><br><br><b>There seems to be a problem with the MySQL server, sorry for the inconvenience.<br><br>We should be back shortly.</center></b>");


Last edited by reddog; 11th August 2006 at 08:04.
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 18:58
how to make php to work with mysql (php installed with apt-get, (no mysql support) grafik Installation/Configuration 3 16th May 2006 00:18
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 14th March 2006 00:58
Mandriva 10.2 Perfect Setup Install Problems... ctroyp Installation/Configuration 12 30th December 2005 17:04
Problem installing ISPConfig, then with MySQL... ctroyp Installation/Configuration 7 26th September 2005 17:37

All times are GMT +2. The time now is 20:35.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.