Project

General

Profile

HowTo Install Redmine 50x on Ubuntu 2004 with Apache2 » History » Version 2

Marc Morocutti, 2022-06-07 13:37

1 1 Marc Morocutti
h1. HowTo Install Redmine 5.0.x on Ubuntu 20.04 with Apache2
2
3
h2. Installing dependencies
4
5
<pre>
6
# update & upgrade 
7
sudo apt-get update && sudo apt-get upgrade -y
8
9
# install required packages
10 2 Marc Morocutti
sudo apt install -y apache2 ruby ruby-dev build-essential libapache2-mod-passenger libmysqlclient-dev
11 1 Marc Morocutti
12
# if you want to install mysql server locally
13
sudo apt install -y mysql-server
14
</pre> 
15
16 2 Marc Morocutti
h2. Download & Extract Redmine
17
18
Go grab the latest version from [[Download|here]]. For this example it will be 5.0.1
19
<pre>
20
# download and extract
21
cd
22
wget https://redmine.org/releases/redmine-5.0.1.tar.gz
23
cd /opt
24
sudo tar -xvzf ~/redmine-5.0.1.tar.gz
25
26
# symlink to remove version reference
27
sudo ln -s redmine-5.0.1 redmine
28
</pre>
29
30
h2. Configure database
31
32
Create a database and create a user for redmine. Example for localhost installation below:
33
<pre>
34
sudo mysql
35
36
mysql> CREATE DATABASE redmine CHARACTER SET utf8mb4;
37
mysql> CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'secretPassword';
38
mysql> GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
39
mysql> FLUSH PRIVILEGES;
40
41
</pre>