Google Pagespeed Module

Hi all,

New to the forum here after using Interworx for many years with Nexcess decided to take the plunge and go self managed on a VPS with digital ocean.

All looked great until I tried to install the Google Pagespeed module or mod_pagespeed. The module is there on the server but it doesn’t work with interworx as its not showing up in PHPINFO or the page code.

From what I can see Interworx 5.0.14 has a slightly different folder structure so my initial guess is Apache is not in the same place as the stock version of CentOS 6.5(final) maybe ?

I know its not officially supported but maybe if anyone has successfully got it working I’d appretiate any info you can send my way as I found an awesome post here on how to install Percona and it works like a dream for my magento install

Thanks !

Hi Engagecommerce

Welcome to IW forums

I’m sure you have installed correcty but perhaps not realised it sorry.

For anyone wanting to do this, please see here, but it is for Centos 6.5 64 bit, please make changes as needed for your OS

SSH into your server

wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-
stable_current_x86_64.rpm

rpm -U mod-pagespeed-*.rpm

yum --enablerepo=mod-pagespeed install mod-pagespeed

service httpd stop

service httpd start

You can manually add into to see pagespeed from IW-CP by completing the following

vi /etc/httpd/conf.d/pagespeed.conf

comment out the following

#<IfVersion < 2.4>

LoadModule pagespeed_module /usr/lib64/httpd/modules/mod_pagespeed.so

#</IfVersion>
#<IfVersion >= 2.4.2>

LoadModule pagespeed_module /usr/lib64/httpd/modules/mod_pagespeed_ap24.so

#</IfVersion>

save

vi /etc/httpd/conf/httpd.conf
add this line to Modules
LoadModule pagespeed_module modules/mod_pagespeed.so

save

TEST FOR PAGESPEED

httpd -t -D DUMP_MODULES | grep pagespeed

If you see pagespeed shown as shared, your good to go or check online, and below my result

http://www.webconfs.com/http-header-check.php

HTTP/1.1 200 OK =>
Date => Sat, 16 Aug 2014 16:54:38 GMT
Server => Apache/2.2.26 (Unix)
Accept-Ranges => bytes
X-Mod-Pagespeed => 1.8.31.4-4056
Vary => Accept-Encoding
Cache-Control => max-age=0, no-cache
Content-Length => 93905
Connection => close
Content-Type => text/html; charset=UTF-8

This now gives you control over turining ON or OFF for Pagespeed from within IW-CP

I hope it helps

Many thanks

John

That is excellent thanks John, its really appretiated.

Your right I did have it installed but wasn’t looking at it correctly, your write up is just what I needed to get everything perfect.

Bookmarked !

Thanks,
Bob

Hi bob

I’m pleased it helped, and you may want to set for IW control, so it’s easy for turning on or off without ssh. Just login to nodeworx, system services, web and down right hand side modules you’ll see what’s on or off

Have a lovely night

Many thanks

John