commit | bb268e14d4deac7d9a3eeee7329be1ab3185c73c | [log] [tgz] |
---|---|---|
author | Jeffrey Crowell <crowell@bu.edu> | Tue Jun 21 12:55:24 2016 -0400 |
committer | GitHub <noreply@github.com> | Tue Jun 21 12:55:24 2016 -0400 |
tree | f8421b6335e6b4b02b6adeb36909ad3ee15b5c67 | |
parent | 1b1f6cc43d3b15a633d65a279c0982b269f1fed3 [diff] | |
parent | f8acd10ba043e7be8addde6b2b34ae4febb05a9c [diff] |
Merge pull request #46 from pagespeed/add_upgrade_instrs add instructions for upgrading mod_pagespeed/EA3|4
A custom module for CPanel WHM using CPanel Easy Framework - allows easy installation of mod_pagespeed via /scripts/easyapache
on command line or through easyapache from WHM web console.
If you are using EasyApache4, please follow the below steps to install mod_pagespeed.
$> yum install rpm-build cpio ea-apache24-mod_version $> wget https://github.com/Prajithp/cpanel/raw/master/EA4/ea-apache24-mod_pagespeed-1.9-32.11.src.rpm $> rpmbuild --rebuild ea-apache24-mod_pagespeed-1.9-32.11.src.rpm $> rpm -ivh /root/rpmbuild/RPMS/x86_64/ea-apache24-mod_pagespeed-1.9-32.11.x86_64.rpm $> /etc/init.d/httpd restart
$> /usr/local/cpanel/3rdparty/bin/git clone https://github.com/pagespeed/cpanel.git /tmp/pagespeed/
$> 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/ $> cd && rm -rf /tmp/pagespeed
/scripts/easyapache
). Rebuild the Apache server, reboot it, and you're good to go!If you are using EasyApache3, run easyapache
to upgrade mod_pagespeed to the latest version.
If you are running EasyApache4, follow these steps to upgrade.
/etc/rpm/macros.apache2
with the following contents%_httpd_mmn 20120211x8664 %_httpd_apxs /usr/bin/apxs %_httpd_dir /etc/apache2 %_httpd_bindir %{_httpd_dir}/bin %_httpd_modconfdir %{_httpd_dir}/conf.modules.d %_httpd_confdir %{_httpd_dir}/conf.d %_httpd_contentdir /usr/share/apache2 %_httpd_moddir /usr/lib64/apache2/modules
rm -rf /root/rpmbuild/RPMS/x86_64/ wget https://github.com/pagespeed/cpanel/raw/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm rpm -Uvh /root/rpmbuild/RPMS/x86_64/ea-apache24-mod_pagespeed*.rpm /etc/init.d/httpd restart
The installation script will copy a default pagespeed.conf file into /usr/local/apache/conf/
on your server. Please consult the following pages to customize your configuration:
For example of the different filters in action and detailed documentation for each, please see modpagespeed.com