Was this page helpful?

Jira

    Table of contents
    No headers

     

    Install Ubuntu server - select openssh server only.  Do not install Tomcat or Mysql or LAMP yet.

    update your server 

    sudo apt-get update && sudo apt-get upgrade

    install Sun's Java6 JDK ( don't need the JRE ) - about 60Mb see http://www.jaxmag.com/itr/news/psecom,id,35104,nodeid,146.html

    sudo apt-get install sun-java6-jdk 

    setup JAVA_HOME ( you might have to change the numbers depending on what version you have )

    export  JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.20/
    export PATH=$PATH:$JAVA_HOME/bin

    confirm that the path is set correctly

    echo $JAVA_HOME

    and that java is installed correctly

    java -version

    Now install mysql

    sudo apt-get install mysql-server

    and provide the password for the Mysql root user

    now move to your home directory .. which is where we will install Jira

    cd

    create home directory for jira

    mkdir jirahome 

    Download jira http://www.atlassian.com/software/jira/JIRADownloadCenter.jspa for linux and store the tar.gz file in this directory

    Download this modified bash script ( updated for the latest jdbc

    version for mysql )

    wget http://www.compkarori.com/mysql/jira.bash

    And make it executable

    chmod +x ./jira.bash

    Now install curl

    sudo apt-get install curl 

    And lynx, the text based browser

    sudo apt-get install lynx-cur 

    Now run the bash script  .. it will download the jdbc driver and unpack it.

    ./jira.bash

    Answer jira for the database user, and create a password.  
    Next give the answer for the root mysql password

    Now, we need to edit the jira/conf/server.xml file at around line 50, but don't touch the username and password.

              <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"

                        driverClassName="com.mysql.jdbc.Driver"

                        url="jdbc:mysql://localhost/jiradb?autoReconne...rEncoding=UTF8"/>

                        username="jira"

                        password="sql-root-password"

                        maxActive="20"

    validationQuery="select 1"

    />

    And finally we need to setup jira home ...

    cd jira/atlassian-jira/WEB-INF/classes
    nano jira-application.properties

     and find the line that says

    jira.home=

    and complete it to

    jira.home=/home/graham/jirahome

    where you substitute graham with the user that is running jira

    Now start up Jira by

    jira/bin/startup.sh

    See http://confluence.atlassian.com/disp...MySQL+on+Linux

    for trouble shooting 

     

    http://techgurulive.com/2008/12/17/how-to-install-jira-standalone-under-linux-with-mysql/

     

    Was this page helpful?
    Tag page (Edit tags)
    • No tags
    You must login to post a comment.
    Powered by MindTouch Core