Nginx Build / Automated installer

467 views
Skip to first unread message

sh...@salonguru.net

unread,
Aug 5, 2020, 9:49:44 AM8/5/20
to mod-pagespeed-discuss
Hi Otto, 

Amazing work on the release - We are very excited to get going with it. 

Would you mind updating the automated installer? It still wants to install 1.13.35.2 and is pulling the PSOL from dl.google.com.


Nginx install.png
Kind regards, 
Shane :)

Otto van der Schaaf

unread,
Aug 5, 2020, 11:14:34 AM8/5/20
to mod-pagesp...@googlegroups.com
I have created https://github.com/apache/incubator-pagespeed-ngx/releases/tag/v1.14.33.1-RC1
however, to be able to create a release, we'd first need that to go through the hoops of the ASF
incubator review process. Once it goes through that, we can update the latest-beta/latest-stable
tags, and the ngx pagespeed.installer will use this release. Help is welcome here, because I'm
not sure when I'll get to that.
 
For now, I think the installer might has an option to get PSOL from a manually specified url:
Pointing that to the new psol version should work:

Hope that helps!

Otto




--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/e1bb8288-33fe-414e-b01f-a583616a1b65n%40googlegroups.com.

sh...@salonguru.net

unread,
Aug 5, 2020, 11:30:08 AM8/5/20
to mod-pagespeed-discuss
Hi Otto, 

That's very helpful thank you - I have a development box up and running so I'll let you know what happens. I didn't spot you could supply it with a PSOL url!

Thats OK if you're just supporting Apache only for the medium future, I don't really know where to start in terms of helping you but I'd suggest a small update to the website because as per http://pagespeed.incubator.apache.org/doc/download, 1.14.36.1 is clearly not supported for Nginx right now. I assumed it was available to be compiled and the result would match the apache db/rpm packages. Ultimately we like you're Pagespeed mod enough that we would switch from Nignx to Apache if support was dropped.

Is the difference in version numbers (1.14.33.1) mean you have a different development path now for Nginx? Can I assume 1.14.33.1 hasn't been tested?

Shane :)

sh...@salonguru.net

unread,
Aug 5, 2020, 11:45:59 AM8/5/20
to mod-pagespeed-discuss
Hi Otto, 

Yes I think the Automated installer is a no go for this release. In order to get add the newer PSOL the PSOL_BINARY_URL file within incubator-pagespeed-ngx-latest-stable need to be manually edited. However each time the script runs it requires the directory is overwritten with  https://github.com/apache/incubator-pagespeed-ngx/archive/latest-stable.zip. That is 3+ years old and because the paths are wrong I can feed in a development or specific version number. 

Will try and compile manually!

Kind regards, 
Shane

sh...@salonguru.net

unread,
Aug 5, 2020, 12:07:17 PM8/5/20
to mod-pagespeed-discuss
OK Compiling manually did work and Nginx did start!

These were the command line steps I took:



** GET MOD PAGESPEED **
mkdir incubator-pagespeed-ngx-latest-stable
cd incubator-pagespeed-ngx-latest-stable
unzip v1.14.33.1-RC1.zip
cd incubator-pagespeed-ngx-1.14.33.1-RC1
tar -xvf psol-1.14.36.1-apache-incubating-x64.tar.gz 
cd ../../

** GET NGINX **
cd nginx-1.18.0

** COMPILE **
./configure --add-module=$HOME/incubator-pagespeed-ngx-latest-stable/incubator-pagespeed-ngx-1.14.33.1-RC1 ${PS_NGX_EXTRA_FLAGS}
make
sudo make install


sh...@salonguru.net

unread,
Aug 11, 2020, 11:53:47 AM8/11/20
to mod-pagespeed-discuss
Hi Otto, 

Just to confirm we have upgraded all our servers and everything is stable. You have released amazing work. Thank you. :)

All the best.

Shane.

Otto van der Schaaf

unread,
Aug 11, 2020, 11:58:18 AM8/11/20
to mod-pagesp...@googlegroups.com
that is great to hear! cheers!

Rick Gutierrez

unread,
Oct 1, 2020, 2:20:36 PM10/1/20
to mod-pagesp...@googlegroups.com


Hi, I tried this procedure with this version and it doesn't work for me, using nginx 1.18 and centos 7, with version incubator-pagespeed-ngx-1.13.35.2-stable it works.


