1. Remove apache2 because it serves stuff on your port 80. GitLab use that same port by default.
sudo apt purge apache2*
sudo autoremove
2. Install postgresql following official instructions. It already support Ubuntu 21.10.
https://www.postgresql.org/download/l...
3. (Optional) Install pgAdmin4
https://ftp.postgresql.org/pub/pgadmi...
Download both server and desktop. Install server first, then desktop.
sudo apt install ./pgadmin4......server
sudo apt install ./pgadmin4....desktop
4. Download GitLab
https://packages.gitlab.com/gitlab/gi...
(download button at upper right)
5. Install GItLab
sudo apt install ./gitlab...
6. Configure 'root' user
gitlab-rails console
find root user
user = User.where(id: 1).first
modify your password
user.password = 'secret_pass'
user.password_confirmation = 'secret_pass'
save your password
user.save!
7. Visit localhost:80 (80 is default port so can be omitted), enter user 'root', password (whatever you configured in step 6) to log in.