HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   ISPConfig migration to new server. (http://www.howtoforge.com/forums/showthread.php?t=21248)

cambo 12th March 2008 07:01

ISPConfig migration to new server.
 
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?

Hans 12th March 2008 07:42

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

cambo 13th March 2008 08:00

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

till 13th March 2008 10:18

Have a look in the error log of the wesbite.

cambo 14th March 2008 00:15

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

falko 14th March 2008 13:15

Can you go to the directory where Vhosts_ispconfig.conf is located and check if there are other files there that begin with Vhosts_ispconfig.conf and end with a date? If so, try this: http://www.howtoforge.com/forums/showthread.php?t=7719

cambo 17th March 2008 00:35

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

till 17th March 2008 09:08

Quote:

I checked and there is only 1 Vhosts... file. I tried manually editing again and same thing overwritten.
Thats fine and the normal behavoiur. The Vhost_ispconfig.conf file is not for manual editing.

Quote:

Does having the current webserver running on the same subnet affect the new installation. ie is it somehow syncing or something?
No.

Quote:

Also, where do you manage the individual site databases now? I can't find it on any tab in the ISP Manager ??
Thanks
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.

cambo 19th March 2008 00:05

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.

till 19th March 2008 10:29

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.


All times are GMT +2. The time now is 22:42.

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