Skip to content

Commit d200942

Browse files
committedJul 27, 2014
Update to 7.1
1 parent cef8119 commit d200942

File tree

1 file changed

+63
-61
lines changed

1 file changed

+63
-61
lines changed
 

‎install/centos/README.md

+63-61
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
```
22
Distribution : CentOS 6.5 Minimal
3-
GitLab version : 6.0 - 7.0
3+
GitLab version : 6.0 - 7.1
44
Web Server : Apache, Nginx
55
Init system : sysvinit
66
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
190190

191191
git --version
192192

193-
If not install it from source. Remove the system Git:
193+
If not, install it from source. First remove the system Git:
194194

195195
yum -y remove git
196196

@@ -201,8 +201,8 @@ Install the pre-requisite files for Git compilation:
201201
Download and extract it:
202202

203203
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/
206206
./configure
207207
make
208208
make prefix=/usr/local install
@@ -232,8 +232,8 @@ Remove any other Ruby build if it is still present:
232232
Download Ruby and compile it:
233233

234234
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
237237
./configure --disable-install-rdoc
238238
make
239239
make prefix=/usr/local install
@@ -277,58 +277,7 @@ Save and exit.
277277

278278
## 4. Database
279279

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)
332281

333282
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
334283

@@ -402,6 +351,57 @@ to not get ident issues (you can use trust over ident):
402351
Check the official [documentation][psql-doc-auth] for more information on
403352
authentication methods.
404353

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.
401+
Quit the database session:
402+
403+
\q
404+
405405
----------
406406
## 5. GitLab
407407

@@ -411,9 +411,9 @@ authentication methods.
411411
### Clone the Source
412412

413413
# Clone GitLab repository
414-
sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab-ce.git -b 7-0-stable gitlab
414+
sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab-ce.git -b 7-1-stable gitlab
415415

416-
**Note:** You can change `7-0-stable` to `master` if you want the *bleeding edge* version, but do so with caution!
416+
**Note:** You can change `7-1-stable` to `master` if you want the *bleeding edge* version, but do so with caution!
417417

418418
### Configure it
419419

@@ -658,12 +658,14 @@ Do not mind about that error if you are sure that you have downloaded the up-to-
658658

659659
If all other items are green, then congratulations on successfully installing GitLab!
660660

661+
**NOTE:** Supply `SANITIZE=true` environment variable to `gitlab:check` to omit project names from the output of the check command.
662+
661663
## Initial Login
662664

663665
Visit YOUR_SERVER in your web browser for your first GitLab login.
664666
The setup has created an admin account for you. You can use it to log in:
665667

666-
admin@local.host
668+
root
667669
5iveL!fe
668670

669671
**Important Note:**

0 commit comments

Comments
 (0)