Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstall nginx installed by Passenger

How do I uninstall nginx installed as part of passenger installation on Ubuntu 11.04?

Should I just gem uninstall passenger? Will that remove nginx as well?

This is what I see when I run apt-get remove:

sudo apt-get remove nginx-common nginx-full
Reading package lists... Done
Building dependency tree       
Reading state information... Done
**Package nginx-common is not installed, so not removed
Package nginx-full is not installed, so not removed**
The following packages were automatically installed and are no longer required:
  nspluginwrapper linux-headers-2.6.38-13-generic libmysqlclient-dev libaprutil1-ldap libaprutil1-dev libmysqlclient16 libdb4.8-dev libaprutil1-dbd-sqlite3
  apache2.2-bin linux-headers-2.6.38-14-generic linux-headers-2.6.38-12 linux-headers-2.6.38-13 linux-headers-2.6.38-14 mysql-common linux-headers-2.6.38-12-generic
Use 'apt-get autoremove' to remove them.
like image 386
thanikkal Avatar asked May 17 '12 15:05

thanikkal


People also ask

Where is your nginx source code located?

This Nginx is usually located in /usr/sbin/nginx, with configuration file /etc/nginx/nginx. conf.


2 Answers

You most likely used passenger-install-nginx-module to install it. If you run gem uninstall passenger it will remove the dependent modules as well.

like image 159
Gaffe Avatar answered Oct 16 '22 15:10

Gaffe


Uninstallation is covered in the official manual "Phusion Passenger users guide, Nginx version".

like image 42
Hongli Avatar answered Oct 16 '22 15:10

Hongli