Configuring MySQL server on Gentoo

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


Installing MySQL Server on Gentoo

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


Enabling and using apache's mod_status on Gentoo

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.


Barebones apache install for Gentoo

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


Apache Virtual Hosts on Gentoo - part 2

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


Apache Virtual Hosts on Gentoo - part 1

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


Apache configuration on Gentoo - part 2

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


Apache configuration on Gentoo - part 1

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


Configuring the Apache MPM on Gentoo

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


Apache configuration files on Gentoo

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


Installing PHP on Gentoo

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


Installing apache on Gentoo

Installing the apache web server on a Gentoo server is as simple as using "emerge".


Gentoo 10.1 Setup - part 2

Now that we've secured access to your Gentoo 10.1 slice we can update it and get it ready for the rest of the server install.


Gentoo 10.1 Setup - part 1

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


Using NTP to sync time on Gentoo

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


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

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


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

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

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


Gentoo - Installing Nginx

Nginx is a lightweight web server, popular with those who don't need the extra services that Apache offers and are looking for less bulky alternatives.

This article will look at installing Nginx on a Gentoo slice.


Gentoo - Apache Virtual Hosts 2

Continuing from Gentoo - Apache Virtual Hosts #1, we'll look in detail at some of the additional settings available to us in Apache's virtual host configuration files.

Familiarity with these settings will allow us to exercise better control over the domains we're serving.


Gentoo - Apache Virtual Hosts #1

Now that 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.


Gentoo - Apache config layout

Gentoo uses a different configuration layout for Apache than other systems. It also provides some great tools for editing your configuration.

In this article we’ll get an overview of how Gentoo organises Apache’s configuration files; this will help later with knowing where to look when we want to change certain settings.


Gentoo - Apache Configuration #2

Continuing from the first Gentoo Apache configuration article, we’ll now look at some of the other settings in the main configuration files and what they can do.

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


Gentoo - Apache Configuration #1

As we know from the previous article, Gentoo uses a different layout from other systems - let's move on and take a look at the principal files.

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.


Gentoo - Installing PHP modules

This article assumes you have installed apache and php.

In this article we'll look at using Gentoo's powerful package system to install external PHP modules, which are required by most modern PHP applications.


Gentoo - Installing PHP

In this article we’ll cover installing PHP and give an example set of USE flags to get started with.

This article assumes that you have completed the Slice Setup articles and the Installing Apache article.


Gentoo - Installing Apache

Now that our slice is set up the way we want it, we can start installing our web server software.

In this article we'll, prepare the system for installing Apache, install it, and see how to make it start automatically every time the Slice is rebooted.


Gentoo - Deep System Upgrade

Gentoo’s update system is more flowing than a lot of other Linux distros. It’s up to you how often you’d like to do system maintenance; personally I like to do weekly or monthly updates so it doesn’t become too big of a job in the future.

We discussed a basic system upgrade in page two of the slice set up articles. The deep upgrade looks at all packages on the system and can re-emerge packages affected by changes to global USE flags.


Gentoo - Dealing with Blockers

The portage software management system is an extremely powerful program.

Because of the complexity of its job, sometimes it doesn’t work quite how we’d expect.

One particular problem is packages blocking other packages from installing.


Gentoo - Portage Cleanup

This article gives some tips on saving disk space and keeping your emerge system tidy.


Gentoo - Using Masked Packages

When a package is masked, it means you have to explicitly alter some configuration files to emerge it.

Usually packages are masked because they’re not considered stable enough for the standard Gentoo environment. This can be because they just need more testing, or they’re incompatible with another package, or there may be something seriously wrong with the package itself.

In this article we’ll see how we can access these packages.


Gentoo setup - Page 2

In page 1 of the Gentoo Slice setup article we completed the ssh configuration along with a basic iptables install.

Now we’ll configure the gentoo ebuild system and get our Slice up to date.


Gentoo setup - Page 1

These Gentoo articles will take you from a ‘barebones’ Gentoo Slice to a secured and up to date Slice ready for your server software (or whatever you use the Slice for).

Securing your Slice as soon as possible is a great way of starting your Slice administration.