Basic redmine installation

From Notes_Wiki
Revision as of 01:02, 13 September 2013 by Saurabh (talk | contribs)

<yambe:breadcrumb>Redmine_configuration|Redmine configuration</yambe:breadcrumb>

Basic redmine installation

For basic redmine installation with default set of plugins use following steps:

  1. Use 'yum -y install ruby rubygems mysql mysql-devel' to install various packages.
  2. Export proxy using something similar to "export http_proxy='http://proxy.virtual-labs.ac.in:8080/'".
  3. 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
  4. Install mysql-server and secure mysql installation using 'yum -y install mysql-server', 'service mysqld start' and '/usr/bin/mysql_secure_installation'
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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>