DigitaldogmaMain Page | About | Help | FAQ | Special pages | Log in

VMware Web Server

Well, as everything in life, nothing works out as you expect, but in this case it worked out better. I ended up moving web and mail over to a VPS server through my work. This has been working out great, and allowed me to setup exim as well as spamassassin.

Contents

Debian Install

Went pretty much like every install I have done before, except formating was super quick :). My web server is in a remote location, so I wont be installing this onto physcial hardware for at least a month when I am moved, and have room for the server. Therefore I can take my time to installed and configure things correctly. I had toyed with the idea of using SE Linux, the secure linux project from the NSA.

VMwave NIC supported is by the pcnet32 driver.

Migration of Data and Configuration

My plan is to configure as much of the server as possible while it's running on the virtual machine to make the transition as smooth as possible. This also gives me time to correct any errors/kludges I had made before.

Apache

Copy all config files from /usr/local/apache/config to new config dir (/etc/httpd/config?). All module installation will be handeled by apt-get. What about the log rotation scripts? I should probaly use whatever log rotation stuff debian uses, but I like have the apache logs parsed based on virtualhost, and entered into a database.

Wordpress

Should be as easy as copying the directory, added the <Location> directive in the apache config, and copying the mysql database. The database will need to be updated again, just before the move to ensure I have the newest version.

Wiki

Pretty much the same as Wordpress, but need to add the virtual host in apache as well.

MRTG

The configuration files for this will be greatly modified, as the new server will be in an entirely different environment than before. I should proably just configure the new installation from scratch, using the old config as a guide.

Email (Qmail or other?)

I first need to decide on which MTA to use. I like Qmail, but I don't believe there are debian packages avaiable, and I'd like to keep things as standard as possible. Postfix may be a good choice, but I need to invistigate this more.

MySQL

Need to copy the mysql database to mantain user accounts. In order to do this I used the following command to copy all of the tables to the new machine:

ssh host "/usr/bin/mysqldump -u root --password=password -a -A | bzip2 -9" >mysqldump.bz2

This command runs mysqldump on the remote machine, pipes the output through bzip2, then redirects it to a local file.

I can then use the command:

bzcat mysqldump.bz2 | mysql -u root

to create the tables in the new database. Ssh is a beatuiful thing :).

This worked great for copying the data, but it seems I will still have to create the user accounts as they didn't transferr.

Jabber

Is there a debian package for this?

New services to be installed

Being as this is a new install, and the environment will be so different, there are a few services that will be needed that weren't previously installed.

PostgreSQL

I feel most comfortable with MySQL, but I'm always looking to branch out. I want to get more experience with PostgreSQL. It proably wont be used much at first, but I want it installed.

ProFTPD

Previously there was a seperate FTP server, but in my new place it will have to be installed on the web server. I've used ProFTPD before, and have had great sucess with it.

My plan is to have the directory structure live in /home/ftp with loopback mounts to /data/mp3, /data/video, etc. I am considering useing the SQL authentaction module, it could make it easier to create a webform to allow users to change their passwords.

This is all setup, except the loopback mounts which can't be done untill it's installed on the new server, with the data drives. By default all users are chrooted to their home directory, except for users of the ftpusers group, they are chrooted in /home/ftp.

Retrieved from "http://www.digitaldogma.org/index.php/VMware_Web_Server"

This page has been accessed 1,023 times. This page was last modified 01:15, 10 December 2005.


Browse
Main Page
Life Events
Tech Stuff
Photo Gallery
Current Resume
MP3 Database
Recent changes
Random page
Donations
Edit
View source
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
Bug reports
More...

Valid XHTML 1.0 Transitional

Viewable With Any Browser

Powered by MediaWiki