Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 5th January 2012, 17:55
ChaoticReality ChaoticReality is offline
Junior Member
 
Join Date: Jan 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nope, it was a brand new blank OS install. All I've done is follow the Perfect Server guide. Haven't touched anything else on the server except to add an iptables rule to allow access on 8080.

As I said, it was working fine and then just suddenly stopped with no changes which is why I'm so baffled.

It's this error that's the most confusing (when I try and start ISPConfig): PHP Fatal error: Call to a member function connect() on a non-object in /usr/local/ispconfig/server/server.php on line 43

It appears that line 43 is referencing a function provided by the included files, which are obviously loading fine, since they aren't erroring on the require_once function.

Is there anything I can do to provide more diagnostics or should I just try a complete reinstall of ISPConfig?

Last edited by ChaoticReality; 5th January 2012 at 17:59.
Reply With Quote
Sponsored Links
  #12  
Old 5th January 2012, 19:45
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 368
Thanks: 25
Thanked 47 Times in 42 Posts
Default

Quote:
Originally Posted by ChaoticReality View Post
PHP Fatal error: Call to a member function connect() on a non-object in /usr/local/ispconfig/server/server.php on line 43
The error means that $app->dbmaster is not an object, which seems unusual.

Code:
/*
 * Try to Load the server configuration from the master-db
 */
if ($app->dbmaster->connect()) {
If we follow the trail, we find the following in server/lib/app.php, line 44:

Code:
/*
Initialize the connection to the master DB, 
if we are in a multiserver setup
*/

if($conf['dbmaster_host'] != '' && $conf['dbmaster_host'] != $conf['db_host']) {
	$this->dbmaster = new db;
} else {
	$this->dbmaster = $this->db;
}
So, it appears to be a configuration problem relative to your database. Why the parser is descending into the "multiserver setup" block is beyond me... unless, of course, you elected to configure for multiserver during install.

That said, you shouldn't have to be debugging PHP code to get ISPConfig up-and-running. Either there's a bug in the code or your DB setup is fundamentally flawed.

I could be wrong
Reply With Quote
  #13  
Old 5th January 2012, 21:01
ChaoticReality ChaoticReality is offline
Junior Member
 
Join Date: Jan 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by cbj4074 View Post
So, it appears to be a configuration problem relative to your database. Why the parser is descending into the "multiserver setup" block is beyond me... unless, of course, you elected to configure for multiserver during install.

That said, you shouldn't have to be debugging PHP code to get ISPConfig up-and-running. Either there's a bug in the code or your DB setup is fundamentally flawed.

I could be wrong

Thanks for your analysis. I did wonder when looking at the code if it could be a database problem. mysqld shows no failed logins which is what I suspected the most likely problem would be.

I didn't choose multi-server as far as I know and I'm not sure how my DB setup could get so messed up already, since it was installed/setup as part of the ISPConfig installation.

I'm about to wipe all the packages just down to the base os and try installing via the Perfect Server guide again. Thanks for all your help, i'll let you know if the problem reproduces.
Reply With Quote
Reply

Bookmarks

Tags
server start error php

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
Error when install ISPConfig 2 with components built from source X-admin Installation/Configuration 5 30th April 2010 13:22
mail stop on one account provell General 10 26th November 2009 21:29
mod_layout and php gd branov Installation/Configuration 8 2nd September 2009 15:51
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
Install stop at uuwish, UUDeview SeaWolf Installation/Configuration 6 4th October 2005 23:53


All times are GMT +2. The time now is 14:10.


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