Installed Nginx with the passenger module nginx. How to delete?

I am on Mac OSX. Nginx is installed in / opt / nginx.

"How to remove it"? Any thoughts?

+8
nginx uninstall passenger
source share
2 answers
gem uninstall passenger 

will remove the passenger and all these dependencies

passenger, passenger-install-apache2-module, passenger-install-nginx-module, passenger-config, passenger status, passenger statistics, passenger enterprise

+1
source share

Passenger documentation describes this:

To remove Phusion Passenger, first remove all Phusion Passenger configuration configurations from your web server configuration files. After that, you should delete the Phusion Passenger files.

  • If you installed Phusion Passenger via Homebrew, run brew uninstall passenger .
  • If you installed Phusion Passenger through the Ruby gem uninstall passenger , run gem uninstall passenger (or, if you are a Phusion Passenger Enterprise user, gem uninstall passenger-enterprise-server ). You may need to run this as root.
  • If you installed Phusion Passenger through the source tarball, delete the directory where the extracted Phusion Passenger files were placed. This directory is the same as the pointer to the PassengerRoot/passenger_root configuration directive.
  • If you installed Phusion Passenger via APT or YUM, use them to remove Phusion Passenger.

Nginx does not need to be recompiled after removing Phusion Passenger. Altough Nginx will contain the Phusion Passenger Nginx module; the module will not do anything when all the Phusion Passenger configuration directives are deleted.

At this point, you can remove nginx by running

 sudo rm -rf /opt/nginx 

if you installed it using the source.

Use your package manager to remove it if you installed it this way.

+1
source share

All Articles