How to install mod_pagespeed on Ubuntu

cd ~
# 64-bit
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_amd64.deb
#32-bit
# wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.deb
sudo dpkg -i mod-pagespeed*.deb
rm mod-pagespeed*.deb

Now configure the module:

nano /etc/apache2/mods-available/pagespeed.conf

You only need to worry about setting ModPagespeedDomain to your domain. Make sure you restart Apache:

sudo /etc/init.d/apache2 restart

Refresh your site a few times (yes, multiple times) and then look at the source to confirm it’s working.

4 thoughts on “How to install mod_pagespeed on Ubuntu

Leave a reply to Sam Benson Cancel reply