SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Setting up Redmine stack on
Amazon Linux
Ikuru K
My Env
Name Version Installation Method
Apache httpd 2.2.31 yum
Ruby 2.0 Pre installed
Redmine 3.1.1 curl
Passenger 5.0.20 gem
MySQL 5.5.45 yum
Acknowledgement
All credit goes to this to-the-point post by Mr. Shuji
Watanabe! This slide mostly is based on this post
with few tweeks.
– http://dev.classmethod.jp/cloud/aws/install-redmine-
to-amazon-ec2/
Lets begin
● Assume you know how to get your EC2
instance up & running, and then SSHing into
the instance.
Get httpd
$ sudo yum install httpd
Get Mysql
●
$ sudo yum install mysql-server mysql-devel
Configure for utf-8 in /etc/my.conf
Start mysqld
● $ sudo service mysqld start
● $ sudo chkconfig mysqld on
Set up data base for redmine
● $ mysql -uroot
● mysql> create database db_redmine default
character set utf8;
● mysql> grant all on db_redmine.* to
user_redmine@localhost identified by 'changeit';
Ruby and gem are installed by
default, and they work fine
● $ ruby -v
● ruby 2.0.0p647 (2015-08-18) [x86_64-linux]
● $ gem -v
● 2.4.8
Install packages needed
● $ sudo yum groupinstall "Development Tools"
● $ sudo yum --enablerepo=epel install ruby-devel
mysql-devel ImageMagick ImageMagick-devel
ipa-gothic-fonts
Get bundler
● $ gem install bundler --no-rdoc --no-ri
● Fetching: bundler-1.6.3.gem (100%)
● Successfully installed bundler-1.6.3
● 1 gem installed
Fetch and install redmine
$ curl -O http://www.redmine.org/releases/redmine-
3.1.1.tar.gz
$ tar xvf redmine-3.1.1.tar.gz
$ sudo mv redmine-3.1.1 /var/lib/redmine
Install Io-console gem
$ curl -O
http://www.redmine.org/releases/redmine-
3.1.1.tar.gz
$ tar xvf redmine-3.1.1.tar.gz
$ sudo mv redmine-3.1.1 /var/lib/redmine
Copy database.yml.example to
database.yml and write the following
production:
adapter: mysql2
database: db_redmine
host: localhost
username: user_redmine
password: changeit
encoding: utf8
Set up redmine itself
$ cd /var/lib/redmine
$ bundle install --without development test
Create Session secret token
$ bundle exec rake generate_secret_token
Initialize database
$ bundle exec rake db:migrate RAILS_ENV=production
Getting passenger working
Install required packeges
Follow the interactive set up script.
$ sudo yum install curl-devel httpd-devel apr-devel apr-util-devel
$ gem install passenger --no-rdoc --no-ri
$ passenger-install-apache2-module
Put the resulting setting string to
/etc/httpd/conf.d/passenger.conf
LoadModule passenger_module /home/ec2-
user/.gem/ruby/2.0/gems/passenger-
5.0.20/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /home/ec2-user/.gem/ruby/2.0/gems/passenger-5.0.20
PassengerDefaultRuby /usr/bin/ruby2.0
</IfModule>
Set the document root for httpd in
/etc/httpd/conf/httpd.conf
● DocumentRoot "/var/lib/redmine/public”
Start the http server, and everything
should work after accessing your ip
address with a browser.
● $ sudo service httpd start
● $ sudo chkconfig httpd on
Defaul login
● User id = admin
● Password = admin
● Thank you

Weitere ähnliche Inhalte

Was ist angesagt?

Virtual Private Network main
Virtual Private Network mainVirtual Private Network main
Virtual Private Network main
Kanika Gupta
 

Was ist angesagt? (20)

Getting Started With WebAuthn
Getting Started With WebAuthnGetting Started With WebAuthn
Getting Started With WebAuthn
 
SC-900 Capabilities of Microsoft Identity and Access Management Solutions
SC-900 Capabilities of Microsoft Identity and Access Management SolutionsSC-900 Capabilities of Microsoft Identity and Access Management Solutions
SC-900 Capabilities of Microsoft Identity and Access Management Solutions
 
Create and manage a web application on Azure (step to step tutorial)
Create and manage a web application on Azure (step to step tutorial)Create and manage a web application on Azure (step to step tutorial)
Create and manage a web application on Azure (step to step tutorial)
 
