The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Install mod_pagespeed in cPanel using EasyApache

Discussion in 'Workarounds and Optimization' started by prajithp13, Oct 31, 2012.

Thread Status:
Not open for further replies.
  1. prajithp13

    prajithp13 Member

    Joined:
    Jun 12, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.

    :)
     
  2. albatroz

    albatroz Well-Known Member

    Joined:
    Mar 6, 2003
    Messages:
    251
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Virtual Orbis / Peru
    cPanel Access Level:
    Root Administrator
    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
     
    #2 albatroz, Nov 4, 2012
    Last edited: Nov 4, 2012
  3. Astral God

    Astral God Well-Known Member

    Joined:
    Sep 27, 2010
    Messages:
    180
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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.
     
  4. igrigorik

    igrigorik Registered

    Joined:
    Aug 25, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  5. GJSchaller

    GJSchaller Member

    Joined:
    Nov 5, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
  6. Astral God

    Astral God Well-Known Member

    Joined:
    Sep 27, 2010
    Messages:
    180
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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.
     
  7. prajithp13

    prajithp13 Member

    Joined:
    Jun 12, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

    Its is not related with the pagespeed module.
     
  8. Duplika

    Duplika Well-Known Member

    Joined:
    Feb 26, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

    Great work prajithp13! Haven't test this myself but hopefully it brings enough attention from cPanel and can be officially enabled.

    Specially now that they have updated this recently to 1.2.
     
  9. asmar

    asmar Well-Known Member

    Joined:
    Jul 16, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    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?
     
  10. jazz1611

    jazz1611 Well-Known Member

    Joined:
    Jun 5, 2012
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    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,
     
  11. Duplika

    Duplika Well-Known Member

    Joined:
    Feb 26, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

    It seems the best approach on this is using /https://github.com/pagespeed/cpanel, but we haven't tested this out yet.
     
  12. vkronlein

    vkronlein Registered

    Joined:
    Jul 13, 2013
    Messages:
    0
    Likes Received:
    0
    Trophy Points:
    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.
     
  13. Bullten

    Bullten Member

    Joined:
    Dec 31, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  14. prajithp13

    prajithp13 Member

    Joined:
    Jun 12, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

    Mod_pagespeed cpanel EA script is now available on GitHub.

    /https://github.com/pagespeed/cpanel
     
  15. bogdanvlad

    bogdanvlad Registered

    Joined:
    Aug 15, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  16. bogdanvlad

    bogdanvlad Registered

    Joined:
    Aug 15, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bucuresti, Romania
    cPanel Access Level:
    Root Administrator
    Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

    will be mod_pagespeed keep up to date in this setup ?

    Regards.
     
  17. simonas

    simonas Well-Known Member

    Joined:
    Apr 21, 2013
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lithuania
    cPanel Access Level:
    Root Administrator
    Re: Install Mod_Pagespeed in WHM/cPanel using easyapache.

    I would like to know that too.

    Do you guys plan keeping it updated or it will auto update?

    Thanks
     
  18. simonas

    simonas Well-Known Member

    Joined:
    Apr 21, 2013
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lithuania
    cPanel Access Level:
    Root Administrator
    #18 simonas, Nov 8, 2013
    Last edited: Nov 8, 2013
  19. Jamas

    Jamas Registered

    Joined:
    Dec 5, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    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.
     
  20. amirnasir0

    amirnasir0 Registered

    Joined:
    Jan 13, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    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
     
Loading...
Thread Status:
Not open for further replies.

Share This Page