directadmin:mod_pagespeed
DirectAdmin install mod_pagespeed for httpd
- Documentation: https://www.modpagespeed.com
- Download latest pagespeed RPM: https://www.modpagespeed.com/doc/download
cd /tmp wget -O /tmp/mod-pagespeed-beta_current_x86_64.rpm https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm
Install mod_pagespeed without deps:
rpm -i --nodeps /tmp/mod-pagespeed-beta_current_x86_64.rpm
Include mod_pagespeed to /etc/httpd/conf/extra/httpd-includes.conf
#Google PageSpeed Module Include /etc/httpd/conf.d/pagespeed.conf
Remove from main httpd.conf deflate: /etc/httpd/conf/httpd.conf
Include conf/extra/httpd-deflate.conf
Prevent changes after updates:
mkdir -p /usr/local/directadmin/custombuild/custom/ap2/conf cp /etc/httpd/conf/httpd.conf /usr/local/directadmin/custombuild/custom/ap2/conf/httpd.conf
To change the options for PageSpeed, configuration file is /etc/httpd/conf.d/pagespeed.conf
Restart httpd: /etc/init.d/httpd restart
Test if pagespeed loaded:
apachectl -t -D DUMP_MODULES | grep pagespeed
directadmin/mod_pagespeed.txt · Last modified: 2018/04/26 09:45 by dreiggy