Setup Gitlab on Centos 6 with Apache

Hi there,

I have a working Apache 2.4 on Centos 6 with PHP, SSL and all this stuff. It works perfect, but now I want to install GitLab. I tried the installer, but this bricked my Apache and I had to restore my server config from an image, unfortunately. I think the reason was because the GitLab installer installed this nginx webserver, which I don’t know and have never used before. However, I want to use Apache because that runs already and hosts a few sites.

I have already searched the internet for instructions on how to run GitLab with apache, but I am very unsure how to do that properly. Can anyone help me with setting this up?

My environment, as I have said:
Centos 6
Apache 2.4

I want to use GitLab with SSL and Apache. Where shall I start?

Many thanks in advance for any help!

Please see Issue with installing Gitlab on ubuntu server 14.04 (with Apache server)

Hi Kelvin,

thanks for that link. I have configured nging[‘enable’] = false and copied the config file for apache from here:

I do not use SSL for my first tests, so I used gitlab-omnibus-apache24.conf. On my server, I can see the gitlab-ctl status:

run: gitlab-workhorse: (pid 9790) 1687s; run: log: (pid 6280) 2112s
run: logrotate: (pid 9803) 1687s; run: log: (pid 6272) 2112s
run: postgresql: (pid 9811) 1686s; run: log: (pid 6276) 2112s
run: redis: (pid 9822) 1686s; run: log: (pid 6275) 2112s
run: sidekiq: (pid 22455) 248s; run: log: (pid 6273) 2112s
run: unicorn: (pid 24584) 1s; run: log: (pid 6274) 2112s

which looks good to me. However, when I try to connect to my server (I use the hosts file), then I get a 500 “Internal error” and don’t see any gitlab page. What can cause these errors?