Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| deployment:apps:redmine [2026/02/06 13:04] – [Download and install redmine] ilyasa | deployment:apps:redmine [2026/02/07 09:17] (current) – [Configure Webserver (apache2)] ilyasa | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| ==== Install | ==== Install | ||
| <code bash> | <code bash> | ||
| - | apt -y install ruby-dev ruby-psych | + | apt -y install ruby-dev ruby-psych |
| </ | </ | ||
| Line 26: | Line 26: | ||
| mv redmine-6.1.1 / | mv redmine-6.1.1 / | ||
| </ | </ | ||
| + | |||
| + | ==== Membuat Database untuk redmine ==== | ||
| + | <code bash> | ||
| + | su - postgres | ||
| + | psql | ||
| + | </ | ||
| + | <code sql> | ||
| + | CREATE USER redmine WITH PASSWORD ' | ||
| + | CREATE DATABASE redmine OWNER redmine; | ||
| + | \q | ||
| + | </ | ||
| + | //Notes : ganti '' | ||
| + | |||
| + | ==== Konfigurasi Redmine ==== | ||
| + | * **Konfigurasi database** | ||
| + | |||
| + | <code bash> | ||
| + | nano / | ||
| + | </ | ||
| + | |||
| + | <code yaml database.yaml> | ||
| + | production: | ||
| + | adapter: postgresql | ||
| + | database: redmine | ||
| + | host: localhost | ||
| + | username: redmine | ||
| + | password: password | ||
| + | encoding: utf8 | ||
| + | </ | ||
| + | //Notes : ganti '' | ||
| + | |||
| + | * **Konfigurasi SNPT** | ||
| + | |||
| + | Untuk SMTP Server kita akan gunakan google [[tools: | ||
| + | |||
| + | <code bash> | ||
| + | nano / | ||
| + | </ | ||
| + | |||
| + | <code yaml configuration.yaml> | ||
| + | production: | ||
| + | delivery_method: | ||
| + | smtp_settings: | ||
| + | enable_starttls_auto: | ||
| + | address: " | ||
| + | port: 587 | ||
| + | domain: " | ||
| + | authentication: | ||
| + | user_name: " | ||
| + | password: " | ||
| + | </ | ||
| + | //Notes : ganti '' | ||
| + | |||
| + | ==== Configure Webserver (apache2) ==== | ||
| + | <code bash> | ||
| + | nano / | ||
| + | </ | ||
| + | |||
| + | <code conf redmine.conf> | ||
| + | < | ||
| + | ServerName redmine.example.com | ||
| + | |||
| + | DocumentRoot / | ||
| + | |||
| + | < | ||
| + | Require all granted | ||
| + | AllowOverride all | ||
| + | Options -MultiViews | ||
| + | </ | ||
| + | |||
| + | RailsEnv production | ||
| + | PassengerEnabled on | ||
| + | |||
| + | ErrorLog ${APACHE_LOG_DIR}/ | ||
| + | CustomLog ${APACHE_LOG_DIR}/ | ||
| + | </ | ||
| + | </ | ||
| + | <code bash> | ||
| + | a2ensite redmine.conf | ||
| + | systemctl reload apache2 | ||
| + | </ | ||
| + | Tambahkan records dan access url sesuai domain yang di konfigurasi pada webserver http:// | ||
| + | {{ : | ||