- #HOW TO INSTALL GITLAB ON OUR OWN SERVER HOW TO#
- #HOW TO INSTALL GITLAB ON OUR OWN SERVER INSTALL#
- #HOW TO INSTALL GITLAB ON OUR OWN SERVER UPDATE#
- #HOW TO INSTALL GITLAB ON OUR OWN SERVER UPGRADE#
- #HOW TO INSTALL GITLAB ON OUR OWN SERVER SOFTWARE#
GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO save the file and execute the following command (entering your MySQL root password from the first step at the prompt) to have MySQL execute your queries: cat tempfile | mysql -u root -p CREATE USER IDENTIFIED BY '$password' ĬREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci` Keep track of this password as this will be your GitLab’s database password. Paste in the following, changing the $password on the first line to a real password. To do this we’ll first save the necessary SQL queries to a temporary file. We now need to create a MySQL user for GitLab to use. MySQL is now installed and the root password is set to the value you chose in the last step.
#HOW TO INSTALL GITLAB ON OUR OWN SERVER INSTALL#
sudo apt-get install -y mysql-server mysql-client libmysqlclient-dev Set it to whatever you like, but note it down as you will need it for the next steps. During the install process it will ask you to set a MySQL root password. The first step is to install MySQL with the below command. We’ll set up GitLab to use a MySQL backend. Now you can run the GitLab shell installer: sudo -u git -H. So if your domain is the line should look like this: gitlab_url: "" Near the top there will be a line that looks like: gitlab_url: " Change the portion to match your domain name. If you have a domain name pointed at this VPS, then you should take the time to edit config.yml to use this domain. You now have a copy of GitLab Shell 1.7.0, and the example config.yml is ready to go. Now we need to install the Bundler gem: sudo gem install bundler -no-ri -no-rdocĪnd create a git user for GitLab to use: sudo adduser -disabled-login -gecos 'GitLab' gitĭownload the GitLab shell with the following commands: cd /home/git If the output looks like the below then you’re good: ruby 2.0.0p247 ( revision 41674) When it’s finished you can check to make sure that you have Ruby 2 (not 1.8) installed by doing a: ruby -version Install Ruby 2.0 (this will take a while): mkdir /tmp/ruby & cd /tmp/ruby Make sure you don’t have Ruby 1.8 installed (on a default Ubuntu 12.04 VPS it won’t be). Sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl git-core openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev
#HOW TO INSTALL GITLAB ON OUR OWN SERVER UPDATE#
The first step is to install some required packages: sudo apt-get update Make sure you have Ruby 2.0 and Python 2.7 installed before beginning. If you are using an existing VPS (droplet) or a different Linux distro you may have issues, especially with incompatible Python and Ruby versions.
#HOW TO INSTALL GITLAB ON OUR OWN SERVER SOFTWARE#
We’ll be installing all the necessary software needed to make GitLab work. This tutorial assumes you’re using a brand new Ubuntu 12.04 VPS. You can also launch a GitLab droplet on DigitalOcean in one click with our application image. Today, it is much simpler to get it up and running using the GitLab’s “omnibus” package. When originally written, this was the only option.
#HOW TO INSTALL GITLAB ON OUR OWN SERVER HOW TO#
Note: This tutorial explains how to install GitLab from source. This tutorial will walk you through setting up a DigitalOcean VPS as a GitLab server. GitLab provides a simple but powerful web based interface to your Git repositories a la GitHub, only you can host it on your own cloud server, control access as you see fit, and repo size is limited only by how much storage space your server has. So how can you get the control, flexibility and ease of use of something like Github or BitBucket without hosting your git repositories on servers outside of your control?Įnter GitLab. This is wonderful if you’re writing open source software, but when writing closed source software you may not want to trust your code to a third party server. Git and GitHub are awesome tools that make managing and administering lots of Git repositories and their associated permissions a breeze. You can use the search functionality at the top of the page to find a more recent version. If available, we strongly recommend using a guide written for the version of Ubuntu you are using. This guide might still be useful as a reference, but may not work on other Ubuntu releases. Reason: Ubuntu 12.04 reached end of life (EOL) on Apand no longer receives security patches or updates.
#HOW TO INSTALL GITLAB ON OUR OWN SERVER UPGRADE#
Upgrade from Ubuntu 14.04 to Ubuntu 16.04.If you are currently operate a server running Ubuntu 12.04, we highly recommend upgrading or migrating to a supported version of Ubuntu: This article covers a version of Ubuntu that is no longer supported.