You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Described the biggest problem when installing on RHEL 6.3
Additional clarification about switching users
Signed-off-by: Niels Basjes <[email protected]>
Copy file name to clipboardExpand all lines: install/CentOS_6.md
+26-11Lines changed: 26 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
**This installation guide was created for CentOS 6.3 in combination with gitlab 4.0 and tested on it.**
2
+
We also tried this on RHEL 6.3 and found that there are subtle differences that we so far have only documeted in part.
2
3
3
4
Please read `doc/install/requirements.md` for hardware and platform requirements.
4
5
@@ -36,17 +37,17 @@ This guide does not disable any of them, we simply configure them as they were i
36
37
# Overview
37
38
38
39
The GitLab installation consists of setting up the following components:
39
-
1. Installing the operating system (CentOS 6.3 Minimal) and Packages / Dependencies
40
+
41
+
1. Installing the base operating system (CentOS 6.3 Minimal) and Packages / Dependencies
40
42
2. Ruby
41
43
3. System Users
42
44
4. Gitolite
43
-
5. Database
44
-
6. GitLab
45
-
7. Nginx
45
+
5. GitLab
46
+
46
47
47
48
----------
48
49
49
-
# Installing the operating system (CentOS 6.3 Minimal)
50
+
# 1. Installing the operating system (CentOS 6.3 Minimal)
50
51
51
52
We start with a completely clean CentOS 6.3 "minimal" installation which can be accomplished by downloading the appropriate installation iso file. Just boot the system of the iso file and install the system.
52
53
@@ -77,6 +78,10 @@ The end result is a bare minimum CentOS installation that effectively only has n
During an installation on an official RHEL 6.3 we found that some packages (in our case gdbm-devel, libffi-devel and libicu-devel) were NOT installed. You MUST make sure that all the packages are installed. The simplest way is to run the above command for a second time and you'll see quite easily of everything is either already installed or "No package XXX available". When you run into this issue you can try installing these required packages from the CentOS distribution.
84
+
80
85
### Update CentOS to the latest set of patches
81
86
82
87
*logged in as root*
@@ -153,7 +158,6 @@ The quick way is to put this in the file called **/etc/sysconfig/iptables**
153
158
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
154
159
COMMIT
155
160
156
-
157
161
## Configure email
158
162
159
163
cd /etc/mail
@@ -329,8 +333,7 @@ Check the [Trouble Shooting Guide](https://github.com/gitlabhq/gitlab-public-wik
329
333
and make sure you have followed all of the above steps carefully.
330
334
331
335
----------
332
-
333
-
# 6. GitLab
336
+
# 5. GitLab
334
337
335
338
*logged in as gitlab*
336
339
@@ -398,6 +401,10 @@ The config should look something like this (where supersecret is replaced with y
398
401
# socket: /tmp/mysql.sock
399
402
400
403
## Install Gems
404
+
*logged in as **gitlab***
405
+
406
+
logout
407
+
401
408
*logged in as **root***
402
409
403
410
cd /home/gitlab/gitlab
@@ -406,7 +413,7 @@ The config should look something like this (where supersecret is replaced with y
406
413
407
414
su - gitlab
408
415
409
-
*logged in as gitlab*
416
+
*logged in as **gitlab***
410
417
411
418
cd /home/gitlab/gitlab
412
419
@@ -425,6 +432,9 @@ used for the `email.from` setting in `config/gitlab.yml`)
425
432
git config --global user.email "gitlab@localhost"
426
433
427
434
## Setup GitLab Hooks
435
+
*logged in as **gitlab***
436
+
437
+
logout
428
438
429
439
*logged in as **root***
430
440
@@ -434,6 +444,8 @@ used for the `email.from` setting in `config/gitlab.yml`)
434
444
435
445
## Initialise Database and Activate Advanced Features
436
446
447
+
*logged in as **root***
448
+
437
449
su - gitlab
438
450
439
451
*logged in as **gitlab***
@@ -445,7 +457,11 @@ The previous command will ask you for the root password of the mysql database an
445
457
446
458
## Install Init Script
447
459
448
-
Download the init script (will be /etc/init.d/gitlab):
460
+
Download the init script (will be /etc/init.d/gitlab)
461
+
462
+
*logged in as **gitlab***
463
+
464
+
logout
449
465
450
466
*logged in as root*
451
467
@@ -463,7 +479,6 @@ Start your GitLab instance:
463
479
# or
464
480
/etc/init.d/gitlab start
465
481
466
-
467
482
## Check Application Status
468
483
469
484
Check if GitLab and its environment is configured correctly:
0 commit comments