I was working under LAMP stack on my laptop an decided to use nginx in place of apache2 (LEMP)
Installed nginx, php5-fpm and fast-cgi without removing any thing from LAMP stack
Stopped apache2 and started nginx trying localhost (shows server not found)
Means nginx didn't install successfully and i found that the folder
/etc/php5/{apache2 cgi cli conf.d fpm}
so which folder is unneeded especially (cgi cli fpm) and what configuration needed ?
-when restarting nginx I got that messgae: Restarting nginx: nginx: [emerg] "fastcgi_pass" directive is duplicate in /etc/nginx/sites-enabled/default~:70 nginx: configuration file /etc/nginx/nginx.conf test failed