Lets see how copy/paste works from it
This is just installing, not any of the filters or tuning. I have looked over bunch of cpanel articles on this and decided to try the following on directadmin server.
so far it has worked with no known adverse effects, I take no responsibility for any issues you may find.
Since the httpd installed is not compiled from source you can't just straight install the google provided rpm due to dependencies, it will fail saying httpd version is wrong.
Download a copy of the CentOS RPM or wget it from your shell:
32 bit:
Code:
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.rpm
64 bit:
Code:
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_x86_64.rpm
This will grab the latest version.
then install the rpm.
32 bit
rpm -i –nodeps mod-pagespeed-beta_current_i386.rpm
64 bit
rpm -i –nodeps mod-pagespeed-beta_current_x86_64.rpm
You need to edit /etc/httpd/conf/extra/httpd-includes.conf and add the following to the top of it:
#Google PageSpeed Module
Include /etc/httpd/conf.d/pagespeed.conf
Then you need to edit main httpd.conf file /etc/httpd/conf/httpd.conf and remove this line:
Include conf/extra/httpd-deflate.conf
NOTE: I am testing both with and without that line.
To change the options for PageSpeed, configuration file is /etc/httpd/conf.d/pagespeed.conf
The do apache restart
/etc/init.d/httpd restart
Then test it. Run
apachectl -t -D DUMP_MODULES | grep pagespeed
and if your output is
pagespeed_module (shared)
you should be ok.
some say to look at all htaccess files and remove instances of ‘setoutputfilter’ as this might messup what mod_pagespeed is doing. I have not been able to verify for sure.
Again, this is not instructions for tuning or usage. Its just to install with no errors.