Skip to content

Instantly share code, notes, and snippets.

@dlaxar
Created June 26, 2012 10:25
Show Gist options
  • Save dlaxar/2994885 to your computer and use it in GitHub Desktop.
Save dlaxar/2994885 to your computer and use it in GitHub Desktop.
Installing Redmine AND GitLab on CentOS 6.2 (part 1)
rpm -Uvh http://fedora.aau.at/epel/6/i386/epel-release-6-7.noarch.rpm
yum install ruby mysql-server mysql-devel rubygems wget ruby-devel
yum groupinstall "Development Tools"
adduser redmine
su - redmine
passwd redmine # enter a password for redmine
visudo #add the line
# 'redmine ALL=(ALL) ALL'
/etc/init.d/mysqld start
mysql_secure_installation # remember the password you choose for root
mysql -u root -p # enter the root password when prompted
# a mysql shell will come up
-- Enter the following commands into the mysql shell
create database redmine character set utf8;
create user 'redmine'@'localhost' identified by 'my_password';
grant all privileges on redmine.* to 'redmine'@'localhost';
quit
wget http://rubyforge.org/frs/download.php/76259/redmine-2.0.3.tar.gz
tar xzvf redmine-2.0.3.tar.gz
cd redmine-2.0.3.tar.gz
cp config/database.yml.example config/database.yml
vi config/database.yml #edit the settings in the production area
gem install bundler
bundle install --without development test rmagick postgresql sqlite
rake generate_secret_token
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data
mkdir tmp public/plugin_assets
sudo chown -R redmine:redmine files log tmp public/plugin_assets
sudo chmod -R 755 files log tmp public/plugin_assets
ruby script/rails server -e production # use your browser to display the page at ip.of.the.server:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment