Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

85 lines (64 sloc) 3.08 kB
Migration
U change dns to point to urth w/ down for maintenance page
old IP - 166.70.188.52
O shut down apaches on old system
O shut down mailman
O mysqldump -u root -e -c RegVeg > rv.sql
oo remove sessions table data from dump
O sudo chmod go+r -R /var/www/images/00/
O tar -czf entry-images.tar.gz /var/www/images/00
O tar -czf skin-images.tar.gz /var/www/images/skin
O shut down mailman
O sudo tar -czf mailman.tar.gz /var/lib/mailman/lists /var/lib/mailman/archives
D copy rv.sql
entry-images.tar.gz
skin-images.tar.gz
/usr/local/share/vegguide/recaptcha-key
/etc/apache/ssl.crt/www.vegguide.org.crt
/etc/apache/ssl.key/www.vegguide.org.key
* Eric does his thing here ...
D transfer all old data to new system
N apt-get install build-essential libperl-dev perl-doc apache2 libapache2-mod-perl2 mysql-server libmysqlclient15-dev perlmagick mailman apache2-mpm-prefork libapache2-request-perl postfix subversion emacs21-nox libxml2-dev ca-certificates
N install File::Find::Rule
N Perl modules
nn perl Build.PL
nn ./Build modules
N mysql -u root -e 'create database RegVeg'
N mysql -u root RegVeg < rv.sql
N copy entry-images tarball to new system and put it in $CHECKOUT/data
N run installer
nn perl Build.PL
nn sudo ./Build install
N setup SSL cert & key on new box
nn
sudo cp www.vegguide.org.crt /etc/ssl/certs/; sudo chown root:root /etc/ssl/certs/www.vegguide.org.crt;
sudo cp www.vegguide.org.key /etc/ssl/private/; sudo chown root:ssl-cert /etc/ssl/private/www.vegguide.org.key;
sudo chmod 640 /etc/ssl/private/www.vegguide.org.key
N copy relevant skin images to destination
nn sudo cp athens.png uchicago.png veganworldorder.png /var/lib/vegguide/skin-images/
nn sudo chown www-data:www-data /var/lib/vegguide/skin-images/*
N move recaptcha-key to /etc/vegguide
sudo chown root:root /etc/vegguide/recaptcha-key; sudo chmod 640 /etc/vegguide/recaptcha-key
nn sudo a2ensite vegguide.org
nn sudo rm /etc/apache2/mods-enabled/*
nn enable required modules listed in config file
nnn
for i in alias auth_basic authn_file authz_default authz_groupfile authz_host authz_user cgi deflate env headers mime proxy proxy_http rewrite setenvif ssl status;
do sudo a2enmod $i;
done
nn sudo a2dismod perl
nn sudo a2dissite default
nn cd /etc/apache2-backend/sites-enabled; sudo ln -s ../sites-available/vegguide
nn
cd /etc/apache2-backend/mods-enabled; sudo ln -s ../mods-available/auth_basic.load;
sudo ln -s ../mods-available/authz_default.load; sudo ln -s ../mods-available/authz_host.load;
sudo ln -s ../mods-available/mime.conf; sudo ln -s ../mods-available/mime.load;
sudo ln -s ../mods-available/perl.load
N untar mailman tarball
N add aliases for mailman lists to Postfix
N start apaches & mailman on new system
See http://mail.python.org/pipermail/mailman-users/2007-January/055208.html for details on moving mailman - may need to use
Post-launch
* make sure community@vegguide.org & marketing@vegguide.org work
* review list of ungeocoded entries
* make sure email out works (forgot pw & watch list)
Jump to Line
Something went wrong with that request. Please try again.