Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Redmine – Project Management Deployment (Debian 13) ====== ==== Update System ==== <code bash>apt update && sudo apt upgrade -y</code> ==== Install Ruby, Database (Postgres), Webserver (apache2) ==== <code bash> apt install ruby3.3 postgresql-17 apache2 -y </code> ==== Install dependency ==== <code bash> apt -y install ruby-dev ruby-psych libyaml-dev libxml2-dev libxslt1-dev libpq-dev zlib1g-dev libcurl4-openssl-dev postgresql-server-dev-all libapache2-mod-passenger imagemagick </code> ==== Download redmine ==== Pastikan ambil packages web versi terakhir ⇒ https://www.redmine.org/projects/redmine/wiki/download <code bash> # Download redmine packages last version wget https://www.redmine.org/releases/redmine-6.1.1.tar.gz # Extract packages tar zxvf redmine-6.1.1.tar.gz # Pindah ke folder webserver mv redmine-6.1.1 /var/www/redmine </code> ==== Membuat Database untuk redmine ==== <code bash> su - postgres psql </code> <code sql> CREATE USER redmine WITH PASSWORD 'password'; CREATE DATABASE redmine OWNER redmine; \q </code> //Notes : ganti ''password'' dengan password yang benar// ==== Konfigurasi Redmine ==== * **Konfigurasi database** <code bash> nano /var/www/redmine/config/database.yaml </code> <code yaml database.yaml> production: adapter: postgresql database: redmine host: localhost username: redmine password: password encoding: utf8 </code> //Notes : ganti ''password'' dengan password yang benar// * **Konfigurasi SNPT** Untuk SMTP Server kita akan gunakan google [[tools:gmail:apppassword|]] <code bash> nano /var/www/redmine/config/configuration.yaml </code> <code yaml configuration.yaml> production: delivery_method: :smtp smtp_settings: enable_starttls_auto: true address: "smtp.gmail.com" port: 587 domain: "smtp.gmail.com" authentication: :plain user_name: "mail@gmail.com" password: "sandi-aplikasi" </code> //Notes : ganti ''mail@gmail.com'' dengan akun gmail yang aktif dan''sandi-aplikasi'' dengan sandi yang di generate oleh gmail// ==== Configure Webserver (apache2) ==== <code bash> nano /etc/apache2/sites-available/redmine.conf </code> <code conf redmine.conf> <VirtualHost *:80> ServerName redmine.example.com DocumentRoot /var/www/redmine/public <Directory /var/www/redmine/public> Require all granted AllowOverride all Options -MultiViews </Directory> RailsEnv production PassengerEnabled on ErrorLog ${APACHE_LOG_DIR}/redmine_error.log CustomLog ${APACHE_LOG_DIR}/redmine_access.log combined </VirtualHost </code> <code bash> a2ensite redmine.conf systemctl reload apache2 </code> Tambahkan records dan access url sesuai domain yang di konfigurasi pada webserver http://redmine.example.com {{ :deployment:apps:redmine.png?nolink |}} deployment/apps/redmine.txt Last modified: 2026/02/07 09:17by ilyasa