Skip to content

Instantly share code, notes, and snippets.

@Servana
Created November 5, 2010 11:08
Show Gist options
  • Save Servana/663986 to your computer and use it in GitHub Desktop.
Save Servana/663986 to your computer and use it in GitHub Desktop.
Install mod_pagespeed on Ubuntu with Skystack
#!/bin/bash
arch=$(uname -m)
if [ $arch = 'x86_64' ]; then
SOURCE=https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_amd64.deb
NAME=mod-pagespeed-beta_current_amd64.deb
else if [ $arch = 'i686' ]; then
SOURCE=https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.deb
NAME=mod-pagespeed-beta_current_i386.deb
else if [ $arch = 'i386' ]; then
SOURCE=https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.deb
NAME=mod-pagespeed-beta_current_i386.deb
fi
mkdir ~/mod_pagespeed
curl -o ~/mod_pagespeed/$NAME $SOURCE
sudo dpkg -i ~/mod_pagespeed/mod-pagespeed-beta_current_*.deb
sudo apt-get -f install
if [ -e /etc/apache2/mods-enabled/pagespeed.load ]; then
sudo /etc/init.d/apache2 force-reload
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment