Install Mod_Pagespeed to Speed Up Apache and Nginx Performance Upto 10x

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

74 Responses

  1. André Böker says:

    What are the changes in results of pagespeed insights test?

  2. Inderpal Sing says:

    Hi Ravi,
    I am facing some issue mod pagespeed. I have installed nginx via rpm and version is
    Name : nginx
    Arch : x86_64
    Version : 1.0.15

    can i install in my server …?

    • Ravi Saive says:


      There isn’t any problem with nginx version, you can install mod_pagespeed on any nginx or apache version..

  3. Per says:

    When installing packages I almost always use yum install (package name) in this way I get all dependencies also included into the install

  4. ScottW says:

    Hello Ravi!

    Thanks for this but ran into an issue. I get the following error:

    # rpm -Uvh mod-pagespeed-stable_current_x86_64.rpm
    warning: mod-pagespeed-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
    error: Failed dependencies:
    httpd >= 2.2 is needed by mod-pagespeed-stable-

    Centos 6.7
    # httpd -v
    Server version: Apache/2.4.18
    # nginx -v
    nginx version: nginx/1.8.0

    • Ravi Saive says:


      Have you installed 'at' package? if yes, then it could be other reason like how did you installed Apache? and mod_pagespeed is asking for httpd >= 2.2, but seems not installed on the system. Could you run the following command and check what it gives output?

      # rpm -qa | grep httpd 

      yum install at

  5. satish says:

    Thank you, Ravi for sharing this info..
    Just curious to know what if I’ve latest version of Apache e.g 2.4.18 does this module still supports ?? OS – RHEL 6.0

    • Ravi Saive says:


      Thanks for finding my article useful, yes it’s do supports Apache 2.2 and Apache 2.4 as stated in the article..

  6. venkat says:


    Thanks for this valuable post. But seems mod_pagespeed module need to be add nginx while build from source, No dynamic module available for nginx like Apache.
    Is your post nginx ?

    • Ravi Saive says:


      Thanks for finding this post valuable, yes you need to add mod_pagespeed module to nginx configuration manually as stated in the article, this article supports both Apache and Nginx, but while installing mod_pagespeed the module auto loaded into Apache, whereas in nginx you need to add manually..

    • Garikai says:

      You can follow the guide made by the rtcamp folks to install a version of nginx that already has the module.

  7. AlbertM says:

    Hi, I have installed mod_pagespeed on Centos 7, but if I seek in phpinfo.php not find it. Help me please. Thank you.

  8. reza says:

    thanks for learning
    but i got this error:

    # rpm -ivh mod-pagespeed-stable_current_x86_64.rpm
    error: Failed dependencies:
    httpd >= 2.2 is needed by mod-pagespeed-stable-

    my apache version is:
    # httpd -v
    Server version: Apache/2.2.31 (Unix)

  9. On ap standa says:

    Thank Ravi Saive so much. I installed in CentOS :)

  10. Hi,

    I have installed mod_pagespeed on ubuntu. But could not configure admin console. Please provide me the steps to configure to pagespeed admin console.

    Krishnaprasad PB

    • Ravi Saive says:

      Surely, will update the article with admin configuration..give a day or two to update the howto…

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.