ISPConfig migration to new server.

Discussion in 'Installation/Configuration' started by cambo, Mar 12, 2008.

  1. cambo

    cambo New Member

    Hi. I have found some threads on migrating ISPConfig to a new server (including Falko's great post) but I can't quite work out a clear answer to this question.

    Should I upgrade the ISPConfig installation on the current server to the current version of ISPConfig and then transfer everything, or should I install the version I have installed on the current server (which I still have archived) on the new server, transfer everything, and then upgrade it?

    The current server is live and running over 30 websites, databases, email. I am using a separate server for DNS.

    The old server is Perfect Mandriva 2007+ ISPConfig 2.2.6, the new server is Perfect Mandriva 2008. (I haven't installed ISPConfig on it yet.)
    I am running Dovecot for IMAP.

    Thanks
    Cambo

    ps. Is there a how-to for migrating ISPConfig?
     
  2. Hans

    Hans Moderator

    There is no howto available to move ISPConfig to another server, but this thread will help you.
     
  3. cambo

    cambo New Member

    Jumped right in.

    Ok, I decided to go ahead with Falko's instructions on the above thread.
    Everything seemd to go way to well, as yes it was too good to be true.

    When I try to go to a site www.tuxtop.com I get this:

    Code:
    Forbidden
    You don't have permission to access / on this server.
    
    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
    Any clues as to where to start looking?

    Thanks
    Cambo
     
  4. till

    till Super Moderator

    Have a look in the error log of the wesbite.
     
  5. cambo

    cambo New Member

    Ok. It seems that when I edit VHosts_ispconfig.conf manually and change the IP's to the new one, they are being overwritten again with the old IP's. I don't understand how that is happening, but here is some logs:

    Error Log

    Code:
    
    [Fri Mar 14 04:23:20 2008] [warn] VirtualHost 192.168.0.230:80 overlaps with VirtualHost 192.168.0.230:80, the first has precedence, perhaps you need a NameVirtualHost directive
    [Fri Mar 14 04:23:20 2008] [warn] VirtualHost 192.168.0.230:80 overlaps with VirtualHost 192.168.0.230:80, the first has precedence, perhaps you need a NameVirtualHost directive
    [Fri Mar 14 04:23:21 2008] [notice] Digest: generating secret for digest authentication ...
    [Fri Mar 14 04:23:21 2008] [notice] Digest: done
    [Fri Mar 14 04:23:22 2008] [notice] Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) PHP/5.2.4 with Suhosin-Patch mod_ssl/2.2.6 OpenSSL/0.9.8e mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
    [Fri Mar 14 04:23:22 2008] [warn] long lost child came home! (pid 8707)
    [Fri Mar 14 05:07:04 2008] [error] [client 192.168.0.210] File does not exist: /var/www/sharedip/squid-internal-dynamic
    [Fri Mar 14 06:25:45 2008] [error] [client 192.168.0.210] File does not exist: /var/www/sharedip/squid-internal-dynamic
    [Fri Mar 14 07:32:56 2008] [error] [client 192.168.0.210] File does not exist: /var/www/sharedip/squid-internal-dynamic
    [Fri Mar 14 09:00:23 2008] [notice] caught SIGTERM, shutting down
    [Fri Mar 14 10:02:29 2008] [notice] core dump file size limit raised to 4294967295 bytes
    [Fri Mar 14 10:02:30 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Fri Mar 14 10:02:33 2008] [notice] Digest: generating secret for digest authentication ...
    [Fri Mar 14 10:02:33 2008] [notice] Digest: done
    [Fri Mar 14 10:02:34 2008] [notice] Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) PHP/5.2.4 with Suhosin-Patch mod_ssl/2.2.6 OpenSSL/0.9.8e mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
    [Fri Mar 14 10:02:40 2008] [notice] caught SIGTERM, shutting down
    [Fri Mar 14 10:02:41 2008] [notice] core dump file size limit raised to 4294967295 bytes
    [Fri Mar 14 10:02:42 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Fri Mar 14 10:02:42 2008] [notice] Digest: generating secret for digest authentication ...
    [Fri Mar 14 10:02:42 2008] [notice] Digest: done
    [Fri Mar 14 10:02:43 2008] [notice] Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) PHP/5.2.4 with Suhosin-Patch mod_ssl/2.2.6 OpenSSL/0.9.8e mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
    Access Log

    Code:
    127.0.0.1 - - [13/Mar/2008:18:05:27 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [13/Mar/2008:18:05:27 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [13/Mar/2008:18:05:27 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [13/Mar/2008:18:05:27 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [13/Mar/2008:18:05:27 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [13/Mar/2008:18:05:27 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [13/Mar/2008:18:05:27 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [13/Mar/2008:18:05:27 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    192.168.0.210 - - [13/Mar/2008:18:43:48 +1100] "GET /squid-internal-dynamic/netdb HTTP/1.0" 404 1010 "-" "-"
    192.168.0.210 - - [13/Mar/2008:20:01:02 +1100] "GET /squid-internal-dynamic/netdb HTTP/1.0" 404 1010 "-" "-"
    192.168.0.210 - - [13/Mar/2008:20:41:43 +1100] "GET /squid-internal-dynamic/netdb HTTP/1.0" 404 1010 "-" "-"
    192.168.0.210 - - [13/Mar/2008:21:58:39 +1100] "GET /squid-internal-dynamic/netdb HTTP/1.0" 404 1010 "-" "-"
    192.168.0.210 - - [13/Mar/2008:23:01:29 +1100] "GET /squid-internal-dynamic/netdb HTTP/1.0" 404 1010 "-" "-"
    192.168.0.210 - - [14/Mar/2008:00:12:41 +1100] "GET /squid-internal-dynamic/netdb HTTP/1.0" 404 1010 "-" "-"
    192.168.0.210 - - [14/Mar/2008:00:13:43 +1100] "GET /robots.txt HTTP/1.0" 403 - "-" "Gigabot/3.0 (http://www.gigablast.com/spider.html)"
    192.168.0.210 - - [14/Mar/2008:00:13:43 +1100] "GET / HTTP/1.0" 403 - "-" "Gigabot/3.0 (http://www.gigablast.com/spider.html)"
    192.168.0.210 - - [14/Mar/2008:01:19:55 +1100] "GET /squid-internal-dynamic/netdb HTTP/1.0" 404 1010 "-" "-"
    192.168.0.210 - - [14/Mar/2008:02:04:56 +1100] "GET /squid-internal-dynamic/netdb HTTP/1.0" 404 1010 "-" "-"
    192.168.0.210 - - [14/Mar/2008:03:05:16 +1100] "GET /squid-internal-dynamic/netdb HTTP/1.0" 404 1010 "-" "-"
    192.168.0.210 - - [14/Mar/2008:03:59:00 +1100] "GET /phpAds/ HTTP/1.0" 403 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"
    192.168.0.210 - - [14/Mar/2008:04:20:26 +1100] "GET /squid-internal-dynamic/netdb HTTP/1.0" 404 1010 "-" "-"
    127.0.0.1 - - [14/Mar/2008:04:23:19 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [14/Mar/2008:04:23:19 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [14/Mar/2008:04:23:19 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [14/Mar/2008:04:23:19 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [14/Mar/2008:04:23:19 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [14/Mar/2008:04:23:19 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [14/Mar/2008:04:23:19 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    127.0.0.1 - - [14/Mar/2008:04:23:19 +1100] "GET / HTTP/1.0" 200 44 "-" "Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0) (internal dummy connection)"
    192.168.0.210 - - [14/Mar/2008:05:07:04 +1100] "GET /squid-internal-dynamic/netdb HTTP/1.0" 404 1010 "-" "-"
    192.168.0.210 - - [14/Mar/2008:06:25:45 +1100] "GET /squid-internal-dynamic/netdb HTTP/1.0" 404 1010 "-" "-"
    192.168.0.210 - - [14/Mar/2008:07:32:56 +1100] "GET /squid-internal-dynamic/netdb HTTP/1.0" 404 1010 "-" "-"
    192.168.0.210 - - [14/Mar/2008:07:38:19 +1100] "GET / HTTP/1.0" 403 - "http://www.howtoforge.com/forums/showthread.php?p=113076" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080129 Iceweasel/2.0.0.12 (Debian-2.0.0.12-0etch1)"
    192.168.0.210 - - [14/Mar/2008:07:38:20 +1100] "GET /favicon.ico HTTP/1.0" 403 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080129 Iceweasel/2.0.0.12 (Debian-2.0.0.12-0etch1)"
    
    All request go through a Squid accelerator (reverse proxy)
    The live server is still running on the network at 192.168.0.230 and the new server is 192.168.0.240


    Thanks
    Cambo
     
  6. falko

    falko Super Moderator

  7. cambo

    cambo New Member

    I checked and there is only 1 Vhosts... file. I tried manually editing again and same thing overwritten.
    Does having the current webserver running on the same subnet affect the new installation. ie is it somehow syncing or something?
    Also, where do you manage the individual site databases now? I can't find it on any tab in the ISP Manager ??
    Thanks
     
  8. till

    till Super Moderator

    Thats fine and the normal behavoiur. The Vhost_ispconfig.conf file is not for manual editing.

    No.

    It's in the same place then before, on the options tab of the website. If you dont see it there, make sure that you enabled databases for the reseller and in the website settings.
     
  9. cambo

    cambo New Member

    Hi Till
    Thanks.

    >make sure that you enabled databases for the reseller
    I hadn't created a reseller, so that was why it wasn't coming up.

    I dont understand where the Vhosts file is getting it's setting from. You said it is automatically overwritten. When I look in ISPConfig setting the new IP is there but the file gets written over with the old IP settings??

    Anyway, I decided to start again and test a few scenarios, such as installing the exact same version of Mandriva and ISPConfig that was on the old server. I got the same result. Not working. Wierd.

    End Result - I have learnt a lot more about the systems and how they work. I decided to do a clean install with the latest versions of Mandriva and ISPConfig. Installation still had that problem that the doctype table was corrupted in a fresh install. I fixed that by dumping the doctype table from my current ISPConfig system (Ver 2.2.6) and imported that over the new one(Ver. 2.2.21). Everything seems to work OK with that.

    I am now going to create each web again in the ISPConfig and then transfer each webs files and Db's over one at at time. It is going to take a bit longer (I have 35 webs with users, ftp,email,etc) but I want to make sure I have a system that is going to run for the next 3 years without any problems. My current ISPConfig system has been running for 2 years without a drama since its intial setup.

    While I didn't actually resolve why I couldn't achieve a successful transfer from the old system to the new system using Falko's instructions (which I followed to the letter as I know Falko knows a lot more than I do), I will consider this thread closed.

    I hope some-one else can get some benefit from it.

    Thanks for everyone's help.
     
  10. till

    till Super Moderator

    The vhosts file is written from the ISPConfig database settings. You will have to select the new IP in the site settings of the website and then click on save.
     
  11. IzFazt

    IzFazt New Member

  12. reason8

    reason8 New Member

    Hello and good day.

    I have installed ISPConfig 3 with Nginx per The Perfect Server - Ubuntu 13.04 (nginx, BIND, Dovecot, ISPConfig 3) at http://www.howtoforge.com/perfect-server-ubuntu-13.04-nginx-bind-dovecot-ispconfig-3 and it worked great!

    I need to move ISPConfig3 (Apache) over to the new Nginx Server.

    Is the process the same as you have stated or is there something more or differently that I need to do?

    I have backups of everything (as I have a cron which does this nightly).
     

Share This Page