Easily Enable Mod_PageSpeed in CWP (Without Compiling)

Enable Mod_deflate

/usr/local/apache/bin/apxs -c -i /tmp/apache-build/httpd-2.2.27/modules/filters/mod_deflate.c


Enable Mod_version

/usr/local/apache/bin/apxs -c -i /tmp/apache-build/httpd-2.2.27/modules/metadata/mod_version.c


Download and Install Mod_PageSpeed

mkdir -p /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/
cp /usr/local/src/mod_pagespeed/etc/httpd/conf.d/pagespeed.conf /usr/local/apache/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/
wget --output-document="/usr/local/apache/conf/pagespeed.conf" http://dl-package.bullten.in/cwp/files/mod_pagespeed/pagespeed.txt


Enable Mod_PageSpeed in Apache

echo 'Include "/usr/local/apache/conf/pagespeed.conf"' >> /usr/local/apache/conf/httpd.conf


Restart Apache

service httpd restart
  • 20 Users Found This Useful
Was this answer helpful?

Related Articles

Install Imagick, Maldet and net2ftp in CWP

ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read...

Install and Configure Awstats in CWP

How to install and Configure awstats on Centos Web Panel 1) Download and install Awstats 7.3 cd...

Installing and Configuring Haproxy on CWP

HAProxy is a free, very fast and reliable solution offering high availability, load balancing,...

Install Apache 2.4 and suPHP 0.7.2 in CWP

In this tutorial we will show you how easily you can upgrade Apache 2.2 to 2.4 and suPHP 0.7.1 to...

Create Database In CWP

In this tutorial we will show you how one can create database and user in CentOS Web Panel. User...