mod_pagespeed

How To Install mod_pagespeed On CentOS

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.

Installer for 64bit Systems

mkdir /usr/local/src/mod_pagespeed

cd /usr/local/src/mod_pagespeed

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

rpm2cpio mod-pagespeed-stable_current_x86_64.rpm | cpio -idmv

cp /usr/local/src/mod_pagespeed/usr/lib64/httpd/modules/mod_pagespeed.so /usr/local/apache/modules/

cp /usr/local/src/mod_pagespeed/usr/lib64/httpd/modules/mod_pagespeed_ap24.so /usr/local/apache/modules/

wget --output-document="/usr/local/apache/conf.d/pagespeed.conf" http://dl1.centos-webpanel.com/files/apache/mods/pagespeed/pagespeed.conf

cp /usr/local/src/mod_pagespeed/etc/httpd/conf.d/pagespeed_libraries.conf /usr/local/apache/conf/

chmod 755 /usr/local/apache/modules/mod_pagespeed.so

chmod 755 /usr/local/apache/modules/mod_pagespeed_ap24.so

mkdir -p /var/cache/mod_pagespeed/

chown -R nobody:nobody /var/cache/mod_pagespeed/

service httpd restart

* You can modify the configuration after installation:
/usr/local/apache/conf.d/pagespeed.conf

Installer for 32bit Systems
mkdir /usr/local/src/mod_pagespeed

cd /usr/local/src/mod_pagespeed

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

rpm2cpio mod-pagespeed-stable_current_i386.rpm | cpio -idmv

cp /usr/local/src/mod_pagespeed/usr/lib/httpd/modules/mod_pagespeed.so /usr/local/apache/modules/

cp /usr/local/src/mod_pagespeed/usr/lib/httpd/modules/mod_pagespeed_ap24.so /usr/local/apache/modules/

wget --output-document="/usr/local/apache/conf.d/pagespeed.conf" http://dl1.centos-webpanel.com/files/apache/mods/pagespeed

cp /usr/local/src/mod_pagespeed/etc/httpd/conf.d/pagespeed_libraries.conf /usr/local/apache/conf/

chmod 755 /usr/local/apache/modules/mod_pagespeed.so

chmod 755 /usr/local/apache/modules/mod_pagespeed_ap24.so

mkdir -p /var/cache/mod_pagespeed/

chown -R nobody:nobody /var/cache/mod_pagespeed/

service httpd restart

* You can modify the configuration after installation:
/usr/local/apache/conf.d/pagespeed.conf

Comments

Related Articles

About the Author

proprod

Born in '76 and the world hasn't been the same since.