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.
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
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?
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.
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
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
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?