From: ChiNoKaze <chi...@ya...> - 2004-05-11 14:08:13
|
> Is there anyway to 'see' what's going on when PHPWebsite tries to > connect to MySQL when setting up the config file? Something like a > verbose error? The generic 'can't connect' error isn't really getting > me too far. Hi Darrel, PHPWS uses the DB.php functionality from the PEAR libs. You can find the specific error that this library is returning by inserting an echo statement in the set_config.php file in phpwsroot/setup. At line 231 begins an if/elseif series of statements. 231 if ($error == "DB") 232 echo "Unable to connect to your server's database.<br />"; 233 elseif ($error == "prefix") modify it such: 231 if ($error == "DB"){ 232 echo "Unable to connect to your server's database.<br />"; 233 echo $core->db->message . "<br />"; 234 }elseif ($error == "prefix") Notice the addition of the curly braces as well as the extra echo statement. This will show you what error the Pear library is returning. I had this same problem, and the error it returned me was: DB Error: extension not found To resolve the issue in Gentoo I had to redo "emerge mod_php". I don't know anything about Mandrake though. HTH, Michael __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover |