Installing Google’s mod_pagespeed on a MediaTemple (dv)

The announcement of mod_pagespeed by Google couldn’t have been more perfectly timed. I’ve been working on a page load speed optimization project this week and this fits the bill perfectly.

The goal of mod_pagespeed is to automate optimization processes by integrating them into an Apache 2.x module. I’ll go through the process of installing and configuring this module below.

Determine the architecture

To my understanding, MediaTemple (dv)’s are all 32-bit architecture as of the writing of this article. To verify, run the following command:

$ uname -p

The command will likely result in ‘i686’ (i386, i486 and i586 also signify a 32-bit kernel). If you see ‘x86_64’, you are running an 64-bit architecture and you will need to use a different RPM.

Download and install RPM

You will need to be logged into your system as root and have yum installed. The following commands with download the correct RPM and install the module to your system:

$ yum install at
$ wget
$ rpm -i mod-pagespeed-*.rpm


The configuration file can be found at /etc/httpd/conf.d/pagespeed.conf. There is great documentation on the individual settings on the Google Code page. The configuration lets you enable/disable certain optimizations as well as set thresholds on when to optimize a file.

I hope this is helpful for other MediaTemple (dv) folks out there. We saw the average page load taking roughly 20% of the time as compared to pre-installation. Amazing!

Update: MediaTemple has a great installation tutorial on their wiki worth checking out.