Directory
Install Dependencies
Install Ruby 2.0
Download and install Redmine
Create Database and database users
Configure database connection information
Install Dependencies
Session storage key generation
Generate database structure
Fill in the default configuration data
Set File System Access Permissions
Test whether the installation is successful
Log on to Redmine
Further System Configuration
Integration into Apache
Copy to a dedicated Apache directory
Configure fcgid
Configure the redmine VM
Test successful
Modify log Configuration
Backup
Redmine is an excellent project management and Bug tracking software developed based on RoR (Ruby on Rails.
The installation process is recorded below.
Install Dependencies
Sudo yum install vim-enhanced git mysql-server ImageMagick mod_fcgid
Install Ruby 2.0
If you have installed Ruby 2.0, skip this step.
Curl-progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz | tar xz Z
Mkdir/tmp/ruby & cd/tmp/ruby
Curl-progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz | tar xz Z
Cd ruby-2.0.0-p247
./Configure
Make
Sudo make install
Download and install Redmine
Cd/tmp
Git clone https://github.com/redmine/redmine.git
Cd redmine
Git checkout 2.3-stable
Create Database and database users
Mysql-u root-p
Enter the password and go to the mysql> command prompt. Enter the following commands in sequence:
Create database redmine character set utf8;
Create user 'redmine '@ 'localhost' identified by 'my _ password ';
Grant all privileges on redmine. * TO 'redmine '@ 'localhost ';
In this way, the database redmine and Database User redmine are created. The password is my_password.
Configure database connection information
Cp config/database. yml. example config/database. yml
Vim config/database. yml
Enter the following content:
Production:
Adapter: mysql2
Database: redmine
Host: localhost
Username: redmine
Password: my_password
Install Dependencies
Modify the Gemfile file and add the following line after the gem "builder" line: gem "fcgi ". Then run the following command:
Gem install bundler
Bundle install -- without development test
Session storage key generation
In this step, a random key is generated. Rails is used to encode the cookie that stores session data to prevent external damage.
Rake generate_secret_token
Generate database structure
RAILS_ENV = production rake db: migrate
Fill in the default configuration data
RAILS_ENV = production rake redmine: load_default_data
Redmine will ask you which language you choose. Select zh to represent Simplified Chinese.
Set File System Access Permissions
Users running Redmine (the apache user I selected below to run Redmine) must have the write permission on the following directory:
Files (storage attachment)
Log (application. log)
Tmp and tmp/pdf (if these directories do not exist, create them first. Used to generate PDF documents)
Public/plugin_assets (plug-in related files ).
Run the following command to solve the problem:
Mkdir-p tmp/pdf public/plugin_assets
Sudo chown-R apache: apache files log tmp public/plugin_assets
Sudo chmod-R 755 files log tmp public/plugin_assets
Test whether the installation is successful
View sourceprint? 1 ruby script/rails server webrick-e production
Run the WEBrick Web server. Open your browser to access http: // localhost: 3000/(if you install it on another server, use the server domain name or IP address instead of localhost ). If everything works, you will see the welcome page.
Log on to Redmine
Use the account password admin/admin to log on to the system. You can choose Settings from the Administration menu to modify most of the application Settings.
Return to the terminal window of the server and press Ctrl + C to exit WEBrick.
Further System Configuration
Redmine configuration information is defined in conf/configuration. yml. If you need to overwrite the default configuration, you can
Cp config/configuration. yml. example config/configuration. yml
Modify conf/configuration. yml. After modification, restart the application.
Integration into Apache
Copy to a dedicated Apache directory
First, move Redmine from the temporary directory/tmp to the target directory. My setting is to create the/home/apache directory. apache users have this directory and create the sites subdirectory under it. All Apache VM programs are stored in this directory.
Mkdir-p/home/apache/sites
Cd ..
Sudo mv redmine/home/apache/sites
Sudo chown-R apache: apache/home/apache
Redmine details: click here
Redmine: click here
Recommended reading:
The most simplified Redmine deployment method in Ubuntu 10.04
Precautions for installing Redmine on Ubuntu 10.04 by default
Install and configure Redmine in CentOS 5
Set up PostgreSQL-based Redmine in Ubuntu 9.10
Install the open-source project management software Redmine in Ubuntu
How to upgrade the Turnkey Redmine VM from Redmine 1.0.5 to 1.2
Set up the Redmine environment, mail service configuration, and LDAP configuration in CentOS5