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/README.md
+63-61
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
```
2
2
Distribution : CentOS 6.5 Minimal
3
-
GitLab version : 6.0 - 7.0
3
+
GitLab version : 6.0 - 7.1
4
4
Web Server : Apache, Nginx
5
5
Init system : sysvinit
6
6
Database : MySQL, PostgreSQL
@@ -190,7 +190,7 @@ Make sure Git is version 1.7.10 or higher, for example 1.7.12 or 1.8.4
190
190
191
191
git --version
192
192
193
-
If not install it from source. Remove the system Git:
193
+
If not, install it from source. First remove the system Git:
194
194
195
195
yum -y remove git
196
196
@@ -201,8 +201,8 @@ Install the pre-requisite files for Git compilation:
201
201
Download and extract it:
202
202
203
203
mkdir /tmp/git && cd /tmp/git
204
-
curl --progress https://git-core.googlecode.com/files/git-1.9.0.tar.gz | tar xz
205
-
cd git-1.9.0/
204
+
curl --progress https://www.kernel.org/pub/software/scm/git/git-2.0.0.tar.gz | tar xz
205
+
cd git-2.0.0/
206
206
./configure
207
207
make
208
208
make prefix=/usr/local install
@@ -232,8 +232,8 @@ Remove any other Ruby build if it is still present:
232
232
Download Ruby and compile it:
233
233
234
234
mkdir /tmp/ruby && cd /tmp/ruby
235
-
curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p481.tar.gz | tar xz
236
-
cd ruby-2.0.0-p481
235
+
curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz | tar xz
236
+
cd ruby-2.1.2
237
237
./configure --disable-install-rdoc
238
238
make
239
239
make prefix=/usr/local install
@@ -277,58 +277,7 @@ Save and exit.
277
277
278
278
## 4. Database
279
279
280
-
### 4.1 MySQL
281
-
282
-
Install `mysql` and enable the `mysqld` service to start on boot:
283
-
284
-
yum install -y mysql-server mysql-devel
285
-
chkconfig mysqld on
286
-
service mysqld start
287
-
288
-
Ensure you have MySQL version 5.5.14 or later:
289
-
290
-
mysql --version
291
-
292
-
Secure your installation:
293
-
294
-
mysql_secure_installation
295
-
296
-
Login to MySQL (type the database root password):
297
-
298
-
mysql -u root -p
299
-
300
-
301
-
Create a user for GitLab (change $password in the command below to a real password you pick):
302
-
303
-
CREATE USER 'git'@'localhost' IDENTIFIED BY '$password';
304
-
305
-
Ensure you can use the InnoDB engine which is necessary to support long indexes.
306
-
If this fails, check your MySQL config files (e.g. `/etc/mysql/*.cnf`, `/etc/mysql/conf.d/*`) for the setting "innodb = off".
307
-
308
-
SET storage_engine=INNODB;
309
-
310
-
Create the GitLab production database:
311
-
312
-
CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
313
-
314
-
Grant the GitLab user necessary permissions on the table:
315
-
316
-
GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'git'@'localhost';
317
-
318
-
Quit the database session:
319
-
320
-
\q
321
-
322
-
Try connecting to the new database with the new user:
323
-
324
-
sudo -u git -H mysql -u git -p -D gitlabhq_production
325
-
326
-
Type the password you replaced $password with earlier.
327
-
Quit the database session:
328
-
329
-
\q
330
-
331
-
### 4.2 PostgreSQL
280
+
### 4.1 PostgreSQL (recommended)
332
281
333
282
NOTE: because we need to make use of extensions we need at least pgsql 9.1 and the default 8.x on centos will not work. We need to get the PGDG repositories enabled
334
283
@@ -402,6 +351,57 @@ to not get ident issues (you can use trust over ident):
402
351
Check the official [documentation][psql-doc-auth] for more information on
403
352
authentication methods.
404
353
354
+
### 4.2 MySQL
355
+
356
+
Install `mysql` and enable the `mysqld` service to start on boot:
357
+
358
+
yum install -y mysql-server mysql-devel
359
+
chkconfig mysqld on
360
+
service mysqld start
361
+
362
+
Ensure you have MySQL version 5.5.14 or later:
363
+
364
+
mysql --version
365
+
366
+
Secure your installation:
367
+
368
+
mysql_secure_installation
369
+
370
+
Login to MySQL (type the database root password):
371
+
372
+
mysql -u root -p
373
+
374
+
375
+
Create a user for GitLab (change $password in the command below to a real password you pick):
376
+
377
+
CREATE USER 'git'@'localhost' IDENTIFIED BY '$password';
378
+
379
+
Ensure you can use the InnoDB engine which is necessary to support long indexes.
380
+
If this fails, check your MySQL config files (e.g. `/etc/mysql/*.cnf`, `/etc/mysql/conf.d/*`) for the setting "innodb = off".
381
+
382
+
SET storage_engine=INNODB;
383
+
384
+
Create the GitLab production database:
385
+
386
+
CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
387
+
388
+
Grant the GitLab user necessary permissions on the table:
389
+
390
+
GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'git'@'localhost';
391
+
392
+
Quit the database session:
393
+
394
+
\q
395
+
396
+
Try connecting to the new database with the new user:
397
+
398
+
sudo -u git -H mysql -u git -p -D gitlabhq_production
399
+
400
+
Type the password you replaced $password with earlier.
0 commit comments