Open onslauth opened 8 months ago
Yes, unfortunately the passenger packages are not built in such a way as to facilitate building from source. You'd need to pull the full sources by for example cloning from github. I should add a note to the docs.
How I'm do that :
cd to passenger-config --nginx-addon-dir
in that folder run command rake nginx:as_dynamic_module CACHING=false
Then build as usual
note replace all occurances /somewhere-permanaent with a path of your choosing where you will leave the passenger source code on your server.
wget https://www.phusionpassenger.com/latest_stable_tarball
tar -xzvf passenger-*.tar.gz -C /somewhere-permanent
./configure --with-cc-opt='-g -O2 -ffile-prefix-map=/build/nginx-glNPkO/nginx-1.18.0=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --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 --with-compat --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_sub_module --with-http_xslt_module=dynamic --add-dynamic-module=$( /somewhere-permanent/passenger-*/bin/ passenger-config --nginx-addon-dir )
Issue report
Cannot build
ngx_http_passenger_module
as a nginx dynamic module after following the instructions from https://www.phusionpassenger.com/docs/advanced_guides/install_and_upgrade/nginx/install_as_nginx_module.htmlPassenger details: passenger open source, nginx
OS Details:
Installation method Passenger APT repo
Nginx configure options and output: