Docker Course, Ubuntu, WordPress, Angular.js, Notes, Rich Hickey, Datomic…

Updates, updates, updates…

Docker Course @ Pluralsight

I added a new course on Docker to my Pluralsight list of courses today. This joins my one other course on Riak, which I’m aiming to have more added to that list in the future! Check those out and let me know what you think, how I could improve, what I did right and what you learned (or already knew). I’d greatly appreciate it!

Rich Hickey, Datomic, Clojure, Angular.js and Notes

I started a section on the blog here for notes on topics I’m studying. The first two I’ve hit on are Angular.js and Rich Hickey, Clojure and Hammock Driven Development. I’ll be adding to these over time and will likely report whenever I add good chunks of info or helpful tutorials, how-to docs or just whatever I deem worth mentioning. Simply put I won’t broadcast it much, unless I add some real goodies that are worth it.  😉

Ubuntu & WordPress

I needed a kind of WordPress Workstation to hack around testing some WordPress so I put together quick notes on the fastest and cleanest way to setup a WordPress VM from scratch.

Until later, happy coding, have a metal \m/ \m/ Friday!

WordPress on Amazon Web Services (AWS) Linux EC2 Micro Instance, For Free

I’ve been wanting to get a write up done for WordPress on AWS, the fact that it is free for a year, since they’ve released the free-tier many months ago. Well I finally got around to it, however it isn’t a write up. I went ahead and put the work in to produce a video of the steps for setup & configuration. Enjoy.

The commands to install php, mysql, httpd (apache), and manipulate the config files are included below for copy and paste needs.

Create a Linux Instance on AWS – create & assign an IP Address

Login with ‘ec2-user’

sudo -i
lsof -i

yum -y install httpd

service httpd start

yum -y install php mysql
yum install mysql-server

rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum install phpmyadmin

vi /etc/httpd/conf.d/phpmyadmin.conf

Hit insert hey to make changes to the conf file.

# Web application to manage MySQL

# Order Deny,Allow
# Deny from all
Allow from all

Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin

service httpd restart
service mysqld start
/usr/bin/mysqladmin -u root password ‘somepassword’
vi /etc/httpd/conf.d/phpmyadmin.conf
vi /usr/share/phpmyadmin/

[…] /* Authentication type */
$cfg[‘Servers’][$i][‘auth_type’] = ‘http’;

Watch the video for the WordPress Database creation in mysql w/ phpmyadmin.

tar -xzvf latest.tar.gz -C /var/www/html/
cp -avr /var/www/html/wordpress/* /var/www/html/
rm -rf /var/www/html/wordpress/

cd /etc/httpd/conf
vi httpd.conf
Find the user here… it should be ‘apache’

cp /var/www/html/wp-config-sample.php /var/www/html/wp-config.php
vi /var/www/html/wp-config.php

…Add the database settings.

chown -R apache /var/www/html
chmod -R 755 /var/www/html

AWS, WordPress, Windows Azure, Clouds, and More…

I’ve been looking into getting a blog, specifically WordPress, into the cloud.  Of course the first two I take a look at are Windows Azure and AWS.  This is what I’ve found so far.

Windows Azure

Windows Azure is easy enough, sort of, but distinctly limits the control and abilities of the actual blog.  This is primarily because of the way one has to host a blog, and the software just isn’t really built to take advantage of the platform specifically.  In other words, WordPress isn’t really built around horizontal scalability.  Also one has to run WordPress in a CGI Instance, not exactly ideal either.  It works, and really does work well, but there are just options that aren’t available in this situation.

The other issue is that a single running CGI Role is going to run you around $100 bucks a month.  I’ve checked and if you push off the entries into a Windows Azure Table Storage area, that’ll easily break past that $100 bucks into the $110-200 range or higher.  It all really depends on how many transactions and views your site is getting.  If you really necessitate Table Storage vs. a traditional relational data store for your blog, I seriously doubt a couple hundred bucks will be an issue.  In all reality, if you’re using the Table Storage you most likely should be in the traffic range that would run you about $1000 bucks a month or more, in each geographic area.

Amazon Web Services

AWS is however a different beast altogether.  First, running an EC2 instance you can get everything running that you need.  The data store for the entries and also gain access to a level that allows you to add plugins and all the other features of WordPress.

The pricing on Amazon gets a lot better too.  One can get the reserved instance for $350 bucks a year (or $227.50 for Linux/UNIX).  That enables one to install WordPress with total control for about $30 bucks a month.  Considering the redundancy, uptime, and general availability and performance of the cloud that is a really decent price.  Even if one gets some heavy bandwidth usage, the cost for that shouldn’t go above a few dollars.


At this time, if you want some cloud computing power behind your blog, AWS is the clear winner in price and performance!

A few reference links: