Uninstalling Passenger + Apache
Uninstalling Passenger open source involves two steps. The first step is to remove the Passenger files. The second step is to remove any Passenger configuration from your system.
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 libapache2-mod-passenger
|Phusion's YUM repository for Red Hat/CentOS||
sudo yum remove -y passenger mod_passenger
|OS X + 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 Apache 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.