Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plesk Support + Passenger #181

Open
giamma93 opened this issue Mar 22, 2021 · 0 comments
Open

Plesk Support + Passenger #181

giamma93 opened this issue Mar 22, 2021 · 0 comments

Comments

@giamma93
Copy link

Hello everyone!
It would be interesting to add support for installation on Plesk + Passenger server (node app host).
Tested on Ubuntu 20.04.2 LTS:

 while [[ $PLESK != "y" && $PLESK != "n" ]]; do
  	read -rp "       Plesk installation [y/n]: " -e PLESK
 done
if [[ $PLESK == 'y' ]]; then
	passenger_ngx_addon_dir=$(passenger-config --nginx-addon-dir)
	NGINX_OPTIONS=$(
		echo "$NGINX_OPTIONS"
		echo --prefix=/usr/share --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --modules-path=/usr/share/nginx/modules --error-log-path=/var/log/nginx/error.log
		echo --http-log-path=/var/log/nginx/access.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body
		echo --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
		echo --with-compat
		if [ -n "${passenger_ngx_addon_dir}" ]; then
			echo --add-dynamic-module=$(passenger-config --nginx-addon-dir)
		fi
		#echo --add-dynamic-module=$(passenger-config --nginx-addon-dir)
	)
fi	
@giamma93 giamma93 changed the title Plesk Support + Passenger :enhance: Plesk Support + Passenger Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant