I'm trying to install valet on Ubuntu 17.10 but I have problems with the nginx package which is requested. It gives me this error:
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2018-05-10 15:42:16 -03; 32ms ago
Docs: man:nginx(8)
Process: 14383 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Process: 14382 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
may 10 15:42:14 hatshep-Lenovo-ideapad-310-14IKB nginx[14383]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
may 10 15:42:15 hatshep-Lenovo-ideapad-310-14IKB nginx[14383]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
may 10 15:42:15 hatshep-Lenovo-ideapad-310-14IKB nginx[14383]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
may 10 15:42:15 hatshep-Lenovo-ideapad-310-14IKB nginx[14383]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
may 10 15:42:15 hatshep-Lenovo-ideapad-310-14IKB nginx[14383]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
may 10 15:42:16 hatshep-Lenovo-ideapad-310-14IKB nginx[14383]: nginx: [emerg] still could not bind()
may 10 15:42:16 hatshep-Lenovo-ideapad-310-14IKB systemd[1]: nginx.service: Control process exited, code=exited status=1
may 10 15:42:16 hatshep-Lenovo-ideapad-310-14IKB systemd[1]: Failed to start A high performance web server and a reverse proxy server.
may 10 15:42:16 hatshep-Lenovo-ideapad-310-14IKB systemd[1]: nginx.service: Unit entered failed state.
may 10 15:42:16 hatshep-Lenovo-ideapad-310-14IKB systemd[1]: nginx.service: Failed with result 'exit-code'.