Difference between revisions of "Basic redmine installation"
From Notes_Wiki
(Created page with "<yambe:breadcrumb>Redmine_configuration|Redmine configuration</yambe:breadcrumb> =Basic redmine installation= For basic redmine installation with default set of plugins use f...") |
m |
||
Line 40: | Line 40: | ||
#::cd .. | #::cd .. | ||
#::mv redmine-2.2.3 /home/redmine | #::mv redmine-2.2.3 /home/redmine | ||
#::chown -R redmine: | #::chown -R redmine:redmine /home/redmine | ||
#:</pre> | #:</pre> | ||
#Now login as redmine user to start the redmine server | #Now login as redmine user to start the redmine server | ||
Line 49: | Line 49: | ||
#:</pre> | #:</pre> | ||
#Now redmine should be acessible at http://<machine>:3000/ Sign in using admin as username and same admin as password. | #Now redmine should be acessible at http://<machine>:3000/ Sign in using admin as username and same admin as password. | ||
<yambe:breadcrumb>Redmine_configuration|Redmine configuration</yambe:breadcrumb> | <yambe:breadcrumb>Redmine_configuration|Redmine configuration</yambe:breadcrumb> |
Revision as of 01:02, 13 September 2013
<yambe:breadcrumb>Redmine_configuration|Redmine configuration</yambe:breadcrumb>
Basic redmine installation
For basic redmine installation with default set of plugins use following steps:
- Use 'yum -y install ruby rubygems mysql mysql-devel' to install various packages.
- Export proxy using something similar to "export http_proxy='http://proxy.virtual-labs.ac.in:8080/'".
- Use following commands for install bundler, downloading redmine sources and using bundle for redmine installation
- gem install bundler
- wget http://rubyforge.org/frs/download.php/76771/redmine-2.2.3.tar.gz
- tar xzf redmine-2.2.3.tar.gz
- cd redmine-2.2.3
- yum -y install ruby-devel gcc
- yum -y install ruby-RMagick
- yum -y install ImageMagick-devel
- gem install json -v '1.7.7'
- bundle install
- bundle install --without postgresql sqlite
- bundle show
- Install mysql-server and secure mysql installation using 'yum -y install mysql-server', 'service mysqld start' and '/usr/bin/mysql_secure_installation'
- Create database, username and password for redmine using 'mysql -u root -p' followed by:
- create database redmine character set utf8;
- create user 'redmine'@'localhost' identified by 'my_password';
- grant all privileges on redmine.* to 'redmine'@'localhost';
- flush privileges
- \q
- Configure database, username and password in redmine configuration file using 'cp config/database.yml.example config/database.yml' and then by editing 'config/database.yml' to correct database name, username and password for production
- Initialize redmine for running first time using following commands:
- rake generate_secret_token
- RAILS_ENV=production rake db:migrate
- RAILS_ENV=production rake redmine:load_default_data
- mkdir public/plugin_assets
- useradd redmine
- sudo chown -R redmine:redmine files log tmp public/plugin_assets
- sudo chmod -R 755 files log tmp public/plugin_assets
- cd ..
- mv redmine-2.2.3 /home/redmine
- chown -R redmine:redmine /home/redmine
- Now login as redmine user to start the redmine server
- su - redmine
- cd redmine-2.2.3
- ruby script/rails server webrick -e production -d
- Now redmine should be acessible at http://<machine>:3000/ Sign in using admin as username and same admin as password.
<yambe:breadcrumb>Redmine_configuration|Redmine configuration</yambe:breadcrumb>