Amazon EC2 to Amazon VPC: A case study (CPN301) | AWS re:Invent 2013
Amazon EC2 to Amazon VPC: A case study (CPN301) | AWS re:Invent 2013Amazon EC2 to Amazon VPC: A case study (CPN301) | AWS re:Invent 2013
Amazon EC2 to Amazon VPC: A case study (CPN301) | AWS re:Invent 2013
 
회사 계정/패스워드 그대로 AWS 관리 콘솔 및 EC2 인스턴스 사용하기 - 이정훈, AWS 솔루션즈 아키텍트:: AWS Summit O...
회사 계정/패스워드 그대로 AWS 관리 콘솔 및 EC2 인스턴스 사용하기 - 이정훈, AWS 솔루션즈 아키텍트::  AWS Summit O...회사 계정/패스워드 그대로 AWS 관리 콘솔 및 EC2 인스턴스 사용하기 - 이정훈, AWS 솔루션즈 아키텍트::  AWS Summit O...
회사 계정/패스워드 그대로 AWS 관리 콘솔 및 EC2 인스턴스 사용하기 - 이정훈, AWS 솔루션즈 아키텍트:: AWS Summit O...
 
Mobile Design. Strategic Solutions.
Mobile Design. Strategic Solutions.Mobile Design. Strategic Solutions.
Mobile Design. Strategic Solutions.
 
Deep Dive on User Sign-up Sign-in with Amazon Cognito - AWS Online Tech Talks
Deep Dive on User Sign-up Sign-in with Amazon Cognito - AWS Online Tech TalksDeep Dive on User Sign-up Sign-in with Amazon Cognito - AWS Online Tech Talks
Deep Dive on User Sign-up Sign-in with Amazon Cognito - AWS Online Tech Talks
 
Fundamentals of Microsoft 365 Security , Identity and Compliance
Fundamentals of Microsoft 365 Security , Identity and ComplianceFundamentals of Microsoft 365 Security , Identity and Compliance
Fundamentals of Microsoft 365 Security , Identity and Compliance
 
Microsoft Intune - Empowering Enterprise Mobility - Presented by Atidan
Microsoft Intune - Empowering Enterprise Mobility - Presented by Atidan Microsoft Intune - Empowering Enterprise Mobility - Presented by Atidan
Microsoft Intune - Empowering Enterprise Mobility - Presented by Atidan
 
IBM - Hey FIDO, Meet Passkey!.pptx
IBM - Hey FIDO, Meet Passkey!.pptxIBM - Hey FIDO, Meet Passkey!.pptx
IBM - Hey FIDO, Meet Passkey!.pptx
 
Using Postman to Test OAuth/OIDC
Using Postman to Test OAuth/OIDCUsing Postman to Test OAuth/OIDC
Using Postman to Test OAuth/OIDC
 
Cloud Privacy & Security compliance
Cloud Privacy & Security complianceCloud Privacy & Security compliance
Cloud Privacy & Security compliance
 
Identity Security - Azure Identity Protection
Identity Security - Azure Identity ProtectionIdentity Security - Azure Identity Protection
Identity Security - Azure Identity Protection
 
Virtual Private Network main
Virtual Private Network mainVirtual Private Network main
Virtual Private Network main
 
Microsoft intune
Microsoft intuneMicrosoft intune
Microsoft intune
 
Automating AWS security and compliance
Automating AWS security and compliance Automating AWS security and compliance
Automating AWS security and compliance
 
WIN403_AWS Directory Service for Microsoft Active Directory Deep Dive
WIN403_AWS Directory Service for Microsoft Active Directory Deep DiveWIN403_AWS Directory Service for Microsoft Active Directory Deep Dive
WIN403_AWS Directory Service for Microsoft Active Directory Deep Dive
 
Strong Customer Authentication & Biometrics
Strong Customer Authentication & BiometricsStrong Customer Authentication & Biometrics
Strong Customer Authentication & Biometrics
 
Modern Devices Management
Modern Devices ManagementModern Devices Management
Modern Devices Management
 
SailPoint - IdentityNow Identity Governance
SailPoint - IdentityNow Identity GovernanceSailPoint - IdentityNow Identity Governance
SailPoint - IdentityNow Identity Governance
 

Ähnlich wie Redmine on amazon ec2

Ähnlich wie Redmine on amazon ec2 (20)

grate techniques
grate techniquesgrate techniques
grate techniques
 
Influxdb
InfluxdbInfluxdb
Influxdb
 
Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04
 
Wordpress y Docker, de desarrollo a produccion
Wordpress y Docker, de desarrollo a produccionWordpress y Docker, de desarrollo a produccion
Wordpress y Docker, de desarrollo a produccion
 
Docker, c'est bonheur !
Docker, c'est bonheur !Docker, c'est bonheur !
Docker, c'est bonheur !
 
Guarding Your Code Against Bugs with Continuous Testing
Guarding Your Code Against Bugs with Continuous TestingGuarding Your Code Against Bugs with Continuous Testing
Guarding Your Code Against Bugs with Continuous Testing
 
EC2
EC2EC2
EC2
 
Ruby windows
Ruby windowsRuby windows
Ruby windows
 
MeaNstack on Docker
MeaNstack on DockerMeaNstack on Docker
MeaNstack on Docker
 
桃園市教育局Docker技術入門與實作
桃園市教育局Docker技術入門與實作桃園市教育局Docker技術入門與實作
桃園市教育局Docker技術入門與實作
 
Ubic
UbicUbic
Ubic
 
Ubic-public
Ubic-publicUbic-public
Ubic-public
 
Cara instal
Cara instalCara instal
Cara instal
 
Infrastructure as code - Python Saati #36
Infrastructure as code - Python Saati #36Infrastructure as code - Python Saati #36
Infrastructure as code - Python Saati #36
 
Infrastructureascode slideshare-160331143725
Infrastructureascode slideshare-160331143725Infrastructureascode slideshare-160331143725
Infrastructureascode slideshare-160331143725
 
Infrastructureascode slideshare-160331143725
Infrastructureascode slideshare-160331143725Infrastructureascode slideshare-160331143725
Infrastructureascode slideshare-160331143725
 
Infrastructure as code: running microservices on AWS using Docker, Terraform,...
Infrastructure as code: running microservices on AWS using Docker, Terraform,...Infrastructure as code: running microservices on AWS using Docker, Terraform,...
Infrastructure as code: running microservices on AWS using Docker, Terraform,...
 
Docker Security workshop slides
Docker Security workshop slidesDocker Security workshop slides
Docker Security workshop slides
 
Ansible : what's ansible & use case by REX
Ansible :  what's ansible & use case by REXAnsible :  what's ansible & use case by REX
Ansible : what's ansible & use case by REX
 
Chef Workshop: Setup Environment with Chef,Vagrant, and Berkshelf
Chef Workshop: Setup Environment with Chef,Vagrant, and BerkshelfChef Workshop: Setup Environment with Chef,Vagrant, and Berkshelf
Chef Workshop: Setup Environment with Chef,Vagrant, and Berkshelf
 

Mehr von Ikuru Kanuma

Mehr von Ikuru Kanuma (20)

clj and deps.edn
clj and deps.ednclj and deps.edn
clj and deps.edn
 
Kukutei shinkoku with Clojure
Kukutei shinkoku with ClojureKukutei shinkoku with Clojure
Kukutei shinkoku with Clojure
 
Locarise,reagent and JavaScript Libraries
Locarise,reagent and JavaScript LibrariesLocarise,reagent and JavaScript Libraries
Locarise,reagent and JavaScript Libraries
 
clara-rules
clara-rulesclara-rules
clara-rules
 
ClojureScript@node
ClojureScript@nodeClojureScript@node
ClojureScript@node
 
Welcome to ClojureScript
Welcome to ClojureScriptWelcome to ClojureScript
Welcome to ClojureScript
 
Clojure web dev history
Clojure web dev historyClojure web dev history
Clojure web dev history
 
Arachne Unweaved (JP)
Arachne Unweaved (JP)Arachne Unweaved (JP)
Arachne Unweaved (JP)
 
Clojureでガラケーサイトを作る際の細かい話
Clojureでガラケーサイトを作る際の細かい話Clojureでガラケーサイトを作る際の細かい話
Clojureでガラケーサイトを作る際の細かい話
 
Web forms made easy (with formative)
Web forms made easy (with formative)Web forms made easy (with formative)
Web forms made easy (with formative)
 
サムネイルを作る話
サムネイルを作る話サムネイルを作る話
サムネイルを作る話
 
Review June2015 Dec2015
Review June2015 Dec2015Review June2015 Dec2015
Review June2015 Dec2015
 
Engineering Ethics (In Japanese)
Engineering Ethics (In Japanese)Engineering Ethics (In Japanese)
Engineering Ethics (In Japanese)
 
First Real Pull Request Ever
First Real Pull Request EverFirst Real Pull Request Ever
First Real Pull Request Ever
 
Pyunit
PyunitPyunit
Pyunit
 
