Created
June 26, 2012 10:25
-
-
Save dlaxar/2994885 to your computer and use it in GitHub Desktop.
Installing Redmine AND GitLab on CentOS 6.2 (part 1)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rpm -Uvh http://fedora.aau.at/epel/6/i386/epel-release-6-7.noarch.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp config/database.yml.example config/database.yml | |
vi config/database.yml #edit the settings in the production area |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install bundler | |
bundle install --without development test rmagick postgresql sqlite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake generate_secret_token | |
RAILS_ENV=production rake db:migrate | |
RAILS_ENV=production rake redmine:load_default_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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