The company wants to install the Project Management System and adopt redmine. The new company will do this small task. There are also several problems in the middle. To build redmine, there are many dependent packages, so I suggest using apt. Let's get started.
First, upgrade the source
Apt-Get update
Apt-Get upgrade
Update complete
PS: (if it saves time, you can install the lamp suite. Here MySQL and Apache are installed without a suite)
Install a module of apache2 and apache2
Apt-Get install apache2 libapache2-mod-passenger
Install MySQL
Apt-Get install mysql-server mysql-Client
Configure the MySQL database.
The database is mysql. It creates a database for redmine and the database name is redmine. Create a redmine user and assign the database permission to the user. Finally, set the user's password to 'simple1921 '. Of course, the database name, user name, and password can be replaced according to the actual situation.
Mysql-u root-P
Mysql> createdatabase redmine Character Set utf8;
Mysql> grant select, insert, delete, update, create, drop, alter, indexon redmine. * To redmine;
Mysql> setpassword for 'redmine '= PASSWORD ('simple1921 ');
Mysql> flushprivileges;
Mysql> exit;
Install the redmine main program and MySQL-based modules
Apt-Get install redmine-MySQL
During this period, you will be asked to enter the MySQL password to select the database type, and so on (PS: how to upload the image)
Configure the redmine Database
First
Cpconfig/database. yml. Example config/database. yml (if not, create one)
Vim database. yml
The production configuration is as follows. Replace the database, username, and password as needed.
Production:
Adapter: mysql2
Database: redmine
HOST: localhost
Username: redmine
Password: "666666"
Encoding: utf8
Then edit the Apache configuration
Vim/etc/apache2/mod-available/passenger. conf
Add passengerdefaultuser www-Data
Create a connection
Ln-S/usr/share/redmine/Public // var/www/redmine
Edit Configuration
Vim/etc/apache2/sites-available/default-ssl.conf
Add
<Directory/var/www/redmine>
Railsbaseuri/redmine
Passengerresolvesymlinksindocumentroot on
</Directory>
Start redmine
Run this command in the installation directory of CD to redmine to start it. (use nohup to run it in the background &)
Rubyscript/rails server webrick-e production-d
This article from the "network engineering topics" blog, please be sure to keep this source http://zyhzb.blog.51cto.com/3103241/1431464