Ubuntu LTS - adding an nginx init script

In the previous article we installed nginx from source. However, installing from source does not create an init script.

Let's create such a script so we can easily start, stop and restart nginx and, perhaps more importantly, ensure it automatically starts on a reboot.

Ubuntu LTS - installing nginx

nginx is a popular server for those who do not need the bulk and extra services that Apache may offer.

Unfortunately, nginx is not in the standard (officially supported) repositories that Ubuntu LTS (Dapper) uses. As such, let's look at installing nginx from source.

Ubuntu LTS - Apache, SSL and vhosts

Secure connections to your website are vital when entering passwords or entering administration areas.

This article will take you through creating a self-signed certificate and configuring your virtual host to use https (port 443) connections.

Ubuntu LTS - Apache Virtual Hosts #2

The previous Ubuntu LTS Apache Virtual Hosts article introduced the basics of the setting up virtual hosts.

This allowed us to serve multiple domains from a single IP address and Slice. Now we can look in detail at the settings available to us in the Virtual Hosts files and introduce some new ones.

Ubuntu LTS - Apache Virtual Hosts

Now we have Apache installed and running, we can configure it to serve multiple domains using Virtual Hosts.

Do note the layout used in these articles is explained here - feel free to use the directories of your choice.

Ubuntu LTS - Apache configuration #2

Continuing from the first LTS Apache configuration article, we now look at some of the other settings in the main apache2.conf file and what they can do.

Concentrating on efficiency and security, this will end our apache2.conf journey (for now).

Ubuntu LTS - Apache configuration #1

Let's take a look at the main apache2.conf and ports.conf for our LTS (Dapper) install.

We're not actually going to change a lot at this point, just look at the main settings and see what they mean and what a change will actually do.

Ubuntu LTS - Apache config layout

Ubuntu LTS (Dapper) uses a Debian based Apache layout which differs from the 'classic' layout you may have encountered from other distributions.

The differences are not huge and, indeed, help in configuring and deploying websites.

Ubuntu Dapper - installing Apache and PHP5

Ubuntu LTS (Dapper) comes with Apache v.2.0.55 and PHP v.5.1.2. and is easily installed via the 'apt-get' command.

The advantage of using packages is that you will get any security updates from Ubuntu (if and when distributed) and dependencies are automatically taken care of.

Ubuntu LTS - MySQL and RoR

In the previous Ubuntu LTS setup articles page 1 and page 2 we secured, updated and personalised the install ready for some action.

Now we can install MySQL and Ruby on Rails with subversion and postfix support.

Ubuntu LTS setup - page 2

In page 1 of the Ubuntu LTS setup, we completed the ssh configuration along with a basic iptables install.

Let's move on and install some personal configuration files to make our life easier. Once done, we can update the install and create a solid base for the 'meat' of the server.

Ubuntu LTS setup - page 1

In this Ubuntu LTS setup guide, we have a basic Ubuntu LTS slice, either a new slice or a reinstalled slice.

Now we need to access the slice and secure it as soon as possible.

Upgrading to Feisty

Until the new OS images are available you may think you only have a single choice with Ubuntu and that's Ubuntu LTS (supported until 2011).

However, you are able to upgrade to Feisty (supported until 2008).