G
G
gh0st_d0g2021-03-02 07:51:52
Nginx
gh0st_d0g, 2021-03-02 07:51:52

How to install nginx pagespeed?

Trying to install on Ubuntu 18.04 over existing nginx install nginx with Pagespeed module as follows

bash <(curl -f -L -sS https://ngxpagespeed.com/install) \
     --nginx-version latest

At the stage when it offers to configure a new nginx, I add the parameters that nginx -V displays. Everything is going well. Then he asks to install nginx, I agree. I'm trying to check after installation which modules are present via nginx -V, and all the same modules are displayed there. the pagespeed module was not added and it is obvious that the old version of nginx. Version nginx 1.19.7. I tried to install in the same way, but completely removing the previous version - the result is the same. Help maybe someone came across. Broken 3 hours yesterday was taken first with manual assembly. It failed when running make. The automatic was successful, but did not install the updated version with the pagespeed module.

UPD now even automatic installation fails with an error
checking for OS
+ Linux 4.15.0-99-generic x86_64
checking for C compiler ... not found

./configure: error: C compiler cc is not found

Error: Failure running './configure --add-dynamic-module= /root/incubator-pagespeed-ngx-latest-stable', exiting.

Although everything seems to be set
[email protected]:~# which сс
/usr/bin/cc
[email protected]:~# which gcc
/usr/bin/gcc

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Karasik, 2021-03-02
@vitaly_il1

1) Did you give any errors during installation?
2) did you check the new nginx - from /usr/local/, or where does it put it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question