Last active
March 1, 2021 10:43
-
-
Save DmitriyLyalyuev/645f06808eed24f9b081470ef9282156 to your computer and use it in GitHub Desktop.
Install Nginx + Enterprise Passenger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup Enterprise Passenger | |
# https://www.phusionpassenger.com/library/install/standalone/install/enterprise/rubygems_rvm/#step-1:-download-and-install-your-license-key | |
unset HISTFILE | |
export TOKEN=545d1d5b9e8c426b1.......................514dc2cb8a9b77309c054a38c9 | |
gem source --add https://download:${TOKEN}@www.phusionpassenger.com/enterprise_gems/ | |
gem install passenger-enterprise-server --no-rdoc --no-ri | |
# Compiling agent | |
export PASSENGER_ROOT=`passenger-config --root` | |
$PASSENGER_ROOT/bin/passenger-config compile-agent | |
# Nginx | |
export NGINX_VERSION=1.17.6 | |
cd /usr/src | |
wget https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz | |
tar vxz nginx-${NGINX_VERSION}.tar.gz | |
cd nginx-${NGINX_VERSION} | |
./configure --prefix=/etc/nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_addition_module --with-cc-opt=-Wno-error --with-ld-opt= --add-module=$PASSENGER_ROOT/src/nginx_module | |
make | |
make install | |
# Fix passenger_path in /etc/nginx/conf/nginx.conf and restart it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment