Installing Pagespeed module on nginx as dynamic module
To know version of os & nginx
to know linux distribution version
Remove / rename old compiled module
Install devtools
compiling Pagespeed module with latest nginx
check version
create directory
download latest nginx
Download Pagespeed Module
Set environment variable
download module
You will be here
//make sure to rename if already loaded module
-
$ cd ../nginx-1.15.2
-
$ ./configure –with-compat –add-dynamic-module=/tmp/incubator-pagespeed-ngx-1.13.35.2
-
$ make modules
Copying module & loading module in nginx.conf
-
sudo cp objs/ngx_pagespeed.so /etc/nginx/modules/