Install PageSpeed Module on cPanel Server

First we clone the content from GitHub:

/usr/local/cpanel/3rdparty/bin/git clone https://github.com/pagespeed/cpanel.git /tmp/pagespeed/

Now we extract and move the module:

cd /tmp/pagespeed/Easy
tar -zcvf Speed.pm.tar.gz pagespeed
mkdir -p /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy
mv Speed.pm Speed.pm.tar.gz -t /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy/

You can now remove the /tmp/pagespeed directory which was created.

Now recompile using EasyApache in the Web Host Manager and make sure to select mod_pagespeed on Short Options List


Now make sure that the
/usr/local/apache/conf/pagespeed.conf file has been created, modify that file per your needs (including turning the service on)

Additional information can be seen here: https://developers.google.com/speed/pagespeed/module/configuration

 

Was this answer helpful?

 Print this Article

Also Read:

How do I enable InnoDB on a cPanel Server?

To enable the InnoDB database engine, open up /etc/my.cnf in an editor(such as vim), and comment...

How do I optimize database tables in PHPMyAdmin?

To optimize database tables in phpMyAdmin please use the following process:1) Login to either...

How do I run my own custom nameservers?

(1) If you are you looking to use custom/child nameservers such as dns1.yourdomain.com and...

How can I change the SMTP port on a cPanel server?

Login to the Web Host Manager => Service Configuration => Service Manager, you'll find an...

How do I enable the GD library on a cPanel server?

First you will need to login to the Web Host Manager, Select Software->EasyApache If your...