Debian Lenny Slice
Configuring your Debian 5.0 (Lenny) Slice is a breeze with these easy to follow articles
The Debian Lenny tutorials take you from a 'barebones' Slice to a secure, up to date and steamingly quick server in very little time.
Debian Lenny set up:
Debian Lenny setup - page 1: Your Debian Lenny Slice will be a bare-bones install. We need to connect via SSH and secure it as soon as possible.
Debian Lenny setup - page 2 Now the slice is more secure, we can customise the console and configure the locales ready for the meat of the server: .
Debian Lenny and Mysql:
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.
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.
Basic MySQL server tasks: Even the most basic MySQL server installation for Linux will have you performing basic administrative tasks like creating users and granting permissions. We look at some of those tasks here.
MySQL installation: The base installation of MySQL on a Debian Lenny Slice is very simple. Let's see how.
MySQL with Ruby on Rails and PHP: Now we have MySQL installed on our Debian Lenny Slice we can look at how to integrate it with Ruby on Rails and PHP.
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.
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.
Debian Lenny and Email:
Barebones Postfix install for Debian: A barebones set of instructions for installing Postfix. Aimed at experienced admins who just want to set up a basic postfix install to send email from a slice.
Debian Lenny and Apache:
Installing apache on Debian: Installing the apache web server on an Debian server is as simple as using the "aptitude" 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.
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.
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 on Debian - part 1: Your Debian web server continues to take shape as we delve into the depths of apache's configuration options.
Apache configuration on Debian - part 2: We continue to look at apache configuration options for your Debian server.
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 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 and PHP install: Installing Apache 2.2.9 and PHP 5.2.6 is a breeze using aptitude. See how to install them and the follow the articles for configuration. (Note: This article series is older than the one above, but is shorter and still completely accurate. You can't go wrong with either one)
Apache Configuration Layout: Debian uses a slightly different layout than a 'classic' Apache install. Let's investigate.
Apache Configuration #1: Let's look at the main Debian Lenny apache2.conf file and see what the settings mean and what effect they have.
Apache Configuration #2: Continuing from the first Debian Lenny Apache configuration article, this one looks at some further settings in the main apache2.conf file.
Virtual Hosts #1: Now we have Apache up and running we can host multiple domains by creating virtual hosts.
Virtual Hosts #2: Continuing from the previous Lenny vhosts article, we now look in detail at the settings we can use in the vhosts file.
Barebones apache install for Debian: How to set up a basic, no-frills apache server. Recommended for experienced admins only.
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.
Debian Lenny and Nginx:
Installing Nginx via aptitude: Using the 'aptitude' package manager to install Nginx in Debian is very simple as it takes care of any dependencies and init scripts.
Installing Nginx from source: Although Debian Lenny includes Nginx in its repositories, compiling from source will ensure we have the very latest version.
Add an nginx init script: When we installed Nginx, no init script was created. 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.
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.
Nginx Configuration: Whether you installed Nginx via the package manager or from source, now 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 Hosts #2: Continuing from the previous article, we can now look in detail at more of the settings available to us when creating a vhost.
Debian Lenny and Ruby on Rails:
Ruby on Rails: Our Debian Lenny Slice is now ready for a Ruby on Rails stack with subversion and exim4 support.
Using passenger and Apache to serve your application : So, we have mod_rails (Passenger) installed. Let's go ahead and see how incredibly simple it is to serve our Rails application
Network Time Protocol
Using NTP to sync time on Debian: Keeping your Debian system's date and time accurate is easy to do using NTP.
Debian Lenny and Munin:
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.
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 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 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.
Downloading and using kernel source code (184.108.40.206 and newer) on Debian: If you know you need to get your kernel source (or at least its headers) for a kernel version 220.127.116.11 and newer, you can find instructions to do so on Debian here.
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.
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.
Please feel free to request articles or comment with any suggestions or ideas of your own.