mod_pagespeed is an open-source Apache module created by Google to help Make the Web Faster by rewriting web pages to reduce latency and bandwidth.

Please follow below instructions to install mod_pagespeed over Centos server.

1) Check Linux distros and the version on the server:

# uname -a

2) Download latest rpm of mod_pagespeed according to the architecture of the server

# wget

3) Install the rpm :

# rpm -i mod-pagespeed-*.rpm

4) After installation, configure installed files

# rpm -ql mod-pagespeed-beta

5) Restart Apache

# service httpd restart

Inorder to upgrade the mod_pagespeed module, you must first download the latest version and use of the command

#  yum localinstall mod-pagespeed-*.rpm