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.
the tin man
source share