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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th July 2008, 22:43
bmwpingvinen bmwpingvinen is offline
Junior Member
 
Join Date: Jan 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default Change of IP - lost in space...?

My Fedora server has been running ispconfig for a couple of years now, without any problems. Suddenly I had a new network provider, and both my external and internal IP's changed. I have managed to change most IP's in several config files on my server, but I am unable to log in to ISPConfig!
The login screen shows up, but when I try to log in I just get this:

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'fedora1' (2) in /home/admispconfig/ispconfig/lib/classes/ispconfig_db_mysql.lib.php on line 77

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'fedora1' (2) in /home/admispconfig/ispconfig/lib/classes/ispconfig_db_mysql.lib.php on line 77

Warning: Cannot modify header information - headers already sent by (output started at /home/admispconfig/ispconfig/lib/classes/ispconfig_db_mysql.lib.php:77) in /home/admispconfig/ispconfig/web/login/login.php on line 60

I hope someone can help me out, I seem to have forgotten most of the ISPConfig (and Fedora..) stuff I used to know.
Reply With Quote
Sponsored Links
  #2  
Old 21st July 2008, 11:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,405
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

Please make sure that you changed the IP address in /etc/hosts too.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 21st July 2008, 13:06
bmwpingvinen bmwpingvinen is offline
Junior Member
 
Join Date: Jan 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Till, but I already did. Must be somewhere else...
Same error if I try to log on on the same box or from another.

-s
Reply With Quote
  #4  
Old 21st July 2008, 14:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Are the settings in /home/admispconfig/ispconfig/lib/config.inc.php correct?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 21st July 2008, 16:39
bmwpingvinen bmwpingvinen is offline
Junior Member
 
Join Date: Jan 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think so, looks OK, no IP's there and I didn't touch it.
I guess I have screwed up the whole DNS config now, because I cannot ping anything any more. Maybe it is better to save my mail directories and do a fresh install with the latest fedora and ispconfig?
Reply With Quote
  #6  
Old 22nd July 2008, 14:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Have you tried your new provider's DNS servers in /etc/resolv.conf? It's possible that you that the old DNS servers don't answer anymore because they are owned by another provider.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 23rd July 2008, 15:40
bmwpingvinen bmwpingvinen is offline
Junior Member
 
Join Date: Jan 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I had changed that one. The problem was that I lost my old provider much sooner than planned, and then I just went ahead and changed all the IP's I could find. Stupid, I wasn't thinking. Now I have even managed to destroy the zone files for 192.168.1 (old internal) and 85.196.76 (old external) and I don't know how to set up correct files for 192.168.10 and 79.160.168. In the first place all this was handled by the ISPConfig admin utility, and it seems like Webmin handles this differently. Until I get ISPConfig admin running, I guess I am stuck.

If I do a fresh install of the latest fedora/ISPConfig, what directories should I save from the current installation to have my mail survive?
Or would an upgrade be able to fix things?

Thanks again.
-s

Last edited by bmwpingvinen; 23rd July 2008 at 23:01.
Reply With Quote
  #8  
Old 24th July 2008, 17:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

IS fedora1 the correct hostname for MySQL?
What's the output of
Code:
netstat -tap
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 30th July 2008, 22:31
bmwpingvinen bmwpingvinen is offline
Junior Member
 
Join Date: Jan 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry for the delay, I have been walking in the Norwegian mountains for a few days :-)
[root@fedora1 named]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdomain:2208 *:* LISTEN 2585/hpiod
tcp 0 0 *:mysql *:* LISTEN 2729/mysqld
tcp 0 0 *:sunrpc *:* LISTEN 2343/portmap
tcp 0 0 *:ndmp *:* LISTEN 3194/perl
tcp 0 0 *:hosts2-ns *:* LISTEN 3153/ispconfig_http
tcp 0 0 *:850 *:* LISTEN 2364/rpc.statd
tcp 0 0 fedora1.makeitwork.l:domain *:* LISTEN 12038/named
tcp 0 0 localhost.localdomai:domain *:* LISTEN 12038/named
tcp 0 0 localhost.localdomain:ipp *:* LISTEN 2602/cupsd
tcp 0 0 localhost.localdomain:rndc *:* LISTEN 12038/named
tcp 0 0 localhost.localdomain:2207 *:* LISTEN 2590/python
tcp 0 0 *:imaps *:* LISTEN 2759/dovecot
tcp 0 0 *op3s *:* LISTEN 2759/dovecot
tcp 0 0 *op3 *:* LISTEN 2759/dovecot
tcp 0 0 *:imap *:* LISTEN 2759/dovecot
tcp 0 0 *:http *:* LISTEN 2801/httpd
tcp 0 0 *:ftp *:* LISTEN 2777/proftpd: (acce
tcp 0 0 *:ssh *:* LISTEN 2616/sshd
tcp 0 0 ::1:ipp *:* LISTEN 2602/cupsd
tcp 0 0 ::1:rndc *:* LISTEN 12038/named
tcp 0 0 *:https *:* LISTEN 2801/httpd
[root@fedora1 named]#

-s
Reply With Quote
  #10  
Old 31st July 2008, 18:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
 
Default

What's in /etc/hosts?
What's the output of
Code:
hostname -f
?
What hostnames are listed in the Host column of the mysql.user table?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

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
ISPConfig Installation error linuxuser1 Installation/Configuration 4 26th February 2008 06:38
Postfix problem: lost connection after CONNECT from unknown fernando_torrez Server Operation 5 30th November 2007 14:17
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! qvindesland Installation/Configuration 22 21st May 2007 16:05
Any way to change a lost admin password yurtboy1 Installation/Configuration 3 19th May 2007 14:39
Unlimited disk space reseller Davide General 4 27th July 2006 13:44


All times are GMT +2. The time now is 00:49.


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