Skip to content

Commit 671bf66

Browse files
committed
Merge pull request #195 from nszceta/master
[Guide Update] Gitlab 6.6 - CentOS 6.5 Installation
2 parents d7c5b44 + eea985e commit 671bf66

File tree

1 file changed

+61
-8
lines changed

1 file changed

+61
-8
lines changed

install/centos/README.md

Lines changed: 61 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ GitLab version : 6.0 - 6.6
44
Web Server : Apache, Nginx
55
Init system : sysvinit
66
Database : MySQL, PostgreSQL
7-
Contributors : @nielsbasjes, @axilleas, @mairin, @ponsjuh, @yorn, @psftw, @etcet, @mdirkse
7+
Contributors : @nielsbasjes, @axilleas, @mairin, @ponsjuh, @yorn, @psftw, @etcet, @mdirkse, @nszceta
88
Additional Notes : In order to get a proper Ruby setup we build it from source
99
```
1010

@@ -177,21 +177,64 @@ mail server. The recommended one is postfix and you can install it with:
177177

178178
To use and configure sendmail instead of postfix see [Advanced Email Configurations](configure_email.md).
179179

180+
### Configure the default editor
181+
182+
You can choose between editors such as nano, vi, vim, etc.
183+
In this case we will use vim as the default editor for consistency.
184+
185+
ln -s /usr/bin/vim /usr/bin/editor
186+
187+
To remove this alias in the future:
188+
189+
rm -i /usr/bin/editor
190+
191+
192+
### Install Git from Source (optional)
193+
194+
Remove the system Git
195+
196+
yum -y remove git
197+
198+
Install the pre-requisite files for Git compilation
199+
200+
yum install zlib-devel perl-CPAN gettext curl-devel expat-devel gettext-devel openssl-devel
201+
202+
Download and extract Git 1.9.0
203+
204+
mkdir /tmp/git && cd /tmp/git
205+
curl --progress https://git-core.googlecode.com/files/git-1.9.0.tar.gz | tar xz
206+
cd git-1.9.0/
207+
./configure
208+
make
209+
make prefix=/usr/local install
210+
211+
Make sure Git is in your `$PATH`:
212+
213+
which git
214+
215+
You might have to logout and login again for the `$PATH` to take effect.
216+
217+
180218
----------
181219

182220
## 2. Ruby
183221

184222
The use of ruby version managers such as [RVM](http://rvm.io/), [rbenv](https://github.com/sstephenson/rbenv) or [chruby](https://github.com/postmodern/chruby) with GitLab in production frequently leads to hard to diagnose problems. Version managers are not supported and we stronly advise everyone to follow the instructions below to use a system ruby.
185223

186-
Remove the old Ruby 1.8 if present:
224+
Remove the old Ruby 1.8 package if present. Gitlab 6.7 only supports the Ruby 2.0.x release series:
187225

188226
yum remove ruby
189227

228+
Remove any other Ruby build if it is still present:
229+
230+
cd <your-ruby-source-path>
231+
make uninstall
232+
190233
Download Ruby and compile it:
191234

192235
mkdir /tmp/ruby && cd /tmp/ruby
193-
curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0.tar.gz | tar xz
194-
cd ruby-2.1.0
236+
curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p451.tar.gz | tar xz
237+
cd ruby-2.0.0-p451
195238
./configure --disable-install-rdoc
196239
make
197240
make prefix=/usr/local install
@@ -206,7 +249,7 @@ installed with:
206249
which ruby
207250
# /usr/local/bin/ruby
208251
ruby -v
209-
# ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
252+
# ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-linux]
210253

211254
----------
212255

@@ -243,7 +286,7 @@ GitLab Shell is a ssh access and repository management application developed spe
243286
cd /home/git
244287

245288
# Clone gitlab shell
246-
sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab-shell.git -b v1.8.0
289+
sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab-shell.git -b v1.9.1
247290

248291
cd gitlab-shell
249292

@@ -324,9 +367,19 @@ Configure the database user and password:
324367
template1=# \q
325368
exit # exit uid=postgres, return to root
326369

327-
Test the connection as the gitlab (uid=git) user.
370+
Test the connection as the gitlab (uid=git) user. You should be root to begin this test:
371+
372+
whoami
373+
374+
Attempt to log in to Postgres as the git user:
375+
376+
sudo -u git psql -d gitlabhq_production -U git -W
377+
378+
If you see the following:
379+
380+
gitlabhq_production=>
328381

329-
psql -d gitlabhq_production -U git -W # prompts for your password.
382+
Your password has been accepted successfully and you can type \q to quit.
330383

331384

332385
----------

0 commit comments

Comments
 (0)