F
F
Fastto2011-07-27 15:45:56
Nginx
Fastto, 2011-07-27 15:45:56

Kubuntu 11.04 - Reinstalling nginx

I installed nginx. Everything is ok, everything works.
Then, having mocked the configs, I decided to install it again and
deleted it: sudo apt-get purge nginx
I look in etc the folder remained with the files, deleted it and
installed it again: sudo apt-get install nginx

files appeared but not all. no configs.
removed everything by hand,
then
sudo apt-get remove nginx
sudo apt-get purge nginx

now, no matter how I try to install, it says that everything is OK, the packages are installed, but the nginx directory does not appear in /etc/

Help! How to reinstall nginx with all default configs?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
F
Fastto, 2011-07-27
@Fastto

solution
1) put synaptic? all actions in it
2) complete removal of nginx and links
3) update
4) upgrade
5) installation
everything works

A
Anatoly, 2011-07-27
@taliban

“I deleted everything with my hands” you did it in vain. And as far as I know, nginx has a default config with a left extension, just in case.

A
adminimus, 2011-07-27
@adminimus

try sudo dpkg-reconfigure nginx

P
PRISM, 2016-05-28
@PRISM

sudo apt-get remove nginx nginx-common # Removes all but config files.
sudo apt-get purge nginx nginx-common # Removes everything.
sudo apt-get autoremove # After using any of the above commands, use this in order to remove dependencies used by nginx which are no longer required.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question