Installation Mod_Pagespeed system for CentOS and DirectAdmin VESTACP
The following guide will help with a few commands to install Mod_Pagespeed system CentOS and DirectAdmin panels and VESTACP
Charge package pagespeed latest available version:
1 | wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm |
Then install the package at:
1 | yum install at |
Unpack and install the module package:
1 | rpm -U mod-pagespeed-*.rpm |
The last step is to add the module to the httpd conf.
VESTACP for the panel and DirectAdmin:
edit file:
1 | /etc/httpd/conf/httpd.conf |
And we add
1 2 | #Google PageSpeed Module Include /etc/httpd/conf.d/pagespeed.conf |
The last step is to restart the httpd
1 | service httpd restart |
We check the installation on this page
https://ismodpagespeedworking.com/
If everything is ok, we should see something like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 | Success! Mod_Pagespeed is running on that domain. Here are the headers we received: 200: OK server: nginx date: Sat, 03 Mar 2018 07:38:07 GMT content-type: text/html; charset=UTF-8 content-length: 59961 connection: close x-powered-by: PHP/7.0.27 vary: Accept-Encoding,Cookie cache-control: max-age=0, no-cache, must-revalidate x-mod-pagespeed: 1.13.35.2-0 |