Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Installing Redmine AND GitLab on CentOS 6.2 (part 1)
rpm -Uvh
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';
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