[SOLVED] Re: how to move my website from ubuntu 10.10 to 12.04 LTS?

Rajeev Prasad rp.neuli at yahoo.com
Tue Feb 12 16:57:10 UTC 2013


It was solved earlier. I had to specify the network to make it work:

iface eth0 inet static
    address    xx.xx.xx.xx
    netmask 255.255.255.0
    network xx.xx.xx.0
    broadcast xx.xx.xx.255
    gateway xx.xx.xx.3
    dns-nameservers xx.xx.xx.xx  xx.xx.xx.xx
    dns-search abc.yz.net
    dns-domain abc.yz.net

Also here is a short list for migration to new box:
1. LAMP,
        build all accounts you need....
        build all groups you need...
2. phpMyAdmin
3. get dump from old mysql:  mysqldump --user=root --password=xxx --databases xx > mysql.xx.dump
4. import the dump:      mysql --verbose --user=root --password=xxx  < mysql.xx.dump
5. update PROXY for everything:
        add to /etc/environment   (need restart)
            ftp_proxy=http://<myproxy>:8080
            http_proxy=http://<myproxy>:8080
            https_proxy=http://<myproxy>:8080

6. Install NTP and set TimeZone to Etc/UTC:
        Timezone:    dpkg-reconfigure tzdata
        NTP:        apt-get install ntp
            edit /etc/ntp.conf         add your servers.
            add daily cron job        /etc/cron.daily/ntpdate; chmod 755
            stop ntp service    service ntp stop
            manually sync time:    ntpdate <time_server>
7. Fix apt-get proxy: edit:
        /etc/apt/apt.conf
8. watchout for ownership of moved over, website data
9. Enable unattended upgrades for all security patches and Apps:
            /etc/apt/apt.conf.d/50unattended-upgrades
            uncomment Apps update line....
10. Add a repo/PPA:
            adding sun-java-6    sudo add-apt-repository ppa:sun-java-community-team/sun-java6
            adding sun-java-7    http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
11. disable IPv6:
            vi /etc/sysctl.conf   (add 3 lines...)
            sysctl -p
12. DHCP to fixed IP:
            vi /etc/network/interfaces
13. update Repo /PPA list: (source file):    /etc/apt/sources.list
    All details here:    https://help.ubuntu.com/community/AptGet/Howto
    update available pkg list:                 sudo apt-get update
    now upgrade the 'installed' packages:    sudo apt-get upgrade
    ___OR___ upgrd and remove old versions:    sudo apt-get dist-upgrade
...


________________________________
 From: Rajeev Prasad <rp.neuli at yahoo.com>
To: Rajeev Prasad <rp.neuli at yahoo.com>; Tyler J. Wagner <tyler at tolaris.com>; Nagy Gergely <nagy.gergely at gnanet.net> 
Cc: ubuntuserver <ubuntu-server at lists.ubuntu.com> 
Sent: Friday, February 1, 2013 11:47 AM
Subject: Re: how to move my website from ubuntu 10.10 to 12.04 LTS?
 

ok. so I tried. I moved over all www data, personal data and matched the config (was long and tricky)

so I want to test it now, so I shut down original server at midnight and start the new one with the IP set to static (same as old server). The box comes up fine, I can ping the gateway, but I can not ping anything after it!


from old server:
eth0      Link encap:Ethernet  HWaddr 00:0c:29:48:c0:18  
          inet addr:xxx.xx.xxx.17  Bcast:xxx.xx.xxx.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:161679 errors:0 dropped:0 overruns:0
 frame:0
          TX packets:41778 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:56107739 (56.1 MB)  TX bytes:4452263 (4.4 MB)
          Interrupt:19 Base address:0x2024 


my settings on new box (which do not work, when i bring down old box and start new one.)


/etc/network$ cat interfaces.static
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
    address    xxx.xx.xxx.17
    netmask 255.255.255.0
    broadcast xxx.xx.xxx.255
    gateway xxx.xx.xxx.3
    dns-nameservers <dns1> <dns2>
    dns-search <my.dns.srch.str.here.>
    dns-domain <my.dns.srch.str.here.>



xxx.xx.xxx = Class C subnet with 254 hosts.



________________________________
 From: Rajeev Prasad <rp.neuli at yahoo.com>
To: Tyler J. Wagner <tyler at tolaris.com>; Nagy Gergely <nagy.gergely at gnanet.net> 
Cc: ubuntuserver <ubuntu-server at lists.ubuntu.com> 
Sent: Tuesday, January 29, 2013 12:11 PM
Subject: Re: how to move my website from ubuntu 10.10 to 12.04 LTS?
 

Tyler,Nagy,

thx much for valuable input.

These are two different servers. Website is production, but can take downtime of about 1 day (weekend).

I was planning to make a tarball from old server and extract on new one, and as the last step, move the permanent IP.

But I guess MySQL has to potential to be tricky. I will try the route of dump to file and build back from that dump.

I will get back with results.

rgds.
Rajeev


________________________________
 From: Tyler J. Wagner <tyler at tolaris.com>
To: Nagy Gergely <nagy.gergely at gnanet.net> 
Cc: Rajeev Prasad <rp.neuli at yahoo.com>; ubuntuserver <ubuntu-server at lists.ubuntu.com> 
Sent: Tuesday, January 29, 2013 6:01 AM
Subject: Re: how to move my website from ubuntu 10.10 to 12.04 LTS?
 
On 2013-01-29 10:59, Nagy Gergely wrote:
> He mentioned 32bit to 64bit move with mysql, i had my bad experience
> with this.

I'm not aware of any differences in MySQL file storage based on
architecture. I did learn about rrdtool's architecture-dependant files the
hard way, though.

It never hurts to make and restore from mysql dumps. Just make sure you get
the "mysql" database as well, as this includes your permissions.

Regards,
Tyler

-- 
"... I've never seen the Icarus story as a lesson about the limitations of
humans. I see it as a lesson about the limitations of wax as an adhesive."
   -- Randall Munroe, "XKCD What IF?: Interplanetary Cessna"



-- 
ubuntu-server mailing list
ubuntu-server at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20130212/e8e7354b/attachment.html>


More information about the ubuntu-server mailing list