@@ -107,7 +107,6 @@ If you can't see it listed, use the folowing command to enable it:
107
107
108
108
### Install the required tools for GitLab
109
109
110
- ::bash
111
110
su -
112
111
yum -y update
113
112
yum -y groupinstall 'Development Tools'
@@ -130,7 +129,6 @@ GitLab will only work correctly with git version 1.8.x or newer. The problem is
130
129
that the available rpms for CentOS stop at git 1.7.1 which is too old for GitLab.
131
130
In order to update, you have to build git from source as it is not yet in any repository:
132
131
133
- ::bash
134
132
su -
135
133
cd /tmp
136
134
yum -y install git perl-ExtUtils-MakeMaker
@@ -154,7 +152,7 @@ installed with:
154
152
### Configure redis
155
153
Make sure redis is started on boot:
156
154
157
- ::bash
155
+
158
156
sudo chkconfig redis on
159
157
160
158
### Configure sendmail
@@ -239,7 +237,7 @@ Now we want all logging of the system to be forwarded to a central email address
239
237
240
238
----------
241
239
242
- # 4. GitLab shell
240
+ ## 4. GitLab shell
243
241
244
242
GitLab Shell is a ssh access and repository management software developed specially for GitLab.
245
243
@@ -269,7 +267,6 @@ cp config.yml.example config.yml
269
267
270
268
Install ` mysql ` and enable the ` mysqld ` service to start on boot:
271
269
272
- ::bash
273
270
su -
274
271
yum install -y mysql-server mysql-devel
275
272
chkconfig mysqld on
@@ -307,6 +304,7 @@ Try connecting to the new database with the new user:
307
304
## 6. GitLab
308
305
309
306
We'll install GitLab into home directory of the user ` git ` :
307
+
310
308
su -
311
309
su - git
312
310
@@ -331,8 +329,7 @@ do so with caution!
331
329
# Copy the example GitLab config
332
330
cp config/gitlab.yml.example config/gitlab.yml
333
331
334
- # Make sure to change "localhost" to the fully-qualified domain name of your
335
- # host serving GitLab where necessary
332
+ # Replace your_domain_name with the fully-qualified domain name of your host serving GitLab
336
333
sed -i 's|localhost|your_domain_name|g' config/gitlab.yml
337
334
338
335
# Change git's path to point to /usr/local/bin/git
@@ -378,11 +375,12 @@ git config --global core.autocrlf input
378
375
# MySQL
379
376
cp config/database.yml{.mysql,}
380
377
381
- Make sure to update username/password in ` config/database.yml ` .
382
- You only need to adapt the production settings (first part).
378
+ Make sure to update username/password in ` config/database.yml ` . You only need to adapt the production settings (first part).
379
+
383
380
If you followed the database guide then please do as follows:
384
- Change ` root ` to ` gitlab ` .
385
- Change ` secure password ` with the value you have given to supersecret.
381
+ * Change ` root ` to ` gitlab ` .
382
+ * Change ` secure password ` with the value you have given to supersecret.
383
+
386
384
You can keep the double quotes around the password.
387
385
388
386
editor config/database.yml
@@ -416,7 +414,7 @@ When done you see 'Administrator account created:'
416
414
Download the init script (will be /etc/init.d/gitlab):
417
415
418
416
su -
419
- wget -O /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/master/init/sysvinit/centos/gitlab-centos
417
+ wget -O /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/master/init/sysvinit/centos/gitlab-unicorn
420
418
chmod +x /etc/init.d/gitlab
421
419
chkconfig --add gitlab
422
420
@@ -472,23 +470,26 @@ Add `nginx` user to `git` group.
472
470
Finally start nginx with:
473
471
474
472
service nginx start
475
-
473
+
476
474
### Apache
477
475
478
476
We will configure apache with module ` mod_proxy ` which is loaded by default when
479
477
installing apache:
478
+
480
479
```
481
480
su -
482
481
yum -y install httpd mod_ssl
483
482
chkconfig httpd on
484
483
wget -O /etc/httpd/conf.d/gitlab.conf https://raw.github.com/gitlabhq/gitlab-recipes/master/web-server/apache/gitlab.conf
485
484
```
485
+
486
486
Open ` /etc/httpd/conf.d/gitlab.conf ` with your editor and replace ` git.example.org ` with your FQDN.
487
487
488
488
Add ` LoadModule ssl_module /etc/httpd/modules/mod_ssl.so ` in ` /etc/httpd/conf/httpd.conf `
489
489
490
490
If you want to run other websites on the same system, you'll need to add in ` /etc/httpd/conf/httpd.conf ` :
491
491
```
492
+
492
493
NameVirtualHost *:80
493
494
<IfModule mod_ssl.c>
494
495
# If you add NameVirtualHost *:443 here, you will also have to change
0 commit comments