Installing JIRA on Amazon EC2 Ubuntu Small Instance

I have recently purchased a jira starter license for myself and decided to host it on my Amazon EC2 Ubuntu server. Memory of a small instance is only 1.7Gbytes and I am planning to run JIRA, Confluence, Stash, Mysql, VPN Server on that machine. I am planning to give each tomcat instance a 512MB memory. It may be possible to install JIRA and Confluence on the same Tomcat installation but this is not recommended by Atlasian.

  • Install Java

    #sudo add-apt-repository ppa:webupd8team/java
    #sudo apt-get update && sudo apt-get install oracle-jdk7-installer
     

  • Install mysql

     sudo apt-get install mysql

  • Connect to mysql with root account and password you have created during mysql installation

    mysql -u root -p

  • Create a database for JIRA  called jira

    mysql> create database jira character set utf8 collate utf8_bin 

  • Create a user named jira and grant access to jira database from anywhere

    grant all on jira.* to 'jira'@'localhost' identified by 'your_jira_user_password'  

  • Download JIRA

    wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-5.2.10.tar.gz 

  • Unzip JIRA installation

    tar -zxvf atlassian-jira-5.2.10.tar.gz

        This will extract JIRA to atlassian-jira-5.2.10-standalone folder.

  • Download Mysql JDBC driver, unzip it and copy it to atlassian-jira-5.2.10-standalone/lib folder.

    sudo apt-get install unzip
    unzip mysql-connector-java-5.1.24.zip
    cp mysql-connector-java-5.1.24/mysql-connector-java-5.1.24-bin.jar ~/atlassian-jira-5.2.10-standalone/lib/

  • Adjust memory settings of JIRA installation by editing the bin/setenv.sh file as follows. We have reduce this values a little bit.

    JVM_MINIMUM_MEMORY="128m"
    JVM_MAXIMUM_MEMORY="512m" 

  • Before we run JIRA we need to create and configure a JIRA_HOME folder.

    mkdir -p ~/atlasian/jira

    Change atlassian-jira-5.2.10-standalone/atlassian-jira/WEB-INF/classes/jira-application.properties file as follows

    jira.home = /home/users/ubuntu/attlasian/jira

  •  Start the JIRA installation using

    ./start-jira.sh

  •  Enter http://your_elestic_ip_address:8080 into browser and enter values you have adjusted above.

     

    NewImage