Install Nagios3 on Debian 5.0 Lenny

We show how to configure nginx on a 32-bit slice to serve dynamically-created content. Along the way, we show off a couple of troubleshooting techniques and how to work around the lack of a pre-compiled fastcgi package for Debian 5.0 Lenny.


Configuring MySQL server on Debian

We continue our MySQL server setup for Debian by looking at configuration options to try and ensure the server doesn’t just run, but runs smoothly.

Installing MySQL Server on Debian

We look at installing MySQL on Debian and getting it running with a database and a user to access it.

Using NTP to sync time on Debian

Keeping your Debian system's date and time accurate is easy to do using NTP.


Using pv-grub to run custom kernels on Debian - enabling and troubleshooting

Make the final changes to enable pv-grub for your Debian Linux VPS, then check the results.


Using pv-grub to run custom kernels on Debian - preparing the slice

The pv-grub kernel option allows your Debian slice to boot from your own kernel instead of one of ours. Before you can try it out you need to prepare the slice with some config changes.


Understanding logrotate on Debian - part 2

In this second part of the logrotate series we look at how to set up rotation for virtual host logs, as well as some troubleshooting techniques.


Understanding logrotate on Debian - part 1

It's no fun when log files grow out of control. In this two-part series, learn how to use logrotate to keep those logs in check.


Downloading and using kernel source code (2.6.32.12 and newer) on Debian

If you know you need to get your kernel source (or at least its headers) for a kernel version 2.6.32.12 and newer, you can find instructions to do so on Debian here.


Apache Virtual Hosts on Debian - part 2

With the base apache virtual host configs in place on your Debian server, let's look at other settings you may want to apply to them.


Apache Virtual Hosts on Debian - part 1

Now that apache is running and configured on your Debian server we can add virtual hosts to let it serve more than one domain.


Apache configuration on Debian - part 2

We continue to look at apache configuration options for your Debian server.


Apache configuration on Debian - part 1

Your Debian web server continues to take shape as we delve into the depths of apache's configuration options.


Configuring the Apache MPM on Debian

Now that you know where the files are, let's look at how to tell apache to stay within the memory available to your Debian server.


Apache configuration files on Debian

Let's take a look at where apache's config files wind up when installed with the Debian package manager.


Installing PHP on Debian

Now that apache is running on your Debian server you might want to add PHP support to it. Here's how.


Installing apache on Debian

Installing the apache web server on a Debian server is as simple using the "aptitude" package manager.


Enabling munin node plug-ins on Debian

Munin uses plug-ins to determine what data is gathered and reported. It includes several plug-ins for the types of data most people would be interested in, but not all of those plug-ins are enabled on a fresh installation.


Installing additional munin nodes on Debian

Following up on the article about installing a munin master slice, if you want to monitor additional slices you'll need to install a munin node service on each.


Enabling and using apache's mod_status on Debian

Apache's mod_status module allows it to display a web page containing statistics about the web server's current state, including worker processes and active connections.


Munin configuration and testing on Debian

This article continues the installation and setup of munin on a single slice. It explains how to determine or change the URL used to access munin's reports and then check to make sure those reports are viewable and being updated.


Installing munin on Debian

Anticipating problems and resource shortages on a slice can be more valuable than fixing them after they've happened. A monitoring tool like munin lets you watch your slice's resource use over time. The graphs will highlight issues before they cause downtime or bandwidth quota overages.


Barebones apache install for Debian

This article describes how to install an apache web server on Debian with no extras. It's intended only for users who are experienced administrators or who just want a basic web server install with no details on including modules like PHP or customizing apache for their site.


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.


Debian Etch - 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.


Debian Etch - installing nginx

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

Unfortunately, Debian Etch comes with rather an old version (0.4.13). As such, let's look at installing the latest stable version of nginx from source.


Debian Etch - mongrel clusters and surviving a reboot

Proxying requests to a mongrel cluster is one of the ways of serving your Ruby on Rails web application with Debian Etch.

Let's look at creating a cluster and configuring it to survive and restart after a reboot.


Debian Etch - Apache Vhosts, rails and mongrels

One of the ways of serving a Ruby on Rails application is to use Apache to proxy requests to mongrels.

There are a few ways of completing this and we're going to look at one simple solution. Other ways will be looked at in future articles.


Debian Etch - Apache, SSL and vhosts

Securing 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.


Debian Etch - Apache Virtual Hosts #2

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

This enabled us to serve multiple websites from a single IP address and Slice. Let's look at some of the settings available to us in the Virtual Hosts files and introduce some new ones.


Debian Etch - Apache Virtual Hosts

Now we have Apache installed and running, let's configure it to serve two different domains using Virtual Hosts.

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