{"id":5387,"date":"2014-11-21T14:51:45","date_gmt":"2014-11-21T20:51:45","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=5387"},"modified":"2022-06-03T03:46:33","modified_gmt":"2022-06-03T08:46:33","slug":"install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/","title":{"rendered":"How to Install GitLab on CentOS 7"},"content":{"rendered":"
<\/div>

\"How<\/p>\n

We’ll show you how to install GitLab on CentOS 7. GitLab is a self-hosted git repository management system. It is used by more than 100,000 organizations worldwide. Today we will show you how to install GitLab on your CentOS VPS<\/a>. For instructions about how to install GitLab on an Ubuntu\u00a0VPS<\/a>, you can check our Install GitLab on Debian<\/a>\u00a0tutorial. Installing GitLab on CentOS 7 is fairly easy task and it should take 10 minutes for the installation.<\/p>\n

<\/p>\n

To run GitLab on your server you will need to have Ruby 2.0 or 2.1 installed on your server. GitLab requires 2 CPU cores and 2GB of RAM so it can support up to 500 users. This makes our SSD 2 VPS hosting plan<\/a> suitable for your needs. You will need to have MySQL or PostgreSL and Redis. Additional packages will be installed. When it comes to\u00a0this tutorial, we are using our CentOS 6 64bit full template.<\/p>\n

Step 1: Add the\u00a0required repositories to your system<\/h3>\n

The first step is to add the required repositories to your system. You can do this\u00a0using the following commands:<\/p>\n

wget -O \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-6 https:\/\/www.fedoraproject.org\/static\/0608B895.txt\nrpm --import \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-6\nrpm -Uvh http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm\nwget -O \/etc\/yum.repos.d\/PUIAS_6_computational.repo https:\/\/gitlab.com\/gitlab-org\/gitlab-recipes\/raw\/master\/install\/centos\/PUIAS_6_computational.repo\nwget -O \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-puias http:\/\/springdale.math.ias.edu\/data\/puias\/6\/x86_64\/os\/RPM-GPG-KEY-puias\nrpm --import \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-puias<\/pre>\n

Step 2: Installing the required packages<\/h3>\n

Next thing you need to do is update all your system software, remove the unnecessary packages and install the required packages.<\/p>\n

yum update -y\nyum remove git httpd sendmail -y\nyum -y install nginx zlib-devel openssl-devel git redis perl-CPAN ncurses-devel gdbm-devel glibc-devel tcl-devel curl-devel byacc db4-devel sqlite-devel libxml2 libxml2-devel libffi libffi-devel libxslt libxslt-devel libyaml libyaml-devel libicu libicu-devel system-config-firewall-tui sudo wget crontabs gettext perl-Time-HiRes cmake gettext-devel readline readline-devel libcom_err-devel.i686 libcom_err-devel.x86_64 expat-devel logwatch logrotate patch\n<\/pre>\n

Step 3: Create user<\/h3>\n

Create a system user for GitLab:<\/p>\n

adduser --shell \/bin\/bash --home-dir \/home\/git\/ git<\/pre>\n

Now edit the ‘\/etc\/sudoers’ file and add ‘\/usr\/local\/bin’ at the end of:<\/p>\n

Defaults    secure_path = \/sbin:\/bin:\/usr\/sbin:\/usr\/bin<\/pre>\n

It should look like this:<\/p>\n

Defaults    secure_path = \/sbin:\/bin:\/usr\/sbin:\/usr\/bin:\/usr\/local\/bin<\/pre>\n

Step 4:\u00a0Download Git source<\/h3>\n

Download Git source and extract it in your ‘\/tmp’ directory. At the moment of writing, the latest version available is 2.1.3.<\/p>\n

mkdir \/tmp\/git\ncd \/tmp\/git\nwget https:\/\/www.kernel.org\/pub\/software\/scm\/git\/git-2.1.3.tar.gz \ntar -xzvf git-2.1.3.tar.gz\ncd git-2.1.3\/\n.\/configure\nmake\nmake prefix=\/usr\/local install\n\n\"install<\/pre>\n

Step 5: Download and install Ruby<\/h3>\n

After doing this, you will need to download and install Ruby on your CentOS VPS<\/a>. At the moment of writing, the latest version available is 2.1.5.<\/p>\n

mkdir \/tmp\/ruby\ncd \/tmp\/ruby\nwget ftp:\/\/ftp.ruby-lang.org\/pub\/ruby\/2.1\/ruby-2.1.5.tar.gz \ntar -xzvf ruby-2.1.5.tar.gz\ncd ruby-2.1.5\n.\/configure --disable-install-rdoc\nmake\nmake prefix=\/usr\/local install<\/pre>\n

Step 6: Create new database<\/h3>\n

Once\u00a0the installation of\u00a0Ruby is completed, it is time to create a database. You can do this\u00a0using the following commands:<\/p>\n

mysql -u root -p \nCREATE USER 'git'@'localhost' IDENTIFIED BY 'PaSsWoRd';\nCREATE DATABASE `gitlabdb` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;\nGRANT ALL ON `gitlabdb`.* TO 'git'@'localhost';<\/pre>\n

Do not forget to change ‘PaSsWoRd’ with a password of your choice.<\/p>\n

Step 7: Configure Redis<\/h3>\n

Now, let’s configure Redis. Open the ‘\/etc\/redis.conf’ file with an editor of your choice and set ‘port 0’.<\/p>\n

port 0<\/pre>\n

Then, add the following lines at the end of the file:<\/p>\n

unixsocket \/var\/run\/redis\/redis.sock\nunixsocketperm 0775<\/pre>\n

Restart the service and add git to the redis group:<\/p>\n

service redis restart\nusermod -aG redis git<\/pre>\n

Step 7: Install GitLab on CentOS 7<\/h3>\n

Now, let’s install GitLab. We assume that you have a full root access to your Linux VPS<\/a> so you should execute all these commands as root. Also, you can change the ‘7-4-stable’ to the latest stable version available.<\/p>\n

cd \/home\/git\nsudo -u git -H git clone https:\/\/gitlab.com\/gitlab-org\/gitlab-ce.git -b 7-4-stable gitlab\ncd \/home\/git\/gitlab\nsudo -u git -H cp config\/gitlab.yml.example config\/gitlab.yml<\/pre>\n

Edit ‘config\/gitlab.yml’ and follow the instructions at the top of the file.<\/p>\n

sudo -u git -H nano config\/gitlab.yml<\/pre>\n

Execute the commands:<\/p>\n

chown -R git log\/\nchmod -R u+rwX log\/\nchown -R git tmp\/\nchmod -R u+rwX tmp\/\nchmod -R u+rwX tmp\/sockets\/\nchmod -R u+rwX tmp\/pids\/\nchmod -R u+rwX  public\/uploads\nsudo -u git -H mkdir \/home\/git\/gitlab-satellites\nchmod u+rwx,g=rx,o-rwx \/home\/git\/gitlab-satellites<\/pre>\n

Then, copy the ‘config\/unicorn.rb.example’ file to ‘config\/unicorn.rb’. Edit the ‘config\/unicorn.rb’ file and set the number of workers to match the number of cores on your CentOS VPS.<\/p>\n

sudo -u git -H cp config\/unicorn.rb.example config\/unicorn.rb\nsudo -u git -H nano config\/unicorn.rb<\/pre>\n

Please note, ‘unicorn.rb’ and ‘gitlab.yml’ should contain\u00a0the same information.<\/p>\n

sudo -u git -H cp config\/initializers\/rack_attack.rb.example config\/initializers\/rack_attack.rb\nsudo -u git -H cp config\/resque.yml.example config\/resque.yml<\/pre>\n

Now, copy ‘config\/database.yml.mysql’ to ‘config\/database.yml’ and edit the file. Please note that you will need to change the secure password with your ‘PaSsWoRd’ value.<\/p>\n

sudo -u git cp config\/database.yml.mysql config\/database.yml\nsudo -u git -H nano config\/database.yml\nsudo -u git -H chmod o-rwx config\/database.yml<\/pre>\n

Install Bundler, gems, GitLab shell and initialize the database.<\/p>\n

gem install bundler\ncd \/home\/git\/gitlab\nsudo -u git -H bundle install --deployment --without development test postgres aws\nsudo -u git -H bundle exec rake gitlab:shell:install[v2.1.0] REDIS_URL=unix:\/var\/run\/redis\/redis.sock RAILS_ENV=production\nrestorecon -Rv \/home\/git\/.ssh\nsudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production GITLAB_ROOT_PASSWORD=YourPassword<\/pre>\n

Please change ‘YourPassword’ with your password. Also, you can review and modify the ‘config.yml’ file.<\/p>\n

sudo -u git -H nano \/home\/git\/gitlab-shell\/config.yml<\/pre>\n

Step 8: Install init script<\/h3>\n

We are approaching the\u00a0end of this tutorial. It is now time to install the init script. You can use the following commands:<\/p>\n

wget -O \/etc\/init.d\/gitlab https:\/\/gitlab.com\/gitlab-org\/gitlab-recipes\/raw\/master\/init\/sysvinit\/centos\/gitlab-unicorn\nchmod +x \/etc\/init.d\/gitlab\nchkconfig --add gitlab<\/pre>\n

Set the logrotate, check the status, compile the assets and then start the GitLab:<\/p>\n

cp lib\/support\/logrotate\/gitlab \/etc\/logrotate.d\/gitlab\nsudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production\nsudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production\nservice gitlab start<\/pre>\n

Step 9: Configure Nginx<\/h3>\n

OK, it is time to configure Nginx on your server and generate an SSL.<\/p>\n

get -O \/etc\/nginx\/conf.d\/gitlab.conf https:\/\/gitlab.com\/gitlab-org\/gitlab-ce\/raw\/master\/lib\/support\/nginx\/gitlab-ssl\n<\/pre>\n
mkdir \/etc\/nginx\/ssl\ncd \/etc\/nginx\/ssl\/\nopenssl genrsa -des3 -out gitlab.key 1024\nopenssl req -new -key gitlab.key -out gitlab.csr\ncp gitlab.key gitlab.key.org\nopenssl rsa -in gitlab.key.org -out gitlab.key\nopenssl x509 -req -days 365 -in gitlab.csr -signkey gitlab.key -out gitlab.crt<\/pre>\n

Edit the ‘\/etc\/nginx\/conf.d\/gitlab.conf’ file to match your FQDN and your SSL path. Also, you will need to comment the following lines:<\/p>\n

#  listen [::]:80 default_server;\n#  listen [::]:443 ssl default_server;<\/pre>\n

Finally, run the following commands:<\/p>\n

usermod -a -G git nginx\nchmod g+rx \/home\/git\/\nservice nginx start\nchkconfig gitlab on\nchkconfig nginx on\nchkconfig redis on<\/pre>\n

That’s it. If you followed closely every single step of this tutorial, you should be able to access your newly installed GitLab using your domain name or your CentOS VPS<\/a> IP address. For example, if your IP address is 12.34.56.78 you need to enter https:\/\/12.34.56.78 .<\/p>\n


\n

\"installingOf course, you don\u2019t have to Install GitLab on CentOS 7, if you use one of our Linux VPS hosting<\/a> services, in which case you can simply ask our expert Linux admins to install GitLab for you. They are available 24\u00d77 and will take care of your request immediately. You can also check our guide on How to Install GitLab on Ubuntu 18.04<\/a>.<\/p>\n

PS. If you liked this post, on how to install GitLab on CentOS 7, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"

We’ll show you how to install GitLab on CentOS 7. GitLab is a self-hosted git repository management system. It is … <\/p>\n

Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":27671,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,1702,13,1707],"tags":[626,627,625],"yoast_head":"\nHow to Install GitLab on CentOS 7 - RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install GitLab on CentOS 7 - RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install GitLab on CentOS 7 - RoseHosting\" \/>\n<meta property=\"og:description\" content=\"How to Install GitLab on CentOS 7 - RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2014-11-21T20:51:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:46:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-Install-GitLab-on-CentOS-7.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install GitLab on CentOS 7\",\"datePublished\":\"2014-11-21T20:51:45+00:00\",\"dateModified\":\"2022-06-03T08:46:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/\"},\"wordCount\":768,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-Install-GitLab-on-CentOS-7.jpg\",\"keywords\":[\"gitlab centos nginx\",\"gitlab linux vps\",\"gitlab on centos\"],\"articleSection\":[\"CentOS\",\"Databases\",\"Tutorials\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/\",\"name\":\"How to Install GitLab on CentOS 7 - RoseHosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-Install-GitLab-on-CentOS-7.jpg\",\"datePublished\":\"2014-11-21T20:51:45+00:00\",\"dateModified\":\"2022-06-03T08:46:33+00:00\",\"description\":\"How to Install GitLab on CentOS 7 - RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#primaryimage\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-Install-GitLab-on-CentOS-7.jpg\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-Install-GitLab-on-CentOS-7.jpg\",\"width\":742,\"height\":372,\"caption\":\"How to Install GitLab on CentOS 7\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.rosehosting.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install GitLab on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"name\":\"RoseHosting\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/RoseHosting\",\"https:\/\/x.com\/rosehosting\",\"https:\/\/www.linkedin.com\/in\/rosehosting\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\/\/www.rosehosting.com\",\"https:\/\/www.facebook.com\/rosehosting.helpdesk\"],\"url\":\"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install GitLab on CentOS 7 - RoseHosting","description":"How to Install GitLab on CentOS 7 - RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/","og_locale":"en_US","og_type":"article","og_title":"How to Install GitLab on CentOS 7 - RoseHosting","og_description":"How to Install GitLab on CentOS 7 - RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2014-11-21T20:51:45+00:00","article_modified_time":"2022-06-03T08:46:33+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-Install-GitLab-on-CentOS-7.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install GitLab on CentOS 7","datePublished":"2014-11-21T20:51:45+00:00","dateModified":"2022-06-03T08:46:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/"},"wordCount":768,"commentCount":1,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-Install-GitLab-on-CentOS-7.jpg","keywords":["gitlab centos nginx","gitlab linux vps","gitlab on centos"],"articleSection":["CentOS","Databases","Tutorials","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/","url":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/","name":"How to Install GitLab on CentOS 7 - RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-Install-GitLab-on-CentOS-7.jpg","datePublished":"2014-11-21T20:51:45+00:00","dateModified":"2022-06-03T08:46:33+00:00","description":"How to Install GitLab on CentOS 7 - RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-Install-GitLab-on-CentOS-7.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/11\/How-to-Install-GitLab-on-CentOS-7.jpg","width":742,"height":372,"caption":"How to Install GitLab on CentOS 7"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/install-gitlab-on-a-centos-linux-vps-with-nginx-and-mysql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install GitLab on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"]},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/5387"}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=5387"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/5387\/revisions"}],"predecessor-version":[{"id":36655,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/5387\/revisions\/36655"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/27671"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=5387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=5387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=5387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}