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

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. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux course in 5 Days

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.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

50 Responses

  1. 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..

  2. 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

  3. 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

  4. 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..

  5. 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.

  6. 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.

  7. 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)

  8. On ap standa says:

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

  9. 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 *

Join Over 150K+ Linux Users
  1. 100,756
  2. 5,113
  3. 36,418

Enter your email to get latest Linux Howto's