Sunday, October 19, 2014

If you followed the previous blogs, this ends up being a fresh start.  The Wordpress database on horkbook (the mostly dev related site) ended up getting lost due to my fat fingered mistypes and I managed to lose preimesberger.com from just not keeping up with my email.  It was grabbed by some speculator and plastered with pictures of my talented cousin Ryan.   I'm assuming Ryan is as cheap as I am so I wish whoever it is all the luck in the world selling that.  :-)

I don't need no damn domain with a suit like this.

I don't post enough for two blogs anyway, so I'm starting over here.  I'm going to hope that Google won't forget to pay domain bills like me so I should be good. :)

Inspired by all of this I'm taking the time to move all my various sites to digitalocean (that's not an affiliate link - I'm not so famous :) ).  Hostgator is Houston-based and awesome - but they don't allow me to run NodeJS or Mongo or any of the things I need.  I feel a bit bad moving elsewhere - but digitalocean has a really responsive data center and I end up saving a few bucks a month and I don't have to put with with mysql and php anymore.

Moving is actually pretty easy - just create a droplet of your choosing (I'm using the cheapest - surprise).  Under DNS - add all your domains that you are moving.  Pick the DNS entry on the set up:


Then entry the domain info and point to the droplet - this makes the digitalocean servers resolve the domain correctly:


Once you save - it seems to take maybe 30 minutes to replicate locally, so then point the records from where you bought the domain.  On Namecheap - it's My Account -> Manage Domains -> Modify Domain and mess with the domain name server setup and change them to digitalocean:


This can take a long time (maybe a day - although usually it takes a couple of hours).

Install Apache on the droplet and create virtual sites in /etc/apache2/sites-available.  Just clone 000-default.conf and update:

<VirtualHost *:80>
        ServerAdmin lpreimesberger@gmail.com
        ServerName ilostpreimesberger.com
        DocumentRoot /var/www/html/ilosepreimesberger
        ErrorLog ${APACHE_LOG_DIR}/ilostpreimesbergererror.log
        CustomLog ${APACHE_LOG_DIR}/ilostpreimesbergeraccess.log combined
</VirtualHost>

Then create a link under ../sites-enabled pointing to the sites-available file and you're done.  Drop the needed files into the new documentroot and transfer ownership to nobody and restart apache.




No comments:

Post a Comment