Install mod_pagespeed in cPanel using EasyApache

Status
Not open for further replies.

prajithp13

Member
Jun 12, 2012
20
0
1
India
cPanel Access Level
Root Administrator
I have created mod_pagespeed custom module for CPanel WHM using CPanel Easy Framework. which will be then install using /scripts/easyapache on command line or easyapache from WHM on your choice whether to install it or not. You can install it by using following steps



wget http://prajith.in/scripts/mod_pagespeed-cust-opts.tar.gz


tar -C /var/cpanel/easy/apache/custom_opt_mods -xzf mod_pagespeed-cust-opts.tar.gz

Thats it, now you can run

/scripts/easyapache


or



Login into WHM and go to EasyApache Update



It will show you the Mod_Pagespeed included in it and you can install it by checking the box.

:)
 

albatroz

Well-Known Member
Mar 6, 2003
401
6
168
Virtual Orbis / Peru
cPanel Access Level
Root Administrator
Twitter
Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

Hello,
I finished installing the module, but haven´t noticed any substancial speed improvement.

How can I know if it is really working?

BTW,
Do you know if there is any conflict with Apache Booster (ngnix / varnish)
I have found this thread that states that there is a problem with varnish and pagespeed

/http://drupal.stackexchange.com/questions/4168/apache-2-2-mod-pagespeed-varnish
 
Last edited:

Astral God

Well-Known Member
Sep 27, 2010
180
0
66
127.0.0.1
cPanel Access Level
Root Administrator
Which is the default filters configuration ? https://developers.google.com/speed/docs/mod_pagespeed/filters

Also, is there a GUI available on WHM after install ?

Thanks.
 

igrigorik

Registered
Aug 25, 2007
2
0
51
Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

> I have found this thread that states that there is a problem with varnish and pagespeed
> /http://drupal.stackexchange.com/questions/4168/apache-2-2-mod-pagespeed-varnish

mod_pagespeed works fine with Varnish, and any other caching server or CDN in front - in fact, it will help these services! The thing to keep in mind is that mod_pagespeed intentionally turns off caching headers for your HTML files because these files are rewritten on the fly - all of the associated resources are cache extended. For a good explanation why, take a look here: Issue 232 - modpagespeed - Allow caching HTML files - Apache module for rewriting web pages to reduce latency and bandwidth - Google Project Hosting

If you're ok with potentially serving slightly stale HTML out of your static cache (ex, you have a purge step, which is common..), then you can disable this behavior in your mod_pagespeed config: https://developers.google.com/speed/docs/mod_pagespeed/install#ModifyCachingHeaders


>> Which is the default filters configuration?

Take a look here: https://developers.google.com/speed/docs/mod_pagespeed/config_filters

... Finally. Prajith, awesome work! Would love to get your code up on our github repo @ /http://github.com/pagespeed. Would you be interested in contributing your code there? Ping me
 

GJSchaller

Member
Nov 5, 2012
5
0
1
cPanel Access Level
Reseller Owner

Astral God

Well-Known Member
Sep 27, 2010
180
0
66
127.0.0.1
cPanel Access Level
Root Administrator
And how to correctly uninstall it ?

I've followed EasyApache way (disable the checkbix, recompile) but a lot of pagespeed folders remain on the server and at Apache start i'm havin warns about 127.0.0.1 that don't have virtualhosts...

Thanks.
 

asmar

Well-Known Member
Jul 16, 2004
135
0
166
Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

Hi,

I've installed the module but according to google by executing a command like: curl -D- /http://www.mydomain.com | less
I need to see something like X-Mod-Pagespeed: 0.10.22.4-1633 which is not happening.

Any ideas?

- - - Updated - - -

Hi,

I've installed the module but according to google by executing a command like: curl -D- /http://www.mydomain.com | less
I need to see something like X-Mod-Pagespeed: 0.10.22.4-1633 which is not happening.

Any ideas?
 

jazz1611

Well-Known Member
Jun 5, 2012
82
0
56
cPanel Access Level
Root Administrator
Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

Hi,

i speak English not well.

Who can upgrade new version of mod_pagespeed? I cant use yum update mod_pagespeed for upgrade. Please help me. Thanks.

Regards,
 

vkronlein

Registered
Jul 13, 2013
0
0
0
cPanel Access Level
Root Administrator
Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

Can someone tell me what paths are being used by this once it's installed using EasyApache?

I've got several copies of pagespeed.conf and mod_pagespeed/cache/ directory and I need to know which are being used so they can be cleared and or edited as needed.

Thanks.
 

Bullten

Member
Dec 31, 2011
5
0
51
cPanel Access Level
Root Administrator
Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

Module gets installed in : /usr/local/apache/modules/mod_pagespeed.so
Page Cache: /var/mod_pagespeed/cache
pagespeed.conf : /usr/local/apache/conf/pagespeed.conf
 

bogdanvlad

Registered
Aug 15, 2012
4
0
1
Bucuresti, Romania
cPanel Access Level
Root Administrator
Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

So prajithp13, is mod_pagespeed compatibile with apachebooster ? If not, which perform better cpanel + apachebooster OR cpanel + nginx + mod_pagespeed ?

Can be mod_pagespeed configured for nginx in this configuration ?

Regards.
 

Jamas

Registered
Dec 5, 2013
1
0
1
cPanel Access Level
Root Administrator
Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

Just following up on the upgrade question. Yes mod_pagespeed will upgrade with this setup to the latest stable release when the EasyApache update is done.
 

amirnasir0

Registered
Jan 13, 2014
3
0
1
cPanel Access Level
Root Administrator
Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

Hi prajith,
I have two questions

1. my server has nginx enabled, can i install pagespeed module there? will it work?

2. After installation, will i be getting any GUI in my cPanel
 
Status
Not open for further replies.