{"id":1616,"date":"2017-05-12T09:58:22","date_gmt":"2017-05-12T07:58:22","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=1616"},"modified":"2017-10-07T17:26:42","modified_gmt":"2017-10-07T15:26:42","slug":"compiling-googles-mod-pagespeed-nginx","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/compiling-googles-mod-pagespeed-nginx\/","title":{"rendered":"Compiling google&#8217;s mod_pagespeed for nginx"},"content":{"rendered":"<pre>\r\nThis post is intended mainly to Zyxel NSA310 users.\r\n\r\n<strong>Prerequisites<\/strong>\r\nSee first <a href=\"https:\/\/adrhc.go.ro\/blog\/common-commands-when-building\/\" target=\"_blank\">https:\/\/adrhc.go.ro\/blog\/common-commands-when-building\/<\/a> for building environment, x.sh script and other things not defined here.\r\nBefore starting do declare the environment variables specified to the link above.\r\n\r\n<strong>Environment & other preparations<\/strong>\r\n<code>NEW_BUILD_NAME=ngx_pagespeed\r\nNEW_BUILD_VER=20150317\r\nNEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER\r\nls -l \/tmp\/$NEW_BUILD_NAME-*\r\nls -l ~\/ffp_0.7_armv5\/packages\/$NEW_BUILD_NAME-*\r\nNEW_BUILD_NR=0\r\n\r\nwget -O ngx_pagespeed-$NEW_BUILD_VER.zip https:\/\/github.com\/pagespeed\/ngx_pagespeed\/archive\/master.zip\r\nunzip ngx_pagespeed-$NEW_BUILD_VER.zip\r\nmv ngx_pagespeed-master\/ ngx_pagespeed-$NEW_BUILD_VER\r\n<\/code>\r\n<strong>Build procedure<\/strong>\r\nRead then do first <a href=\"https:\/\/adrhc.go.ro\/blog\/install-configure-googles-mod_pagespeed-for-apache\/\" target=\"_blank\">https:\/\/adrhc.go.ro\/blog\/install-configure-googles-mod_pagespeed-for-apache\/<\/a>\r\n<code>cd ~\/compile\/mod_pagespeed\/src\/net\/instaweb\/automatic\r\n~\/x.sh ffpg1\r\nmake BUILDTYPE=Release AR.host=\"$PWD\/..\/..\/..\/build\/wrappers\/ar.sh\" AR.target=\"$PWD\/..\/..\/..\/build\/wrappers\/ar.sh\" all<\/code>\r\n\r\n<strong>Other considerations<\/strong>\r\nSee also <a href=\"https:\/\/github.com\/pagespeed\/ngx_pagespeed\/wiki\/Building-PSOL-From-Source\" target=\"_blank\">https:\/\/github.com\/pagespeed\/ngx_pagespeed\/wiki\/Building-PSOL-From-Source<\/a>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This post is intended mainly to Zyxel NSA310 users. Prerequisites See first https:\/\/adrhc.go.ro\/blog\/common-commands-when-building\/ for building environment, x.sh script and other things not defined here. Before starting do declare the environment variables specified to the link above. Environment &#038; other preparations [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/compiling-googles-mod-pagespeed-nginx\/#more-1616\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Compiling google&#8217;s mod_pagespeed for nginx<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,57,11,163,10],"tags":[100,29,102,28],"class_list":["post-1616","post","type-post","status-publish","format-standard","hentry","category-compiling-from-source","category-installation","category-linux","category-nsa310","category-programming","tag-nginx","tag-nsa310","tag-pagespeed","tag-zyxel"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=1616"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/1616\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=1616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=1616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=1616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}