TurnKey Linux Virtual Appliance Library

How do I install mod_pagespeed?

anthonysexton's picture

I've setup a WordPress appliance with a few sites running on WordPress multisite.

I'd like to install mod_pagespeed to see what sort of performance benefit I can get from it. 

I tried following the Ubuntu instructions here: https://developers.google.com/speed/pagespeed/download#mod_pagespeed

however I got the following error:

dpkg -i mod-pagespeed-*.deb


dpkg: error processing mod-pagespeed-*.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
Any ideas of what I need to do?
anthon's picture

Ok ignore that- i've

Ok ignore that- i've installed it (New to all this command line stuff).

Its installed and i've restarted Apache. Do I need to do anything to configure it to work?

Guest's picture

would be nice of you to share

would be nice of you to share how you fixed it.

as it stands, this is a pretty useless first result in Google for people with the same problem.

Jeremy Davis's picture

Perhaps have to download the deb first?

I suspect that it was a simple case of either running the command without downloading the file first, or running it in the wrong place... The command needs to be run from the directory in which the file exists. To be sure you are in the right place perhaps download it with wget then you can't go wrong. So something like this:

wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i...
dpkg -i mod-pagespeed-*.deb
apt-get -f install

Jeremy Davis's picture

Probably need to enable it

Which woud be something like:

a2enmod pagespeed
Guest's picture

Found it

The problem with me was that the source didnt get downloaded correct from Google. When I opened the downloaded file it was a HTML doc saying that I had no access to the document in my region. I guess my server's IP was somehow mistraced by Google to some weird country or something. The solution was to DL the source from my computer, then using ftp to put it on th server.

Guest's picture

thanks Wouter

Thanks Wouter, I had installed pagespeed successfully from your solution. :)

Guest's picture

And which performance benefit do you receive?

Please, share with us if you find some performace improvements with this module.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)