How to install Apache mod_pagespeed module on CentOS Web Panel
How to install Apache mod_pagespeed module on CentOS Web Panel
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.
Related Links:
To install Apache mod_pagespeed module on CentOS Web Panel run the following lines one by one.
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 configuration after installation in the file:
/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 configuration after installation in the file:
/usr/local/apache/conf.d/pagespeed.conf