You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pagespeed.apache.org by ju...@apache.org on 2017/12/30 04:41:48 UTC

[37/50] [abbrv] incubator-pagespeed-cpanel git commit: add instructions for upgrading mod_pagespeed/EA3|4

add instructions for upgrading mod_pagespeed/EA3|4


Project: http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/commit/f8acd10b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/tree/f8acd10b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/diff/f8acd10b

Branch: refs/heads/master
Commit: f8acd10ba043e7be8addde6b2b34ae4febb05a9c
Parents: 1b1f6cc
Author: Jeffrey Crowell <jc...@google.com>
Authored: Wed Apr 13 14:36:19 2016 -0400
Committer: Jeffrey Crowell <jc...@google.com>
Committed: Wed Apr 13 14:36:19 2016 -0400

----------------------------------------------------------------------
 README.md | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/blob/f8acd10b/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 5c53a35..c5fcd6e 100644
--- a/README.md
+++ b/README.md
@@ -29,6 +29,35 @@ $> cd && rm -rf /tmp/pagespeed
 
 3. Login into your cPanel WHM > EasyApache and look for "mod_pagespeed" option. Alternatively, you can run the easyapache installer from command line (`/scripts/easyapache`). Rebuild the Apache server, reboot it, and you're good to go!
 
+## Updating instructions
+
+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.
+
+ - create file `/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
+ ```
+
+ - then run the following commands
+
+ ```bash
+ 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
+ ```
 
 ## Configuring mod_pagespeed