Koozali.org: home of the SME Server

Is there how to install mod_pagespeed for SME Server v9

Offline noaptus

  • *
  • 6
  • +0/-0
Is there how to install mod_pagespeed for SME Server v9
« on: October 29, 2015, 03:21:07 PM »
Hi.

I was wondering if there are any "HOW TO" install mod_pagespeed for sme server v9, or can I install this apache mod_pagespeed for centos just the usual way.

Like this

http://tecadmin.net/installing-mod_pagespeed-module-apache/
http://www.tecmint.com/install-mod_pagespeed-website-optimizer-for-apache-in-rhel-centos-and-fedora/
http://lintut.com/how-to-install-mod_pagespeed-in-rhel-centos-fedora-linux/

Best regards.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Is there how to install mod_pagespeed for SME Server v9
« Reply #1 on: October 29, 2015, 03:39:58 PM »
first of all, setup the correct repo in the SME's way:

Code: [Select]
db yum_repositories set mod-pagespeed repo \
Name 'Mod Pagespeed' \
BaseURL 'http://dl.google.com/linux/mod-pagespeed/rpm/stable/$basearch' \
GPGCheck no \
Visible no \
status disabled

then
Code: [Select]
signal-event yum-modify
yum --enablerepo=* clean all

at this point you'd be able to install it with
Code: [Select]
yum --enablerepo=mod-pagespeed install mod-pagespeed

NOTe: not tested, should work, let us know

Offline noaptus

  • *
  • 6
  • +0/-0
Re: Is there how to install mod_pagespeed for SME Server v9
« Reply #2 on: October 30, 2015, 10:56:08 AM »
Hi and thanks for the reply.

I did as you told me to do, now I get this.

Error getting repository data for mod-pagespeed, repository not found

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Is there how to install mod_pagespeed for SME Server v9
« Reply #3 on: October 30, 2015, 11:26:21 AM »
sorry, my fault:

Code: [Select]
db yum_repositories delete mod-pagespeed

then

Code: [Select]
db yum_repositories set mod-pagespeed repository \
Name 'Mod Pagespeed' \
BaseURL 'http://dl.google.com/linux/mod-pagespeed/rpm/stable/$basearch' \
GPGCheck no \
Visible no \
status disabled

then follow my previous post about signal and so on..

Offline noaptus

  • *
  • 6
  • +0/-0
Re: Is there how to install mod_pagespeed for SME Server v9
« Reply #4 on: October 30, 2015, 11:46:24 AM »
Thanks this worked.

One more question, will the mod be enabled by default or do I have to enable it, if so how can I do that.

Best regards

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Is there how to install mod_pagespeed for SME Server v9
« Reply #5 on: October 30, 2015, 11:49:58 AM »
well, if you read the mod-pagespeed page, you'd see that with a

Code: [Select]
phpinfo()

you'd see if it's enabled..

do a
Code: [Select]
signal-event ibay-modify

just to be sure that all templates are expanded and all the services are restarted..

let us know..

P.S. if you find it usefull and you manage in make it work, please consider to join the wiki group and write an howto there, thank you

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Is there how to install mod_pagespeed for SME Server v9
« Reply #6 on: October 30, 2015, 12:16:15 PM »
You'll need to add a custom template to load the module at least.
C'est la fin du monde !!! :lol:

Offline noaptus

  • *
  • 6
  • +0/-0
Re: Is there how to install mod_pagespeed for SME Server v9
« Reply #7 on: October 30, 2015, 02:59:46 PM »
Is this the manual how to create custom template

http://wiki.contribs.org/Template_Tutorial

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Is there how to install mod_pagespeed for SME Server v9
« Reply #8 on: October 30, 2015, 03:03:17 PM »
Yes, that page gives you some generic tips about templates. In this case, you'll want to create a file named for example /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20LoadModule98PageSpeed

and put here the required apache directive (something like LoadModule pagespeed_module modules/mod_pagespeed.so)
C'est la fin du monde !!! :lol: