I have installed nginx using apt
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:nginx/stable
sudo apt-get install software-properties-common
sudo apt-get update
sudo apt-get install nginx
Then I used whereis nginx and removed all files manually using rm now I wanna re-install nginx but it doesn't work and returning error:
awk: cannot open /etc/nginx/nginx.conf (No such file or directory)
I create /etc/nginx/nginx.conf then use apt-get install nginx it installed completely doesn't work.
output of sudo dpkg -l | grep nginx:
ii nginx 1.4.3-1~raring0 all small, powerful, scalable web/proxy server
ii nginx-common 1.4.3-1~raring0 all small, powerful, scalable web/proxy server - common files
ii nginx-full 1.4.3-1~raring0 i386 nginx web/proxy server (standard version)
nginxwas not the correct way to remove any package in ubuntu. You'd to remove it using sameapt-getcommand. Let me post the proper way to remove it completely and and how to install it again. – Saurav Kumar Oct 19 '13 at 16:15