I'm trying to track down a problem with nginx.
service nginx start Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
Then looking at the log:
root@admin:~# systemctl status nginx.service ● nginx.service - LSB: Stop/start nginx Loaded: loaded (/etc/init.d/nginx; bad; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2019-12-24 08:06:17 GMT; 18s ago Docs: man:systemd-sysv-generator(8) Process: 3166 ExecStart=/etc/init.d/nginx start (code=exited, status=1/FAILURE) Dec 24 08:06:17 admin.xxx.com systemd: Starting LSB: Stop/start nginx... Dec 24 08:06:17 admin.xxx.com systemd: nginx.service: Control process exited, code=exited status=1 Dec 24 08:06:17 admin.xxx.com systemd: Failed to start LSB: Stop/start nginx. Dec 24 08:06:17 admin.xxx.com systemd: nginx.service: Unit entered failed state. Dec 24 08:06:17 admin.xxx.com systemd: nginx.service: Failed with result 'exit-code'.
When looking to see if the port is busy, I see:
sudo netstat -anp | grep ':80 ' tcp 0 0 184.108.40.206:80 0.0.0.0:* LISTEN 1062/nginx.conf tcp6 0 0 :::80 :::* LISTEN 1062/nginx.conf
The stupid thing is that nxinx DOES seem to be running! The server uses nginx as a front end (and then Apache2 as the reverse proxy for Perl scripts). So if I go to a site on the server it loads fine: https://bodywisegym.co.uk/
I can't figure it out :/