1)Pobieramy paczkę .deb i instalujemy:

wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
dpkg -i mod-pagespeed-stable_current_amd64.deb

Log:

# wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
--2017-09-12 15:08:59-- https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
Resolving dl-ssl.google.com (dl-ssl.google.com)... 2a00:1450:400c:c0b::5d, 64.233.184.190, 64.233.184.91, ...
Connecting to dl-ssl.google.com (dl-ssl.google.com)|2a00:1450:400c:c0b::5d|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8067046 (7.7M) [application/x-debian-package]
Saving to: ‘mod-pagespeed-stable_current_amd64.deb’

mod-pagespeed-stable_current_amd64.deb 100%[========================================================================================================================================>] 7.69M 37.7MB/s in 0.2s

2017-09-12 15:08:59 (37.7 MB/s) - ‘mod-pagespeed-stable_current_amd64.deb’ saved [8067046/8067046]

# dpkg -i mod-pagespeed-stable_current_amd64.deb
Selecting previously unselected package mod-pagespeed-stable.
(Reading database ... 42944 files and directories currently installed.)
Preparing to unpack mod-pagespeed-stable_current_amd64.deb ...
Unpacking mod-pagespeed-stable (1.12.34.2-r0) ...
Setting up mod-pagespeed-stable (1.12.34.2-r0) ...
Enabling module pagespeed.
To activate the new configuration, you need to run:
service apache2 restart
Enabling conf pagespeed_libraries.
To activate the new configuration, you need to run:
service apache2 reload
#

 

2) Dodajemy w /etc/httpd/conf/httpd.conf:

LoadModule pagespeed_module /usr/lib/apache2/modules/mod_pagespeed_ap24.so
ModPagespeedFileCachePath            "/var/cache/pagespeed/"
ModPagespeedFileCacheSizeKb          102400
ModPagespeedFileCacheCleanIntervalMs 3600000
ModPagespeedFileCacheInodeLimit      500000

3) Restartujemy httpd:

service httpd restart

4) Sprawdzamy czy moduł jest załadowany:

# httpd -t -D DUMP_MODULES | grep pages
pagespeed_module (shared)
#

 

4 (80%) Ocen: 2