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
Copy file name to clipboardExpand all lines: install/CentOS_6.md
+20-22
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
# Maintainer: @nielsbasjes
3
3
# App Version: 5.1
4
4
5
-
**This installation guide was created for CentOS 6.3 in combination with gitlab 5.1 and tested on it.**
5
+
**This installation guide was created for CentOS 6.4 in combination with gitlab 5.1 and tested on it.**
6
6
We also tried this on RHEL 6.3 and found that there are subtle differences that we so far have only documented in part.
7
7
8
8
Please read `doc/install/requirements.md` for hardware and platform requirements.
@@ -21,13 +21,13 @@ following the contribution guide (see `CONTRIBUTING.md`).
21
21
22
22
**Note about accounts:**
23
23
In most cases you are required to run commands as the 'root' user.
24
-
When it is required you should be either the 'git' or 'gitlab' user it will be indicated with a line like this
24
+
When it is required you should be either the 'git' or 'root' user it will be indicated with a line like this
25
25
26
26
*logged in as **git***
27
27
28
28
The best way to become that user is by logging in as root and typing
29
29
30
-
su - gitlab
30
+
su - git
31
31
32
32
**Note about security:**
33
33
Many setup guides of Linux software simply state: "disable selinux and firewall".
@@ -40,7 +40,7 @@ This guide does not disable any of them, we simply configure them as they were i
40
40
41
41
The GitLab installation consists of setting up the following components:
42
42
43
-
1. Installing the base operating system (CentOS 6.3 Minimal) and Packages / Dependencies
43
+
1. Installing the base operating system (CentOS 6.4 Minimal) and Packages / Dependencies
44
44
2. Ruby
45
45
3. System Users
46
46
4. GitLab shell
@@ -49,14 +49,14 @@ The GitLab installation consists of setting up the following components:
49
49
50
50
----------
51
51
52
-
# 1. Installing the operating system (CentOS 6.3 Minimal)
52
+
# 1. Installing the operating system (CentOS 6.4 Minimal)
53
53
54
-
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.
54
+
We start with a completely clean CentOS 6.4 "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.
55
55
56
56
Note that during the installation you use the *"Configure Network"* option (it's a button in the same screen where you specify the hostname) to enable the *"Connect automatically"* option for the network interface and hand (usually eth0).
57
57
**If you forget this option the network will NOT start at boot.**
58
58
59
-
The end result is a bare minimum CentOS installation that effectively only has network connectivity and no services at all.
59
+
The end result is a bare minimum CentOS installation that effectively only has network connectivity and (almost) no services at all.
60
60
61
61
## Updating and adding basic software and services
62
62
### Add EPEL repository
@@ -65,7 +65,7 @@ The end result is a bare minimum CentOS installation that effectively only has n
### Install the required tools for gitlab and gitolite
68
+
### Install the required tools for gitlab
69
69
70
70
*logged in as **root***
71
71
@@ -82,7 +82,7 @@ The end result is a bare minimum CentOS installation that effectively only has n
82
82
83
83
**IMPORTANT NOTE About Redhat EL 6**
84
84
85
-
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.
85
+
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. Someone told me that you can get these "packages direct from RHEL by enabling the “RHEL Server Optional” Channel in RHN.". I haven't tried this yet.
86
86
87
87
### Update CentOS to the latest set of patches
88
88
@@ -96,7 +96,6 @@ Just make sure it is started at the next reboot
96
96
*logged in as **root***
97
97
98
98
chkconfig redis on
99
-
service redis start
100
99
101
100
## Configure mysql
102
101
Make sure it is started at the next reboot and start it immediately so we can configure it.
@@ -117,7 +116,7 @@ Just make sure it is started at the next reboot
117
116
118
117
chkconfig httpd on
119
118
120
-
We want to be able to reach gitlab using the normal http ports (i.e. not the :3000 thing)
119
+
We want to be able to reach gitlab using the normal http ports (i.e. not the :9292 thing)
121
120
So we create a file called **/etc/httpd/conf.d/gitlab.conf** with this content (replace the git.example.org with your hostname!!).
122
121
123
122
<VirtualHost *:80>
@@ -136,7 +135,7 @@ OPTIONAL: If you want to run other websites on the same system you'll need to en
136
135
137
136
NameVirtualHost *:80
138
137
139
-
Poke an selinux hole for httpd so it can httpd can be in front of gitlab
138
+
Poke a selinux hole for httpd so it can httpd can be in front of gitlab
140
139
141
140
setsebool -P httpd_can_network_connect on
142
141
@@ -269,6 +268,7 @@ Now we want all logging of the system to be forwarded to a central email address
269
268
\q
270
269
271
270
Try connecting to the new database with the new user
271
+
272
272
mysql -u gitlab -p -D gitlabhq_production
273
273
274
274
----------
@@ -287,7 +287,6 @@ GitLab Shell is a ssh access and repository management software developed specia
0 commit comments