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
  #1  
Old 4th January 2012, 23:00
ChaoticReality ChaoticReality is offline
Junior Member
 
Join Date: Jan 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Question ISPConfig won't start, gives PHP fatal error

A few hours ago, I completed an install of the latest ISPConfig on Ubuntu 11.04 Server. Followed the Perfect Server guide and with the addition of an iptables rule to allow access on port 8080, everything seemed to be working fine.

However, several hours later I found myself unable to connect to the admin interface. netstat -tap reveals that apache2 is no longer listening on port 8080 and the iptables rules appear to have vanished.

/var/log/ispconfig/ispconfig.log is empty, but the cron.log is full of this message:

Code:
PHP Fatal error:  Call to a member function connect() on a non-object in /usr/local/ispconfig/server/server.php on line 43

If I try and start the server manually as root using the provided shell script, I get exactly the same error in my terminal. I had a look at the php script and it would appear to be an error that originates with something in app.inc.php not loading properly.

I have tentatively ruled out non-loading of the include files as there's no error relating to that anywhere (and I would expect PHP to throw an error if a require_once file wasn't found.

Running the update script (just in case) yielded this error:
Code:
PHP Notice:  Undefined variable: conf in /tmp/ispconfig3_install/install/update.php on line 76
Unable to resolve hostname
and then dumped back into terminal.

I am officially stumped, especially as everything was working fine before and then just suddenly stopped. I have rebooted the server and nothing has changed. Any suggestions?

Thanks in advance!
Reply With Quote
Sponsored Links
  #2  
Old 4th January 2012, 23:12
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 395
Thanks: 30
Thanked 58 Times in 50 Posts
Default

What happens when you start Apache on the terminal?

Code:
# service apache2 start
Reply With Quote
  #3  
Old 4th January 2012, 23:20
ChaoticReality ChaoticReality is offline
Junior Member
 
Join Date: Jan 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your quick reply.

Apache starts as normal with no visible error messages:

Code:
root@syd:/usr/local/ispconfig/server/lib# service apache2 start
 * Starting web server apache2                                                                                                                [ OK ] 
root@syd:/usr/local/ispconfig/server/lib#
Nothing new in /var/logs/apache2/error.log either.
Reply With Quote
  #4  
Old 5th January 2012, 10:18
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,797
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

1) Check the file /etc/hostname and ensure that it contains a line for your hostname. You can get the current hostname of your server by executing the command:

hostname

2) Then run the ispconfig update again and choose to reconfigure services during update.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 5th January 2012, 16:44
ChaoticReality ChaoticReality is offline
Junior Member
 
Join Date: Jan 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Till,

/etc/hostname contains the correct hostname for the server and matches the output of the hostname command.

The update script and attempting to manually restart are still producing the same errors as in my previous post.

Any other ideas?

Thanks,
Mike
Reply With Quote
  #6  
Old 5th January 2012, 17:25
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,797
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Quote:
/etc/hostname contains the correct hostname for the server and matches the output of the hostname command.
According to php, the hostname is unresolvable.

Please post the exavt output of the command:

hostname -f

and the content of the file /etc/resolv.conf
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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 14:22
mail stop on one account provell General 10 26th November 2009 22:29
mod_layout and php gd branov Installation/Configuration 8 2nd September 2009 16:51
Apache2 Freezes celtic Server Operation 31 28th May 2007 18:18
Install stop at uuwish, UUDeview SeaWolf Installation/Configuration 6 5th October 2005 00:53


All times are GMT +2. The time now is 09:28.


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