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:
 mod-pagespeed-*.deb
 
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.

Guest's picture

No Luck

This is what I got on mine still didn't really work any ideas?

 

Selecting previously unselected package mod-pagespeed-stable:i386.(Reading database ... 72031 files and directories currently installed.)Unpacking mod-pagespeed-stable:i386 (from mod-pagespeed-stable_current_i386.deb) ...dpkg: dependency problems prevent configuration of mod-pagespeed-stable:i386: mod-pagespeed-stable:i386 depends on libc6 (>= 2.11). mod-pagespeed-stable:i386 depends on libgcc1 (>= 1:4.1.1). mod-pagespeed-stable:i386 depends on libstdc++6 (>= 4.4.0). mod-pagespeed-stable:i386 depends on apache2.2-common | apache2-api-20120211.dpkg: error processing mod-pagespeed-stable:i386 (--install): dependency problems - leaving unconfiguredErrors were encountered while processing: mod-pagespeed-stable:i386

Jeremy Davis's picture

Looks like you have dependency issues

Or perhaps you have the wrong architecture? You are trying to install the 32 bit version there, but maybe you have 64 bit OS?

Also you'll need to make sure that you have the required versions of dependencies as noted in the error message. You may need to update to a newer version of you OS?

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)