Gitlab 6.0 (6.x) installation instructions with SCL for Rhel 6.4 and Centos 6.4

Step 1a. If you have a rhel subscription subscribe to the base, optional and redhat software collection beta channel. You will also need the official nginx repository (http://wiki.nginx.org/Install#Official_Red_Hat.2FCentOS_packages).

Step 1. If your on Centos add the SCL repo to your Rhel/Centos installation and bring in the official nginx repository (http://wiki.nginx.org/Install#Official_Red_Hat.2FCentOS_packages ).

Make sure you are also subscribed to the rhel6-server optional channel. Then install the Development tools

Step 2. As rhel/centos still did not update the git version 1.7.1-3.el6_4.1 and we need at least 1.7.10 we also need to add the rpm forge package.

Enable the rpmforge extras

Step 3. Gitlab also needs redis which is available on epel.

Step 4. Lets install ruby193 and git httpd mysql-server and start all the servies

Step 5. Add the user git and set the git globals

Step 6. su to the git user to clone the git repos

Step 7. Extend your .bashrc to have the following content which will load our scl environment for us when we login

Step 8. Make sure the paths are right. You can test this by executing env.

Step 9. Logout and login again as user gitlab. If everything went fine you should be able to do this

Step 10. As git cd into the git-shell dir and checkout version 1.7.1

Step 11. Copy the file config.yml.example to config.yml in the git-shell directory
Step 12. Install gitshell

Step 13. IMPORTANT. Do this still as the git user! checkout gitlab 6

Step 14. Lets configure Gitlab and install the gems.

Step 15. Configure Gitlab
Copy the example GitLab config and edit the necessary fields.

Step 16. Copy the /home/git/gitlab/config/unicorn.rb.example to /home/git/gitlab/config/unicorn.rb and configure it. Uncomment lines

Step 17. Confugre Mysql and change the user and password in the database.yml file

Step 18. Create a Mysql User

Step 19. Check if you can login as the gitlab user

Step 20. Secure MySQL by entering a root password and say “Yes” to all questions with the next command

Step 21. Add this as your nginx config in /etc/nginx/conf.d/gitlab.conf

Step 22. From the gitlab dir execute if installing with mysql support

Step 23. If everything went fine you see:

Step 24. As root Get the init script.

Step 25. If you want you can now configure the mail part. Open /etc/mail/sendmail.mc and add or modify the following lines

Step 26. Restart sendmail

Step 27. forward all email to a centrail mail address

Step 28. Your done. Start up your server

2 thoughts on “Gitlab 6.0 (6.x) installation instructions with SCL for Rhel 6.4 and Centos 6.4

  • dear sir:

    in the step 22, i was not able to install the modernizr-2.6.2. i’ve manually installed it. but, i still can not complete the step 22. wish you could give me some hints. thank you.

    best, sam

    bundle install –deployment –without development test postgres
    Fetching source index from https://rubygems.org/
    Could not find modernizr-2.6.2 in any of the sources
    [git@git gitlab]$ bundle exec rake gitlab:setup RAILS_ENV=production
    Could not find rake-10.1.0 in any of the sources
    Run bundle install to install missing gems.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


Hit Counter provided by laptop reviews