Ubuntu Hardy Heron Slices

Latest Article:

Ubuntu Hardy - Installing MySQL (with Rails and PHP options)

Installing MySQL on Ubuntu Hardy is very simple using the 'aptitude' package manager.

This article will go through the install process and also look at what other packages are need for MySQL to integrate with Ruby on Rails and with a standard PHP install.

Ubuntu Hardy Heron LTS is a significant release - including support until 2013 and up to date packages, Ubuntu Hardy will be a popular and sturdy choice for many sysadmins.

These Ubuntu Hardy Heron tutorials take you from a 'barebones' Slice to a secure, up to date and quick server in very little time.

Ubuntu Hardy:

Ubuntu Hardy setup - page 1: So you have your new, or reinstalled, Slice with Ubuntu Hardy as the OS. Let's get on and secure it.

Ubuntu Hardy setup - page 2: From the previous article, we now have a secured Slice. Let's move on and update the Slice and install some essentials.

How to serve multiple domains: A commonly asked question is how to serve multiple domains. Let's take a look at the processes involved.


Ubuntu Hardy and MySQL:

MySQL with Rails and PHP options: Installing MySQL with Ruby on Rails and PHP integration is a simple process using the aptitude package manager.

Ubuntu Hardy and Ruby on Rails:

Ruby on Rails: Our Ubuntu Hardy Slice is now ready for a Ruby on Rails stack with subversion and Postfix support.


mod_rails installation: Passenger (mod_rails) is an exciting and very easy to use method of serving your Ruby on Rails application.

Using mod_rails to serve your application: Now passenger is installed, let's see how to serve our Ruby on Rails application.


Thin web server for Ruby: Thin is a well established method of serving Ruby on Rails applications. Let's look at the installation and configuration of thin.

Apache, Rails and Thin: Now we've installed and looked at configuring the thin web server, let's create an Apache vhost to proxy our requests.

Nginx, Rails and thin: Creating a virtual host to proxy requests to the thin web server is very simple. Even easier then using mongrels.


Mongrel and mongrel_cluster installation: Mongrels are one of the original ways of serving a Ruby on Rails application using a 3rd party server. Let's look at the installation.

Apache, Rails and mongrels: Now we have mongrels and mongrel_clusters installed, we can move onto create an Apache vhost for our rails application.

Nginx, Rails and mongrels: Creating a virtual host to proxy requests to our rails application is very simple. Using a mongrel cluster has never been easier.


Ubuntu Hardy and nginx:

Installing Nginx via aptitude: Using the 'aptitude' package manager to install Nginx is very simple as it takes care of any dependencies and init scripts.


Installing Nginx from source: Although Ubuntu Hardy includes Nginx in its repositories, compiling from source will ensure we have the very latest version.

Adding an Nginx init script: Installing Nginx from source does not create an init file. Let's rectify that so Nginx automatically starts on a reboot.

Nginx from source layout: Adjusting the default layout created when installing Nginx from source allows for much easier administration on the vhosts.


Nginx Configuration: Whether installed from the package manager or from source, we can take a look at the default nginx.conf file and see what can be improved.


Nginx Virtual Hosts #1: Now Nginx is installed and running we can configure it to host multiple sites by creating virtual hosts.

Nginx Virtual Host Settings: Continuing from the previous article, we can now look in detail at more of the settings available to us when creating a vhost.


Ubuntu Hardy and Apache:

Apache and PHP install: Installing Apache 2.2.8 and PHP 5.2.4 on an Ubuntu Hardy Heron Slice is simple using the 'aptitude' package manager.

Apache Configuration Layout: Ubuntu Hardy Heron uses a 'Debian' style layout for the Apache install. Let's look at what that means.


Apache Configuration #1: Now we can take a look at the main Hardy Heron apache2.conf and ports.conf files and see what the settings mean and what effect they have.

Apache Configuration #2: Continuing from the first Apache configuration article, this one looks at some further settings in the main apache2.conf file.


Apache Virtual Hosts #1: Now Apache is installed and running we can configure it to host multiple sites by creating our own custom virtual hosts.

Apache Virtual Hosts #2: Continuing from the previous article, we now look in detail at the settings we can use in the vhosts file.

Please feel free to request articles or comment with any suggestions or ideas of your own.

PickledOnion