Configuring MySQL server on CentOS

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


Installing MySQL Server on CentOS

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


Using NTP to sync time on CentOS

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


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

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


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

The pv-grub kernel option allows your CentOS 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 CentOS - 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 CentOS - 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 CentOS

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 CentOS here.


Apache Virtual Hosts on CentOS - part 2

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


Apache Virtual Hosts on CentOS - part 1

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


Apache configuration on CentOS - part 2

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


Apache configuration on CentOS - part 1

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


Configuring the Apache MPM on CentOS

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


Apache configuration files on CentOS

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


Installing PHP on CentOS

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


Installing apache on CentOS

Installing the apache web server on a CentOS server is as simple using the "yum" package manager.


CentOS 5.5 Setup - part 2

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


CentOS 5.5 Setup - part 1

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


CentOS 5.4 Setup - part 2

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


CentOS 5.4 Setup - part 1

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


CentOS 5.3 Setup - part 2

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


CentOS 5.3 Setup - part 1

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


Enabling munin node plug-ins on CentOS

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 CentOS

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 CentOS

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 CentOS

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 CentOS

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.


Barebones postfix install for CentOS

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.


Barebones apache install for CentOS

This article describes how to install an apache web server on CentOS 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.


CentOS - Mail Server - Adding Domains and Users

Following from the previous article, we should have our firewall properly configured to allow the correct ports for our mail server.

Now we can start adding domains and users to our Postfix installation.


CentOS - Mail Server - Opening Ports in the Firewall

In the previous article, we installed and configured Dovecot to accept our incoming connections to the mail server. Now we need to open the ports in our firewall so we can access those services.


CentOS - Mail Server - Dovecot Installation

Following from the previous article, we have installed Postfix and setup a basic configuration with a secure connection to our mail server. As such, we can move on to installing Dovecot which will allow us to access the mail server with POP and IMAP access (as well as secure POP and IMAP).


CentOS - Mail Server - Secure Connection, Configuring Postfix

Now that we've created our self-signed certificate (see the previous article) we can go ahead and configure Postfix to use it.


CentOS - Mail Server - Secure Connection, Creating the SSL Certificate

The previous article looked at Saslauthd. Now let's concentrate on the SSL certificate we'll use for secure connections to our mail server.

The principles involved are the same ones we employed when setting up a secure website (HTTPS). The first step is the creation of a new SSL certificate.


CentOS - Mail Server - Basic Settings in main.cf

Following from the Postfix installation article, we can now look at the main.cf file and see what the settings are and what they mean.

Note that these settings are intended for a multiple domain configuration of your mail server.


CentOS - Mail Server - Secure Connection, Configuring Saslauthd

Following from the previous article, we can begin configuring our mail server for secure connections. The first step is to setup Saslauthd.


CentOS - Mail Server- Installation

The base package for all of the mail articles will be Postfix. There are, of course, alternatives to Postfix, each with advantages and disadvantages and, without going into the differences, I have chosen Postfix due its relative ease of configuration.

As many of the future articles will concentrate on administrative issues and assume Postfix is already installed, let's go ahead and install it.


CentOS - Email - Preparing the Slice

Beginning a series of articles on many aspects of email (sending, receiving, configuring, etc), we need to start with the very basics by preparing the Slice.

This article looks at the hostname and reverse DNS (RDNS) settings on the Slice.


CentOS - Nginx, Rails, and Mongrels

Following from the mongrel and mongrel cluster article, we can now look at configuring Nginx to proxy to a mongrel cluster so we can serve our Ruby on Rails application.

The process is very easy and can simply be repeated for serving multiple domains.


CentOS - Apache, Rails, and Mongrels

Following from the mongrels and mongrel cluster article, we can now look at creating and configuring Apache to proxy to a mongrel cluster so we can serve our Ruby on Rails application.


CentOS - Mongrel and mongrel_cluster installation

There are variety of options open to the sysadmin when serving Ruby applications.

One of the original ways is to use the mongrel web server. Requests are proxied to the mongrel(s) from the main web server (Apache, Nginx, etc).

The article may seem quite lengthy but two subjects are tackled here. One is the basic mongrel gem itself but then we move onto the mongrel_cluster gem.

Take each section at a time as each one builds on the previous explanation.


CentOS - Nginx, Rails and Thin

Having installed the thin web server for Ruby, we can now look at configuring a Nginx vhost to proxy to thin so we can serve our Ruby on Rails application.

The process is easy to follow and easy to repeat for hosting multiple domains.


CentOS - Apache, Rails and thin

Following from the thin web server for Ruby article, let's look at creating and configuring Apache to proxy to thin so we can serve our Ruby on Rails application.


CentOS - thin web server for Ruby

There are variety of options open to the sysadmin when serving Ruby applications.

One of them is thin. This is a 3rd party web server that is proxied to from the main web server (similar to mongrels in a general setup). Let's take a look at installing thin.


CentOS - using mod_rails to serve your application

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.


CentOS - mod_rails installation

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 have to worry about ports or setting up a proxy to another server.


CentOS - Installing MySQL (with Rails and PHP options)

Installing MySQL on CentOS is very simple using the 'yum' package manager.

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


CentOS - Ruby on Rails

In the CentOS setup articles (page 1 and page 2) we secured, updated and personalized the install to add some working software.

We also installed the development tools package. Now we can go ahead and install Ruby on Rails.


CentOS - Nginx virtual host settings

The previous CentOS 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 Hosts files.


CentOS - Nginx Virtual Hosts

Now we have Nginx installed (whether via the package manager or from source) we 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.