View Full Version : [ubuntu] Upgrading Webserver
June 23rd, 2009, 08:43 PM
Ok, Im trying to upgrade ubuntu server. However, I can't lose alot of configuration. Its a webserver with about 30 websites and SQL database on it.
I've tried doing the upgrade but, that totally defuncted my machine. Lucky enough, Diskology makes a nice Hardware based cloner, and lucky enough, Im paranoid. So I have a duplicate drive that is identical.
Now, I don't think the upgrade is going to work. Is it (question) possible to do a new install, and move the config files and database and files over to the new machine.. and it kick off? Soft of hoping all the config files are stored locally, and not much it could be simple as duplicating IP info, and copying 5-10 folders across. Apache2, mysql, webmin... thats about it.
June 23rd, 2009, 09:57 PM
In principle it should work to just reinstall Ubuntu, then copy in all of the files that are specific to your situation. You would probably need to sort out some permissions issues after doing that, but it wouldn't be that bad.
To estimate how much work would be involved in rebuilding the server like this, however, it would help if you provided more information. For example, how are the websites stored? Does each site have a directory in /home/*/public_html? How is the machine partitioned? If you have /home on a dedicated partition, that would make things easier.
June 23rd, 2009, 10:24 PM
The websites are stored in
Its one partition, 160gb hard drive. The partitions are:
5gb extended (5gb linux-swap inside extended)
I dont know enough about MySQL to be able t begin to understand where and what, same for webmin partially.
June 23rd, 2009, 10:41 PM
If the websites are just in two directories, they shouldn't be hard to move over.
webmin may not actually require you to move any new files over at all, but I'm not sure. You can backup /etc/webmin just in case.
I'm not an expert on MySQL, but I believe all the configuration files are in /etc/mysql, while the databases themselves are in /var/lib/mysql.
In principle, you should only need to copy over the stuff mentioned above, as well as /etc/apache2 and /etc/network/interfaces, and things should work.
If you have an extra machine available, or just a virtual machine, I'd go ahead and try setting this up to see how it works there before rebuilding the real server.
June 24th, 2009, 01:05 AM
Well, what I meant to mean was, the websites are in /home/www directory. There are about 30 directories in there. in individual folders. For example only:
each site has a folder like that.
June 24th, 2009, 10:23 AM
Well, what I meant to mean was, the websites are in /home/www directory. There are about 30 directories in there. in individual folders.
You should still be able to work with that. Just copy over /home/www/*, adjust permissions as necessary, make sure Apache knows where the website files are, and it should be alright.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.