Use the available Release binaries? [Y/n] Y

mod_pagespeed_dir=/rpm/incubator-pagespeed-ngx-1.14.33.1-RC1/psol/include

build_from_source=false

checking for psol ... not found

./configure: error: module ngx_pagespeed requires the pagespeed optimization library.

Look in /rpm/nginx-1.18.0/objs/autoconf.err for more details.



incubator-pagespeed-ngx-1.14.33.1-RC1]# ls -l

total 19432

-rw-r--r-- 1 root root    13676 Aug  3 08:34 config

-rw-r--r-- 1 root root     1183 Aug  3 08:34 config.make

-rw-r--r-- 1 root root     2881 Aug  3 08:34 cpp_feature

drwxr-xr-x 4 root root       60 Aug  3 08:34 docker

-rw-r--r-- 1 root root    11342 Aug  3 08:34 LICENSE

-rw-r--r-- 1 root root      488 Aug  3 08:34 NOTICE

drwxrwxr-x 4 root root       59 Feb 28  2020 psol

-rw-r--r-- 1 root root 19844644 Jun 22 08:34 psol-1.14.36.1-apache-incubating-x64.tar.gz

-rw-r--r-- 1 root root      132 Aug  3 08:34 PSOL_BINARY_URL

-rw-r--r-- 1 root root     1619 Aug  3 08:34 README.md

drwxr-xr-x 2 root root      122 Aug  3 08:34 scripts

drwxr-xr-x 2 root root     4096 Aug  3 08:34 src

drwxr-xr-x 2 root root      110 Aug  3 08:34 test


any help is appreciated!



--

Longinos

unread,
Oct 1, 2020, 5:01:45 PM10/1/20
to mod-pagespeed-discuss


What is the output from this command run in /rpm/incubator-pagespeed-ngx-1.14.33.1-RC1/
ll psol/lib/Release/linux/x64/ ?
Here must be a file called pagespeed_automatic.a.
Maybe this parameter is wrong:
mod_pagespeed_dir=/rpm/incubator-pagespeed-ngx-1.14.33.1-RC1/psol/include

Rick Gutierrez

unread,
Oct 1, 2020, 5:15:54 PM10/1/20
to mod-pagesp...@googlegroups.com
El jue., 1 oct. 2020 a las 15:01, Longinos (<longinos.int...@gmail.com>) escribió:


What is the output from this command run in /rpm/incubator-pagespeed-ngx-1.14.33.1-RC1/
ll psol/lib/Release/linux/x64/ ?
Here must be a file called pagespeed_automatic.a.
Maybe this parameter is wrong:
mod_pagespeed_dir=/rpm/incubator-pagespeed-ngx-1.14.33.1-RC1/psol/include


Hola longinos saludos desde nicaragua...

this is what I have:

cd lib/Release/linux/x64/

[root@rover x64]# ls -l

total 44796

-rw-rw-r-- 1 root root 44695734 Feb 28  2020 pagespeed_automatic.a

-rwxrwxr-x 1 root root  1168504 Feb 28  2020 pagespeed_js_minify


ls -l

total 4

drwxrwxr-x  3 root root   22 Feb 27  2020 net

drwxrwxr-x  3 root root   21 Feb 28  2020 out

drwxrwxr-x  8 root root   94 Feb 28  2020 pagespeed

drwxrwxr-x  2 root root   33 Feb 28  2020 strings

drwxrwxr-x  4 root root   32 Feb 28  2020 testing

drwxrwxr-x 32 root root 4096 Feb 28  2020 third_party

drwxrwxr-x  4 root root   30 Feb 28  2020 tools

drwxrwxr-x  3 root root   18 Feb 28  2020 url

[root@rover include]# pwd

/rpm/incubator-pagespeed-ngx-1.14.33.1-RC1/psol/include


 

--

Longinos

unread,
Oct 2, 2020, 6:39:41 AM10/2/20
to mod-pagespeed-discuss
Hola Ricky, ¿todo bien?
So the psol library is in place (the pagespeed_automatic.a file) then I think is the wrong variable.
mod_pagespeed_dir must be set to  /rpm/incubator-pagespeed-ngx-1.14.33.1-RC1/ but yours are at  /rpm/incubator-pagespeed-ngx-1.14.33.1-RC1/psol/include
so the script is seeking for a directory/file that it not found.
Reply all
Reply to author
Forward
0 new messages