Review june2014 june2015
Review june2014 june2015Review june2014 june2015
Review june2014 june2015
 
Elementary vim tricks
Elementary vim tricksElementary vim tricks
Elementary vim tricks
 
Processors in a nutshell
Processors in a nutshellProcessors in a nutshell
Processors in a nutshell
 
Computer hardware, and network
Computer hardware, and networkComputer hardware, and network
Computer hardware, and network
 
Installing Japanese environment(mozc) on Debian 8 + Mate
Installing Japanese environment(mozc) on Debian 8 + Mate Installing Japanese environment(mozc) on Debian 8 + Mate
Installing Japanese environment(mozc) on Debian 8 + Mate
 

Kürzlich hochgeladen

scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 

Kürzlich hochgeladen (20)

Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 

Redmine on amazon ec2

  • 1. Setting up Redmine stack on Amazon Linux Ikuru K
  • 2. My Env Name Version Installation Method Apache httpd 2.2.31 yum Ruby 2.0 Pre installed Redmine 3.1.1 curl Passenger 5.0.20 gem MySQL 5.5.45 yum
  • 3. Acknowledgement All credit goes to this to-the-point post by Mr. Shuji Watanabe! This slide mostly is based on this post with few tweeks. – http://dev.classmethod.jp/cloud/aws/install-redmine- to-amazon-ec2/
  • 4. Lets begin ● Assume you know how to get your EC2 instance up & running, and then SSHing into the instance.
  • 5. Get httpd $ sudo yum install httpd
  • 6. Get Mysql ● $ sudo yum install mysql-server mysql-devel
  • 7. Configure for utf-8 in /etc/my.conf
  • 8. Start mysqld ● $ sudo service mysqld start ● $ sudo chkconfig mysqld on
  • 9. Set up data base for redmine ● $ mysql -uroot ● mysql> create database db_redmine default character set utf8; ● mysql> grant all on db_redmine.* to user_redmine@localhost identified by 'changeit';
  • 10. Ruby and gem are installed by default, and they work fine ● $ ruby -v ● ruby 2.0.0p647 (2015-08-18) [x86_64-linux] ● $ gem -v ● 2.4.8
  • 11. Install packages needed ● $ sudo yum groupinstall "Development Tools" ● $ sudo yum --enablerepo=epel install ruby-devel mysql-devel ImageMagick ImageMagick-devel ipa-gothic-fonts
  • 12. Get bundler ● $ gem install bundler --no-rdoc --no-ri ● Fetching: bundler-1.6.3.gem (100%) ● Successfully installed bundler-1.6.3 ● 1 gem installed
  • 13. Fetch and install redmine $ curl -O http://www.redmine.org/releases/redmine- 3.1.1.tar.gz $ tar xvf redmine-3.1.1.tar.gz $ sudo mv redmine-3.1.1 /var/lib/redmine
  • 14. Install Io-console gem $ curl -O http://www.redmine.org/releases/redmine- 3.1.1.tar.gz $ tar xvf redmine-3.1.1.tar.gz $ sudo mv redmine-3.1.1 /var/lib/redmine
  • 15. Copy database.yml.example to database.yml and write the following production: adapter: mysql2 database: db_redmine host: localhost username: user_redmine password: changeit encoding: utf8
  • 16. Set up redmine itself $ cd /var/lib/redmine $ bundle install --without development test
  • 17. Create Session secret token $ bundle exec rake generate_secret_token
  • 18. Initialize database $ bundle exec rake db:migrate RAILS_ENV=production
  • 19. Getting passenger working Install required packeges Follow the interactive set up script. $ sudo yum install curl-devel httpd-devel apr-devel apr-util-devel $ gem install passenger --no-rdoc --no-ri $ passenger-install-apache2-module
  • 20. Put the resulting setting string to /etc/httpd/conf.d/passenger.conf LoadModule passenger_module /home/ec2- user/.gem/ruby/2.0/gems/passenger- 5.0.20/buildout/apache2/mod_passenger.so <IfModule mod_passenger.c> PassengerRoot /home/ec2-user/.gem/ruby/2.0/gems/passenger-5.0.20 PassengerDefaultRuby /usr/bin/ruby2.0 </IfModule>
  • 21. Set the document root for httpd in /etc/httpd/conf/httpd.conf ● DocumentRoot "/var/lib/redmine/public”
  • 22. Start the http server, and everything should work after accessing your ip address with a browser. ● $ sudo service httpd start ● $ sudo chkconfig httpd on
  • 23. Defaul login ● User id = admin ● Password = admin