Apache with mod_pagespeed on CentOS 5.5

mod_pagespeed is an open-source Apache module that automatically optimizes web pages and resources on them. It does this by rewriting the resources using filters that implement web performance best practices.

Read more http://code.google.com/speed/page-speed/docs/module.html

This tutorial will show you how to install Apache with mod_pagespeed on CentOS 5.5.

Let’s begin.

Add the mod_pagespeed YUM repository

CentOS 5.5 32 Bit

CentOS 5.5 64 Bit

Now lets install mod_pagespeed

Done! All that is left is to read more about using mod_pagespeed, its configuration and configuring handlers at Using mod_pagespeed

Continue reading “Apache with mod_pagespeed on CentOS 5.5”

Installing Smokeping on CentOS 5.5

In this CentOS 5.5 tutorial we will be installing Smokeping and SmokeTrace on a CentOS 5.5 i386 server. The assumption is that you have a basic to medium understanding of Apache but if you follow this tutorial you should be able to complete the task successfully.

A bit on the software that we’ll be using:

SmokePing keeps track of your network latency:

* Best of breed latency visualisation.
* Interactive graph explorer.
* Wide range of latency measurment plugins.
* Master/Slave System for distributed measurement.
* Highly configurable alerting system.
* Live Latency Charts with the most ‘interesting’ graphs.
* Free and OpenSource Software written in Perl written by Tobi Oetiker, the creator of MRTG and RRDtool


Preliminary Note:
I am using a CentOS 5.5 i386 base installation in this tutorial.

* www.how2centos.com (IP CentOS 5.5 i386 base installation

Lets begin by installing the framework required by Smokeping.


Replace this:

With This:

or you can Patch the file:

Replace this:

With this:

or you can Patch the file:

Change this:

To this:

or you can Patch the file:

change > #AddHandler cgi-script .cgi
to > AddHandler cgi-script .cgi

Under <Directory “/var/www/html”>

change > Options Indexes FollowSymLinks
to > Options Indexes FollowSymLinks ExecCGI

Change this:

To this:

or you can Patch the file:

Change this:

To this:

Lets create a basic Config file for Smokeping to get started:

Lets create a service startup script for Smokeping

Finally lets add Apache and Smokeping to startup and get them started:

Now browse to your new installed Smokeping and Smoketrace installation


XSLCache is in PECL

Originally developed by NYTimes, XSLCache extension for PHP is finally in PECL repository and ready for it’s first PECL-release.

“The XSL Cache extension is a modification of PHP’s standard XSL extension that caches the parsed XSL stylesheet representation between sessions for 2.5x boost in performance for sites that repeatedly apply the same transform. Although there is still some further work that could be done on the extension, this code is already proving beneficial in production use for a few applications on the New York Times’ website.”

Installation, from now on, should be as simple as pecl install xslcache

I have modified the linux installing guide, Installing and upgrading to PHP 5.2.9 on CentOS and Red Hat Linux 5.3 x86_64 to reflect this change.