After I removed the version 0.7.x which was delivered by the Debian standard packages, I installed the version 1.4.1 of nginx by source.
It is possible to start nginx with service nginx start and I see that nginx is reserving the port 80 when I do netstat.
netstat -apn | grep nginx output:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3115/nginx
The problem is, when I do service nginx status or service nginx stop I get this message:
could not access PID file for nginx ... failed!
Who can I fix this? And how do I prevent getting this problem?
EDIT: solution
remove nginx- then go to the source and
./configure --pid-path=/var/run/nginx.pid makecheckinstall make install