... indicates a perl - issue, so I "guess", that your server packages for perl are not up-to-date, installed at an optional install path without adjusting your bash, or has missing modules... or the path is completely missing in your bash.Makefile:794: recipe for target 'pure_site_install' failed
make[2]: *** [pure_site_install] Error 17
make[2]: Leaving directory '/root/addons/nginx/nginx-1.13.0/objs/src/http/modules/perl' objs/Makefile:2290: recipe for target 'install_perl_modules' failed
make[1]: *** [install_perl_modules] Error 2
make[1]: Leaving directory '/root/addons/nginx/nginx-1.13.0' Makefile:11: recipe for target 'install' failed
make: *** [install] Error 2
I'm sorry to point you to my RENAMING procedure in STEP 3 ( where I just corrected the new "pagespeed" - module name, to fit the the tutorial ):Between steps 2 and 3 there's a big mistake in the file naming.
...
mv v1.12.34.2-beta.tar.gz ngx_pagespeed-v1.12.34.2-beta.tar.gz
tar -xvf ngx_pagespeed-v1.12.34.2-beta.tar.gz
...
...
mv 2.3.tar.gz ngx_cache_purge-2.3.tar.gz
tar -xvf ngx_cache_purge-2.3.tar.gz
...
...
mv 1.10.tar.gz ngx_slowfs_cache-1.10.tar.gz
tar -xvf ngx_slowfs_cache-1.10.tar.gz
...
...
mv 0.2rc3.tar.gz ngx_coolkit-0.2rc3.tar.gz
tar -xvf ngx_coolkit-0.2rc3.tar.gz
...
...
mv v0.32.tar.gz ngx_headers-more-v0.32.tar.gz
tar -xvf ngx_headers-more-v0.32.tar.gz
mv headers-more-nginx-module-0.32 ngx_headers-more-0.32
tar -xvf nginx-1.13.2.tar.gz cd /root/addons/nginx/nginx-1.13.2 mv v1.12.34.2-beta.tar.gz ngx_pagespeed-v1.12.34.2-beta.tar.gz tar -xvf ngx_pagespeed-v1.12.34.2-beta.tar.gz cd ngx_pagespeed-1.12.34.2-beta wget https://dl.google.com/dl/page-speed/psol/1.12.34.2-x64.tar.gz tar -xzvf 1.12.34.2-x64.tar.gz
Thanks again! I've done the compile now successful on my Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux.The tutorial has been updated to the most recent nginx versions.
apt-get install passenger passenger-dev libgeoip-dev
https://github.com/pagespeed/ngx_pagespeed/archive/latest-stable.tar.gz
mv ../latest-stable.tar.gz ngx_pagespeed_latest_stable.tar.gz
mkdir -p /usr/share/nginx/modules/ngx_pagespeed-latest-stable
rsync -r /root/addons/nginx/nginx-1.13.2/ngx_pagespeed-latest-stable/* /usr/share/nginx/modules/ngx_pagespeed-latest-stable
mv ../v1.12.34.2-beta.tar.gz ngx_pagespeed-v1.12.34.2-beta.tar.gz
mv v1.12.34.2-beta.tar.gz ngx_pagespeed-v1.12.34.2-beta.tar.gz
./configure --prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--lock-path=/var/lock/nginx.lock \
--pid-path=/var/run/nginx.pid \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--user=nginx \
--group=nginx \
--with-debug \
--with-file-aio \
--with-google_perftools_module \
--with-ipv6 \
--with-mail \
--with-mail_ssl_module \
--with-threads \
--with-select_module \
--with-stream \
--with-stream_ssl_module \
--with-http_addition_module \
--with-http_auth_request_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_geoip_module \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_image_filter_module \
--with-http_mp4_module \
--with-http_perl_module \
--with-http_random_index_module \
--with-http_realip_module \
--with-http_secure_link_module \
--with-http_stub_status_module \
--with-http_sub_module \
--with-http_ssl_module \
--with-http_v2_module \
--with-http_xslt_module \
--with-poll_module \
--add-module=/usr/share/passenger/ngx_http_passenger_module \
--add-module=/usr/share/nginx/modules/ngx_pagespeed-latest-stable \
--add-module=/usr/share/nginx/modules/ngx_cache_purge-2.3 \
--add-module=/usr/share/nginx/modules/ngx_slowfs_cache-1.10 \
--add-module=/usr/share/nginx/modules/ngx_coolkit-0.2rc3 \
--add-module=/usr/share/nginx/modules/ngx_headers-more-0.32
root@server02 ~/addons/nginx/nginx-1.13.2 # nginx -t
nginx: [emerg] dlopen() "/etc/nginx/nginx/modules/ngx_http_passenger_module.so" failed (/etc/nginx/nginx/modules/ngx_http_passenger_module.so: cannot open shared object file: No such file or directory) in /etc/nginx/modules.conf.d/phusion-passenger.conf:1
As I experienced in the past, that MOST Plesk - Users have the additional "passenger" and the GeoIP - module installed ( because they already used it with apache! ), I don't see any need to pack more packages into the basic - installation routine. Pls. just consider to remove the depending configuration ( done with1) I had to install passenger, passenger-dev and libgeoip-dev because I got an error (ngx_http_passenger_module not found):
./configure --prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--lock-path=/var/lock/nginx.lock \
--pid-path=/var/run/nginx.pid \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--user=nginx \
--group=nginx \
--with-debug \
--with-file-aio \
--with-google_perftools_module \
--with-ipv6 \
--with-mail \
--with-mail_ssl_module \
--with-threads \
--with-select_module \
--with-stream \
--with-stream_ssl_module \
--with-http_addition_module \
--with-http_auth_request_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_geoip_module \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_image_filter_module \
--with-http_mp4_module \
--with-http_perl_module \
--with-http_random_index_module \
--with-http_realip_module \
--with-http_secure_link_module \
--with-http_stub_status_module \
--with-http_sub_module \
--with-http_ssl_module \
--with-http_v2_module \
--with-http_xslt_module \
--with-poll_module \
--add-module=/usr/share/passenger/ngx_http_passenger_module \
--add-module=/usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-beta
--add-module=/usr/share/nginx/modules/ngx_cache_purge-2.3 \
--add-module=/usr/share/nginx/modules/ngx_slowfs_cache-1.10 \
--add-module=/usr/share/nginx/modules/ngx_coolkit-0.2rc3 \
--add-module=/usr/share/nginx/modules/ngx_headers-more-0.32 \
Pls. feel free to use the desired version of YOUR choice! I will certainly update this thread frequently ( and as well with URL - changes and different versions ), but not at any time, when a version changes - this would require a daily check for each of the named packages at this tutorial, which I don't want to do. Sorry!maybe it's better to use them?
Sorry, I don't agree here, as you can certainly see:3) In the third step we are in directory /root/addons/nginx/nginx-1.13.2 but in the last step of 2 we wgetted everything to /root/addons/nginx
As we want the next packages downloaded into "/root/addons/nginx/nginx-1.13.2" ( even for the reason, that ALL packages are insider the folder from where we are going to compile nginx! ), there is no issue/problem here and I consider my tutorial as "correctly provided".tar -xvf nginx-1.13.2.tar.gz
cd /root/addons/nginx/nginx-1.13.2
This command should be considered to be a "", as it isn't really necessary at all. Due to the fact, that all other packages are named with "ngx_" as prefix, I decided to use this command. Pls. feel free to name the packages how ever you want them to be named!mv v1.12.34.2-beta.tar.gz ngx_pagespeed-v1.12.34.2-beta.tar.gz
Actually, this is no error/issue, as the slash at the end of the previous lines are just used, because I wanted to display EACH ( possible ) configuration option in one line and didn't want a very long "one-line command" for the whole command. If I would use a "last" slash at the end, linux expects ANOTHER, ADDITIONAL option string, which is just not there.The ./configure has a missing \ in the line ending with ngx_pagespeed-1.12.34.2-beta
As I previously mentioned, most Plesk - Users had already "passenger" installed... in your case, it was the Plesk "passenger" version, which has a different installation path.I had to remove /etc/nginx/modules.conf.d/phusion-passenger.conf because it contained the wrong path to the module and the module was loaded in another conf file.
Sorry, I don't agree with you here. The wget of the addons is to /root/addons/nginx in my opinion. I attached an image, maybe it can help to clarify what I mean.Sorry, I don't agree here, as you can certainly see:
As we want the next packages downloaded into "/root/addons/nginx/nginx-1.13.2" ( even for the reason, that ALL packages are insider the folder from where we are going to compile nginx! ), there is no issue/problem here and I consider my tutorial as "correctly provided".
# wget https://www.openssl.org/source/openssl-1.1.0f.tar.gz /usr/local/src
# tar xzvf /usr/local/src/openssl-1.1.0f.tar.gz -C /usr/local/src
--with-openssl=/usr/local/src/openssl-1.1.0f
I totally agree with HaseebHi
I am not able add google page speed module to my existing Plesk onyx with nginx.
Google page module is very Important but still even AFTER MANY YEARS plesk was not able to add this module.
Pls. feel free to vote for this feature request ( which has got nothing to do with this thread )I totally agree with Haseeb