I'm on Mac OSX. Nginx is installed in /opt/nginx.
How do I uninstall it? Any thoughts?
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With