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.

Advertisements

4 thoughts on “How to install mod_pagespeed on Ubuntu

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s