SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Similaire à Redmine on amazon ec2

Similaire à Redmine on amazon ec2 (20)

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
 
Things I've learned working with Docker Support
Things I've learned working with Docker SupportThings I've learned working with Docker Support
Things I've learned working with Docker Support
 

Plus de Ikuru Kanuma

Plus de 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
 
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
 
Git for standalone use
Git for standalone useGit for standalone use
Git for standalone use
 

Dernier

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 

Dernier (20)

Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 

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