How to Install mod_pagespeed on CentOS

I was introduced to Google’s mod_pagespeed at my current place of employment. I dismissed it at first until I was tasked with adding it to one of our existing web apps that didn’t have it yet. Wow. KeepAlive + mod_pagespeed is fantastic. I know KeepAlive is old but it’s still off by default in Apache’s HTTPd config and, all by itself, it gives you a 3x savings in some cases I’ve tried. That, and mod_pagespeed brings you stuff like auto-bundling certain css and javascript into a single request, minifying javascript files and inline javascript, compressing images, generating optimized/rescaled images based on IMG tag width/height, etc. and it goes on. It’s a brilliant “best of breed” (forgive me for saying that!) compilation of all the best web performance techniques. Here’s how to install it…

Continue reading “How to Install mod_pagespeed on CentOS”

How to Install Third Party Repositories on CentOS

You’ll have almost every CentOS package you could ever need with a few additional community run package repositories. Here’s instructions for installing three of the more popular ones: RPMForge, EPEL, and Elrepo.

Continue reading “How to Install Third Party Repositories on CentOS”

How to fix CentOS 4 Yum Breakage after End-of-Life

If you still need CentOS 4 and your yum is currently broken due to end-of-life, here’s the fix: Edit /etc/yum.repos.d/CentOS-Base.repo, comment out the mirrorlist parameters and add a baseurl=http://vault.centos.org/4.9/os/$basearch parameter for each enabled section. Here’s the official instructions: Using Vault Repositories

If you still need CentOS 4 and your yum is currently broken due to end-of-life, here’s the fix: Edit /etc/yum.repos.d/CentOS-Base.repo, comment out the mirrorlist parameters and add a baseurl=http://vault.centos.org/4.9/os/$basearch parameter for each enabled section. Here’s the official instructions: Using Vault Repositories