Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: noaptus 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.
-
first of all, setup the correct repo in the SME's way:
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
signal-event yum-modify
yum --enablerepo=* clean all
at this point you'd be able to install it with
yum --enablerepo=mod-pagespeed install mod-pagespeed
NOTe: not tested, should work, let us know
-
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
-
sorry, my fault:
db yum_repositories delete mod-pagespeed
then
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..
-
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
-
well, if you read the mod-pagespeed page, you'd see that with a
phpinfo()
you'd see if it's enabled..
do a
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
-
You'll need to add a custom template to load the module at least.
-
Is this the manual how to create custom template
http://wiki.contribs.org/Template_Tutorial (http://wiki.contribs.org/Template_Tutorial)
-
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)