Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installed Nginx with passenger-install-nginx-module. How do I uninstall it?

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

How do I uninstall it? Any thoughts?

like image 936
Alex Avatar asked Oct 01 '11 23:10

Alex


People also ask

What is Passenger for Nginx?

The Passenger Nginx module registers Passenger-specific configuration options inside Nginx. You, the administrator, configure Passenger by adding Passenger-specific configuration options to the Nginx configuration file. Restart or reload Nginx to apply any configuration changes.


2 Answers

Passenger's documentation covers this:

To uninstall Phusion Passenger, please first remove all Phusion Passenger configuration directives from your web server configuration file(s). After you’ve done this, you need to remove the Phusion Passenger files.

  • If you installed Phusion Passenger through Homebrew, then run brew uninstall passenger.
  • If you installed Phusion Passenger via a Ruby gem, then run gem uninstall passenger (or, if you’re a Phusion Passenger Enterprise user, gem uninstall passenger-enterprise-server). You might have to run this as root.
  • If you installed Phusion Passenger via a source tarball, then remove the directory in which you placed the extracted Phusion Passenger files. This directory is the same as the one pointed to the by PassengerRoot/passenger_root configuration directive.
  • If you installed Phusion Passenger through APT or YUM, then use them to uninstall Phusion Passenger.

Nginx does not have to be recompiled after uninstalling Phusion Passenger. Altough Nginx will contain the Phusion Passenger Nginx module, the module will not do anything when all Phusion Passenger configuration directives are removed.

At that point you can remove nginx by running

sudo rm -rf /opt/nginx

if you installed it using source.

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

like image 38
the Tin Man Avatar answered Sep 18 '22 00:09

the Tin Man


 gem uninstall passenger

will remove passenger and all these dependencies

passenger, passenger-install-apache2-module, passenger-install-nginx-module, passenger-config, passenger-status, passenger-memory-stats, passenger-make-enterprisey

like image 128
RameshVel Avatar answered Sep 21 '22 00:09

RameshVel