What do these PHP errors mean?....

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   What do these PHP errors mean?....
reddog
CZ Super Newbie
 Codezwiz Site Donator
reddog has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 56
Gender: Male
Fav. Sports Team: Da Bears
Website:
Status: Offline
Joined: Dec 27, 2003
0.01 posts per day
Posts: 86
Points: 12,465
  MSN Messenger ICQ Number
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 [ Register or login to view links on this board. ] 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. As well as translating it to laymans terminology for me.

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

Been awhile since i've had to post for help here, hope everyone is doing well. Thanks in advance for any replies !! As an after thought, i have attched my db.php file for convienance. hmm, not sure its working so here it is:

<?php
/***************************************************************************
*                                 db.php
*                            -------------------
*   begin                : Saturday, Feb 13, 2001
*   copyright            : (C) 2001 The phpBB Group
*   email                : [ Register or login to view links on this board. ]
*
*   $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':
      include("".$the_include."/mysql.php");
      break;

   case 'mysql4':
      include("".$the_include."/mysql4.php");
      break;

   case 'postgres':
      include("".$the_include."/postgres7.php");
      break;

   case 'mssql':
      include("".$the_include."/mssql.php");
      break;

   case 'oracle':
      include("".$the_include."/oracle.php");
      break;

   case 'msaccess':
      include("".$the_include."/msaccess.php");
      break;

   case 'mssql-odbc':
      include("".$the_include."/mssql-odbc.php");
      break;
   
   case 'db2':
      include("".$the_include."/db2.php");
      break;

}

$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>");
}

?>



Back to top Reply with quote
#2   
FREAK
CZ Newbie
 Codezwiz Site Donator
FREAK has been a member for over 19 year's 19 Year Member
usa.gif oklahoma.gif
Occupation: Air Force
Age: 44
Gender: Male
Status: Offline
Joined: Jan 11, 2005
0.00 posts per day
Posts: 22
Points: 1,875
   
Seems to me you are missing the file db/mysql.php.



Back to top Reply with quote
#3   re: What do these PHP errors mean?....
reddog
CZ Super Newbie
 Codezwiz Site Donator
reddog has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 56
Gender: Male
Fav. Sports Team: Da Bears
Website:
Status: Offline
Joined: Dec 27, 2003
0.01 posts per day
Posts: 86
Points: 12,465
  MSN Messenger ICQ Number
no, it's in there........just wish it was that easy, perhaps a config file needs to be directed to that file?



Back to top Reply with quote
#4   re: What do these PHP errors mean?....
phoenix-cms
CZ Newbie
phoenix-cms has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jun 15, 2006
0.00 posts per day
Posts: 2
Points: 125
   
you need to recompile apache with the following with -- mysql_module with --mysqli -- with sockets

Steve



Back to top Reply with quote
#5   re: What do these PHP errors mean?....
reddog
CZ Super Newbie
 Codezwiz Site Donator
reddog has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 56
Gender: Male
Fav. Sports Team: Da Bears
Website:
Status: Offline
Joined: Dec 27, 2003
0.01 posts per day
Posts: 86
Points: 12,465
  MSN Messenger ICQ Number
ahh, a true lead, ty for replying !

i installed apache via yast, in suse10. My compiling skills leave something to be desired. But i'll give it a go, will i need to re-install, mysql, php, and phpmyadmin as well? Also what might be exact options while compiling? (if thats the right terminology)

Thanks again !!!!!

I think i found a decent looking tut for this.......thanks again !!
[ Register or login to view links on this board. ]



Back to top Reply with quote
#6   re: What do these PHP errors mean?....
phoenix-cms
CZ Newbie
phoenix-cms has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jun 15, 2006
0.00 posts per day
Posts: 2
Points: 125
   
seems like a good tutorial to me, didnt want to write step by step gald you found one, though you may knew how to do it as you managed to install apache.

Steve



Back to top Reply with quote
#7   re: What do these PHP errors mean?....
reddog
CZ Super Newbie
 Codezwiz Site Donator
reddog has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 56
Gender: Male
Fav. Sports Team: Da Bears
Website:
Status: Offline
Joined: Dec 27, 2003
0.01 posts per day
Posts: 86
Points: 12,465
  MSN Messenger ICQ Number
well.......that tut that i found was a bit outta date, i found another one though, and its much more current:
[ Register or login to view links on this board. ]

apache,mysql,php, and phpmyadmin all compiled from source.....WOOT and its workin blob10.gif

still have some bugs to work out though, i use proftpd for ftp server, which uses system users for ftp accounts. His tut calls for a user called apache to be created, well that messes with me being able to make another user in order to be able to ftp files into ..../..//apache2/htdocs

if i create the user, it screws up the ownership icon_neutral.gif



Back to top Reply with quote
#8   re: What do these PHP errors mean?....
reddog
CZ Super Newbie
 Codezwiz Site Donator
reddog has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 56
Gender: Male
Fav. Sports Team: Da Bears
Website:
Status: Offline
Joined: Dec 27, 2003
0.01 posts per day
Posts: 86
Points: 12,465
  MSN Messenger ICQ Number
right on... Steve,

i got the ftp issues worked out, and compiling from source did it icon_exclaim.gif icon_exclaim.gif

you rock bro !! thank you icon_exclaim.gif icon_exclaim.gif



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum