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

2013-02-12 Thread Rajeev Prasad
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.ne...@yahoo.com
To: Rajeev Prasad rp.ne...@yahoo.com; Tyler J. Wagner ty...@tolaris.com; 
Nagy Gergely nagy.gerg...@gnanet.net 
Cc: ubuntuserver ubuntu-server@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.ne...@yahoo.com
To: Tyler J. Wagner ty...@tolaris.com; Nagy Gergely nagy.gerg...@gnanet.net 
Cc: ubuntuserver ubuntu-server@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 ty...@tolaris.com
To: Nagy Gergely nagy.gerg...@gnanet.net 
Cc: Rajeev Prasad rp.ne...@yahoo.com; ubuntuserver 
ubuntu-server

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

2013-02-01 Thread Rajeev Prasad
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.ne...@yahoo.com
To: Tyler J. Wagner ty...@tolaris.com; Nagy Gergely nagy.gerg...@gnanet.net 
Cc: ubuntuserver ubuntu-server@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 ty...@tolaris.com
To: Nagy Gergely nagy.gerg...@gnanet.net 
Cc: Rajeev Prasad rp.ne...@yahoo.com; ubuntuserver 
ubuntu-server@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@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

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

2013-01-29 Thread Nagy Gergely
Hi

IMPORTANT: mysql has to be dumped / imported do not copy
the /var/lib/mysql folder

-- 

Mit freundlichen Grüßen / Kind regards / Sincères salutations /
Üdvözlettel

Nagy Gergely

---
E-mail: nagy.gerg...@gnanet.net
Jabber: nagy.gerg...@gmail.com
Website: www.gnanet.net



2013. 01. 28, hétfő keltezéssel 16.25-kor Rajeev Prasad ezt írta:
 Friends,
 
 
 I have a huge website running on LAMPerl  ubuntu desktop 10.10 32bit
 
 
 
 I have to now move it over to ubuntu server 12.04 LTS 64bit.
 
 
 
 
 Are there any guidelines to make this as smooth as possible?
 
 
 
 
 thank you.
 Rajeev
 
 


smime.p7s
Description: S/MIME cryptographic signature
-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

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

2013-01-29 Thread Rajeev Prasad
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 ty...@tolaris.com
To: Nagy Gergely nagy.gerg...@gnanet.net 
Cc: Rajeev Prasad rp.ne...@yahoo.com; ubuntuserver 
ubuntu-server@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@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

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

2013-01-29 Thread Tyler J. Wagner
On 2013-01-29 18:11, Rajeev Prasad wrote:
 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.

I generally use rsync for that, along with an excludes file
(--excludes-from). Attached is a template.

Tyler

-- 
The universe is probably littered with the one-planet graves of cultures
which made the sensible economic decision that there's no good reason
to go into space – each discovered, studied, and remembered by the ones
who made the irrational decision.
   -- Randal Munroe
- /dev/
- /lib/modules/*/volatile/
- /media/
- /mnt/
- /proc/
- /run/
- /sys/
- /tmp/
- /var/lock/
- /var/run/
- /var/tmp/
- /var/cache/apt/archives/
- /etc/udev/rules.d/70-persistent-net.rules
- /boot/
- /etc/fstab
- /etc/mtab
- /root/screenlog.*
- /home/
-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

how to move my website from ubuntu 10.10 to 12.04 LTS?

2013-01-28 Thread Rajeev Prasad
Friends,

I have a huge website running on LAMPerl  ubuntu desktop 10.10 32bit


I have to now move it over to ubuntu server 12.04 LTS 64bit.


Are there any guidelines to make this as smooth as possible?


thank you.
Rajeev-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam