how to move my website from ubuntu 10.10 to 12.04 LTS?
Tyler J. Wagner
tyler at tolaris.com
Tue Jan 29 10:42:14 UTC 2013
On 2013-01-29 00:25, Rajeev Prasad wrote:
> 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.
Make a dump of your current package list first:
dpkg -l > dpkg.maverick
You may want to refer to it later for those "Oh crap, what package did I
forget?! moments.
In particular, make a list of all packages related to apache2, mysql, perl.
Here's a one-liner you can later paste after "apt-get install":
dpkg -l \*mysql\* \*apache\* \*perl\* | grep ^i | cut -f 3 -d ' ' | tr '\n'
' ' ; echo
Copy /var/www, of course. I'm not sure why Nagy advised you not to copy
/var/lib/mysql; that should work just fine. When mysqld starts it will
upgrade them. But just in case, before upgrading, use mysqldump to dump all
databases.
Do not upgrade via do-release-upgrade or dist-upgrade. Reinstall from
scratch. If you were using 10.10 64-bit, this would be fine, but changing
architectures requires a reinstall. I've upgraded from maverick through
natty and oneric to precise on one LAMP server without incident using
do-release-upgrade.
Finally, do take a complete backup. Something as simple as the following
will save you a lot of trouble later:
rsync -av /bin /boot /etc /home /initrd* /lib* /opt /root /sbin /srv /usr
/var /vmlinu* /media/mounted_usb_disk
Regards,
Tyler
--
"Any advert in a public space that gives you no choice whether you see it
or not is yours. It’s yours to take, re-arrange and re-use. You can do
whatever you like with it. Asking for permission is like asking to keep
a rock someone just threw at your head. You owe the companies nothing."
-- Banksy on Advertising
More information about the ubuntu-server
mailing list