This documentation website doesn’t support Internet Explorer. Please visit our old documentation to find what you’re looking for.
Relevant selection for this article:
Uninstalling Passenger involves two steps. The first step is to remove the Passenger files. The second step is to remove any Passenger configuration from your system.
Please select the relevant Passenger edition
Step 1: remove the Passenger files
Removing the Passenger files depends on how you installed Passenger.
|If Passenger is installed as follows...||...then do this|
|Phusion's APT repository for Debian/Ubuntu||
sudo apt-get remove -y passenger
|Phusion's YUM repository for Enterprise Linux||
sudo yum remove -y passenger
|macOS + Homebrew||
brew uninstall passenger
gem uninstall passenger
Remove the directory in which you placed the extracted Passenger files.
This directory is the same as the one pointed to by the
Step 2: remove Passenger configuration from system
Inspect all your Nginx configuration files, and remove any Passenger-related configuration options.
If you installed Passenger via a source tarball, then edit your shell startup file (e.g. /etc/bashrc) and ensure the Passenger bin directory is no longer in PATH.
Tip: Nginx does not need to be recompiled
Nginx does not have to be recompiled after uninstalling Passenger. Altough Nginx will contain the Passenger Nginx module, the module will not do anything when all Passenger configuration directives are removed.