A lot of people looking to download the Page Speed Optimization Library from google for installing nginx_pagespeed. But there is no public download url available from google. But it is easy to download the page speed optimization library as follows.

You may download the latest stable version of nginx_page speed from https://github.com/pagespeed/ngx_pagespeed/releases . At this time the latest stable version is v1.12.34.3-stable

# cd /usr/local/src
# wget -c https://github.com/pagespeed/ngx_pagespeed/archive/v1.12.34.3-stable.tar.gz
# tar -xzf v1.12.34.3-stable.tar.gz
# cd ngx_pagespeed-

Now find the psol download url as follows,

# scripts/format_binary_url.sh PSOL_BINARY_URL

This is the psol source url of the downloaded page_speed module . Now download this file and extract it

# wget https://dl.google.com/dl/page-speed/psol/
# tar -xzf

You can see a directory named “psol” in the current directory .

Next is download and install nginx with google nginx_pagespeed<?pre>

# cd /usr/local/src
# wget -c http://nginx.org/download/nginx-1.12.2.tar.gz
# tar -xzf nginx-1.12.2.tar.gz
# cd nginx-1.12.2
# ./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_flv_module --with-http_mp4_module --with-ipv6 --with-http_stub_status_module --add-module=/usr/local/src/ngx_pagespeed-
# make 
# make install

That’s all the steps need to install nginx with latest google pagespeed and psol library.

Leave a Reply

Your email address will not be published. Required fields are marked *