So I’ve just managed to install git lab on my server. On my server I currently run my own website, and so I have some nginx configuration stored on there (I’ve just added a couple files to /etc/nginx/sites-available
and then symlinked them to .../sites-enabled
.
Initially when I visited gitlab.mysite.com
It sent me the welcome to nginx page, and I was a little confused by that, I did some searching online and found this article, which pretty much restarts gitlab, nginx and the server, but only starts gitlab back up (nginx not running). After following this, I managed to get onto gitlab, make the root user and get some configuration done.
My issue now is that when I try to start nginx I get the following errors:
user@myserver:~# journalctl -xe
Jul 10 19:43:27 myserver nginx[11067]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jul 10 19:43:27 myserver nginx[11067]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
Jul 10 19:43:27 myserver nginx[11067]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jul 10 19:43:28 myserver nginx[11067]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
Jul 10 19:43:28 myserver nginx[11067]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jul 10 19:43:28 myserver nginx[11067]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
Jul 10 19:43:28 myserver nginx[11067]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jul 10 19:43:29 myserver nginx[11067]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
Jul 10 19:43:29 myserver nginx[11067]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jul 10 19:43:29 myserver nginx[11067]: nginx: [emerg] still could not bind()
Jul 10 19:43:29 myserver systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit nginx.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Jul 10 19:43:29 myserver systemd[1]: nginx.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit nginx.service has entered the 'failed' state with result 'exit-code'.
Jul 10 19:43:29 myserver systemd[1]: Failed to start A high performance web server and a reverse proxy server.
-- Subject: A start job for unit nginx.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
I’m not too familiar with nginx, but my intuition tells me that there’s probably some conflict with my nginx configuration and what gitlab is trying to do.
If anyone has experience hosting gitlab on their own server, while hosting websites and has some ideas, please let me know. Thanks in advance.