How to install mod_pagespeed in RHEL/CentOS/Fedora and Debian/Ubuntu linux

mod_pagespeed (Website speed optimizer) is an open-source Apache module that automatically optimizes web pages and resources on them. It does this by rewriting the resources using filters that implement web performance best practices. It has several filters that automatically optimize files like HTML, CSS, JavaScript, JPEG, PNG and other resources. Read more…

Installing mod_pagespeed module for Apache in RHEL/CentOS/Fedora 32 and 64 bit

First install at:

yum install at

Now download mod_pagespeed:

32 bit:

wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i386.rpm

For installatio on RHEL/CentOS/Fedora, please execute (also as root):

rpm -U mod-pagespeed-stable_current_i386.rpm

64 bit:

wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm
rpm -U mod-pagespeed-stable_current_x86_64.rpm

Installing mod_pagespeed module in Debian/Ubuntu

To install the packages, on Debian/Ubuntu, please run (as root) the following command:

32 bit:

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

64 bit:

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

Verifying mod_pagespeed Module for Apache

To verify mod_pagespeed module create info.php under root directory of Apache and add following lines of code to it.

Now,navigating your web browser to http://ip.add.re.ss/info.php. You will see “X-Mod-Pagespeed” section in the HTTP header.

Leave a Reply

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.

Check Also
Back to top button