Barebones postfix install for Debian

This article describes how to install a postfix mail server with no extras or optimization. It's intended only for users who are experienced administrators or who just want a basic mail server installed for a single purpose like sending email alerts from another service.


Debian Lenny - Nginx Virtual Hosts #2

The previous Debian Lenny Nginx 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 more of the settings available to us in the Virtual Host files.


Debian Lenny - Nginx Virtual Hosts #1

Now we have Nginx installed (whether via the package manager or from source) and are in a position to serve multiple domains using Virtual Hosts.

Do note the layout used in this article is explained here — feel free to use the directories of your choice.


Debian Lenny - Nginx configuration

Whether you have installed Nginx using the package manager or from source, you will need to look at the main configuration file and see what may need changing and optimizing.

Although I'll make some suggestions, the aim is not to change a great deal at this point. Rather, we will look at the main settings, see what they mean and what a change will actually do.


Debian Lenny - Nginx from source layout

Following from the main installing Nginx from source and creating an init script articles we can now move onto looking at the Nginx layout.

The idea of this article is to change the default layout to one more in keeping with the 'Debian' style. Installing Nginx via the package manager creates this layout automatically — we need to do it by hand.


Debian Lenny - adding an Nginx init script

If you decided to install Nginx via source (see the previous article) you would have the latest and greatest version.

However, one disadvantage of installing from source is that init scripts are not created. No problem - let's go ahead and create one for easy control of Nginx and to ensure that it restarts on a reboot.


Debian Lenny - Installing Nginx from source

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

This article will look at installing Nginx from source on a Debian Lenny Slice.


Debian Lenny - Installing Nginx via aptitude

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

This article will look at installing Nginx on a Debian Lenny Slice using the 'aptitude' package manager.


Debian Lenny - using passenger to serve your applications with Apache

Following from the first article, we now have passenger (mod_rails) installed.

As such, we can move on and create a Ruby on Rails application and see how easy it is to serve using passenger.


Debian Lenny - Installing Passenger with Apache

Phusion's Passenger (mod_rails) is an exciting development in serving your Ruby on Rails application with the Apache web server.

Incredibly simple to install and use, you can have a rails application up and running in no time. You don't even have to worry about ports or setting up a proxy to another server.


Debian Lenny - Apache Virtual Hosts #2

Following on from the first Debian Lenny - Apache Virtual Hosts article, we can now look in detail at some of the settings available to us in the Virtual Hosts file.

This will enable us to have complete control of the domain we want to serve.


Debian Lenny - Apache Virtual Hosts #1

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.


Debian Lenny - Apache configuration #2

Continuing from the first Debian Lenny Apache configuration article, we'll 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.)


Debian Lenny - Apache configuration #1

As we know from the previous article, Debian Lenny uses a different layout from other non-Debian based systems - let's move on and take a look at the main apache2.conf and ports.conf.

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.


Debian Lenny - Apache config layout

Debian Lenny uses a different Apache layout than you may have encountered if you have used Apache with non-Debian based Operating Systems.

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


Debian Lenny - Installing MySQL (with Rails and PHP options)

We've already covered how to install MySQL on Debian Lenny, but now we need to prepare our Rails or PHP installations to make use of it.

In this article we will look at what other packages are needed for MySQL to integrate with Ruby on Rails and with a standard PHP install.


Debian Lenny - Ruby on Rails

In the Debian Lenny setup articles (page 1 and page 2) we secured, updated and personalized the install and we should be ready to add some working software.

We also installed the build-essential package. Now we can go ahead and install Ruby on Rails.


Debian Lenny - installing Apache2 and PHP5

At the time of writing, Debian Lenny comes with Apache v.2.2.9-10 and PHP v.5.2.6 and they are easily installed via the default Debian Package Manager 'aptitude'.

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


Debian Lenny - Installing MySQL

Installing MySQL on Debian Lenny is very simple using the 'aptitude' package manager.

This article will go through the install process and you will have a database server up and running in no time.


Debian Lenny setup - page 2

Now that we've secured access to our Debian Lenny slice we can update it and get it ready for the rest of the server install.


Debian Lenny setup - page 1

Your Debian Lenny Slice will be a bare-bones install when it's created. We need to connect via SSH and secure it as soon as possible.