I'm getting a bit frustrated here. I want port 80 for apache2 but nginx has stolen that port apparently.
I cant find where to remove this, the config for nginx say its listening to port 8000 and 8001
what i can find is that the PID/Program name "6021/nginx -g daemo" uses this as local adress 127.0.0.1:80.
When i do systemctl status nginx
this is the info i get the following
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-05-05 01:33:40 CEST; 5s ago
Process: 6110 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)
Process: 6118 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 6113 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 6120 (nginx)
Tasks: 17
Memory: 8.9M
CPU: 46ms
CGroup: /system.slice/nginx.service
├─6120 nginx: master process /usr/sbin/nginx -g daemon on; master_process on
├─6121 nginx: worker process
├─6122 nginx: worker process
├─6123 nginx: worker process
├─6124 nginx: worker process
├─6125 nginx: worker process
├─6126 nginx: worker process
├─6127 nginx: worker process
├─6128 nginx: worker process
├─6129 nginx: worker process
├─6130 nginx: worker process
├─6131 nginx: worker process
├─6132 nginx: worker process
├─6133 nginx: worker process
├─6134 nginx: worker process
├─6135 nginx: worker process
└─6136 nginx: worker process
May 05 01:33:40 Headsrv systemd[1]: Starting A high performance web server and a reverse proxy server...
May 05 01:33:40 Headsrv systemd[1]: Started A high performance web server and a reverse proxy server.
I have tried to run the command grep -r "127.0.0.1:80" /*
and grep -r "nginx -g daemo" /*
but no results, were the hell is nginx getting this port conf!?!
Any tips for troubleshooting is gold to me since i've run in to a wall now..
And before someone ask i have edited /etc/nginx/conf.d/wok.conf and /etc/nginx/sites-available/default to not using port 80