Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
NickTheGreek

Mod_pagespeed integrated to EasyApache

Recommended Posts

As a Server Administrator, I want Mod_pagespeed integrated to EasyApache, so that ???

I would like to get official cPanel support for Google's mod_pagespeed, straight from EasyApache (for example).

>>

mod_pagespeed is available to download and install as an EasyApache Custom Module. To learn more about using Custom Modules with EasyApache please read our Custom Module documentation.

https://features.cpanel.net/topic/mod-pagespeed-integrated-to-easyapache_2

 

 

Share this post


Link to post
Share on other sites

https://applications.cpanel.net/listings/view/Mod_pagespeed

Description:

mod_pagespeed module for CPanel WHM.

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.

Installation instructions

  1. Clone the installation scripts onto your CPanel server:

    {replace0}gt; git clone http://github.com/pagespeed/cpanel.git /var/cpanel/easy/apache/custom_opt_mods/Cpanel/

  2. Create Speed.pm.tar.gz

    {replace1}gt; cd /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy && tar -zcvf Speed.pm.tar.gz 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!

Configuring mod_pagespeed

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

 

Share this post


Link to post
Share on other sites

mod_pagespeed module for CPanel WHM

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.

Installation instructions

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/pagespeed/cpanel/raw/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm
$> rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm
$> rpm -ivh /root/rpmbuild/RPMS/x86_64/ea-apache24-mod_pagespeed*.rpm
$> /etc/init.d/httpd restart

Below steps only for EA3 users.

  1. Clone the installation scripts onto your CPanel server:
$> /usr/local/cpanel/3rdparty/bin/git clone https://github.com/pagespeed/cpanel.git /tmp/pagespeed/
  1. Create Speed.pm.tar.gz
$> 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
  1. 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
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

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

 

 

https://github.com/Prajithp/cPanel_Mod_PageSpeed

Share this post


Link to post
Share on other sites

How to install google pagespeed on easyapache 4 - WHM/Cpanel

In this post, I am going to talk about page spped and installation procedure on easyapache 4 in WHM. First of all you should know benefits of page speed:
modpagespeed.png


The PageSpeed modules are open-source server modules that optimize your site automatically.

 If you haven’t guessed it, this module directly complements Google’s PageSpeed Insights. It’s a great tool for giving you feedback on what can be done to optimize your site. What I’ve found is many of the issues this tool reports back to you can be resolved automatically by the PageSpeed module , Simply by installing it. Google can tell you what needs to be optimized and how to optimize it, so why not let them do it for you?
 Combine/minify CSS & JavaScript
 Flatten CSS @imports
 Optimize images
 Extend cache
Collapse Whitespace
Lazily Load Images
Move CSS to Head
Move CSS Above Scripts 

Installation Procedure (CentOS):
  Note: 1- if you get following error on Step 3 :
"RPM build errors:
File must begin with "/": %{_httpd_moddir}/*.so
File must begin with "/": %{_httpd_modconfdir}/*.conf"

Just create a file named "macros.apache2" in '/etc/rpm/ directory and paste the below content into that and then restart from step 3.

%_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


2- you may face following error:
"rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm
Installing ea-apache24-mod_pagespeed-latest-stable.src.rpm
error: ea-apache24-mod_pagespeed-latest-stable.src.rpm cannot be installed


Just look at your screen , go 1 step back and check the downloaded file name in some case may be different most of people just run "  rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm" command but sometimes file name can be different for example may be file saved as ea-apache24-mod_pagespeed-latest-stable.src.rpm.9 so in this case you should change file name in command before running that for above example just add .9 in end of command
  rpmbuild --rebuild ea-apache24-mod_pagespeed-latest-stable.src.rpm.9



 Now Login into your WHM panel > Software > EasyApache4 and look for "mod_pagespeed" option and enable it after that restart apache again and run insight  then check your website speed performance!



 

Configuring Google mod_pagespeed

The installation script will copy "pagespeed.conf" file into " /usr/local/apache/conf/ " or " /etc/apache2/conf.modules.d" on your server. Please consult the following pages to customize your mod_pagespeed configuration:


    mod_pagespeed module configuration
    configuring mod_pagespeed filters

For example of the different filters in action and detailed documentation for each, please se

https://modpagespeed.com/doc/

 

https://smartechtips.blogspot.com/2017/02/how-install-google-pagespeed-on.html

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×