å¿ è¦ãªãã®
0) æ¥æ¬èªç°å¢ã®Ubuntu20.04ã¾ãã¯22.04
1) ãã¼ã¸ã§ã³3.1.Xã®Ruby
2) Apache2
3) ã¡ã¼ã«éä¿¡ãµã¼ã postfix
4) Redmine + PostfreSQL
1)ãã¶ãUbuntu22.04ã§ãã£ã¦ãaptã§ã¤ã³ã¹ãã¼ã«ãããã®ã¯3.0.Xãªã®ã§ãrbenvçµç±ã§ã¤ã³ã¹ãã¼ã«ãã
https://qiita.com/kerupani129/items/77dd1e3390b53f4e97b2
2024/2/22æç¹ã§ã¯3.1.4ã3.1.Xã®ææ°çãªã®ã§ããã ãå¤æ´ãã
Â
2)ã«ã¤ãã¦ã¯4)ã®æé ã«å«ã¾ãã¦ããããå ¬éããå ´åã¯SSL対å¿ãå¿ è¦ã¨ãªãã®ã§ãApacheèªä½ã¯ã¤ã³ã¹ãã¼ã«ãããã¨ãã¦ã
https://www.server-world.info/query?os=Ubuntu_22.04&p=ssl&f=2
ãåèã«ãLet'sEncryptãã証ææ¸ãªã©ãåå¾ãã
sudo vim /etc/apache2/sites-available/default-ssl.conf
ã«
SSLCertificateFile    /etc/letsencrypt/live/[ãµã¤ãã¢ãã¬ã¹]/cert.pem
SSLCertificateKeyFile  /etc/letsencrypt/live/[ãµã¤ãã¢ãã¬ã¹]/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/[ãµã¤ãã¢ãã¬ã¹]/chain.pem
      Â
ã¨è¨è¼ããããã®å¾ãSSLãæå¹åããããã«
sudo a2enmod ssl
sudo a2ensite default-ssl
sudo service apache2 restart
Â
3)ã«ã¤ãã¦ã¯
https://www.server-world.info/query?os=Ubuntu_22.04&p=mail&f=2
ãåèã«ã¾ãDovecotãã¤ã³ã¹ãã¼ã«ãã次ã«
https://www.server-world.info/query?os=Ubuntu_22.04&p=mail&f=1
ãåèã«Postfixãã¤ã³ã¹ãã¼ã«ãããã¡ãªã¿ã«outbound port 25ã許å¯ããã¦ããªãã¨ãå®éã«ã¯ã¡ã¼ã«ã¯éä¿¡ã§ããªãã
ã¾ãã/var/log/mail.logãè¦ãã¨ã¡ã¼ã«ãéä¿¡ã§ããªãå ´åãè¦ã¤ãããããã¶ã
ã§å¯¾å¦å¯è½ã
Â
4)ã«ã¤ãã¦ã¯
https://blog.redmine.jp/articles/5_0/install/ubuntu/
ãåèã«ã¤ã³ã¹ãã¼ã«ãããã1)ã§ã¤ã³ã¹ãã¼ã«ããRubyãsystem-wideãªãã®ã§ã¯ãªãã®ã§ã
Redmineã®ãã¦ã³ãã¼ãã®é ç®ã§
sudo mkdir /var/lib/redmine
sudo chown www-data /var/lib/redmine
sudo -u www-data svn co https://svn.redmine.org/redmine/branches/5.0-stable /var/lib/redmine
ã¨ãªã£ã¦ããã¨ããã¯
sudo mkdir /var/lib/redmine
sudo chown èªåã®ã¦ã¼ã¶ã¢ã«ã¦ã³ã /var/lib/redmine
svn co https://svn.redmine.org/redmine/branches/5.0-stable /var/lib/redmine
ã§ã¤ã³ã¹ãã¼ã«ãããgemããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ãã
bundle install
ã¨ãsudoã§ã¯ãªããã¤ã³ã¹ãã¼ã«ãã
ãã»ãã·ã§ã³æ¹ããé²æ¢ç¨ç§å¯éµã®ä½æã以ä¸ã
bin/rake generate_secret_token
RAILS_ENV=production bin/rake db:migrate
gem install passenger -N
passenger-install-apache2-module --auto --languages ruby
ã¨sudoãªãã§ä½æ¥ãè¡ããããã¦æå¾ã«
sudo chown -R www-data:www-data /var/lib/redmine
ã¨ããããã¶ãããã¾ã§ã®ä½æ¥ãè¡ãã¨ãRedmineã¯èµ·åããã