install Jira on Linux (lucid)

#first download jira
wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-4.2.1-b588-standalone.tar.gz
tar zxvf atlassian-jira-enterprise-4.2.1-b588-standalone.tar.gz
#install java (Sun JDK )
sudo apt-get install python-software-properties
sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
sudo apt-get update
sudo apt-get install sun-java6-jdk
sudo update-java-alternatives -s java-6-sun

vi ~/.profile
add below
JAVA_HOME=/usr/lib/jvm/java-6-sun

#install mysql if have not done so
sudo apt-get install mysql-server mysql-client
#create jira mysql user
mysql –user=root -p
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on jiradb.* TO ‘jirauser’@’localhost’ IDENTIFIED BY ‘your-jira-user-masql-password’;
flush privileges;
quit;
#update jirauser host in mysql
mysql –user=root -p mysql
select user, host from user;
update user set host=’localhost.localdomain’ where user=’jirauser’;
flush privileges;
quit;
#no need to copy mysql driver to jira lib, since it already has it
#update the server.xml data source
vi conf/server.xml
#replace the with below

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

driverClassName=”com.mysql.jdbc.Driver”

url=”jdbc:mysql://localhost/jiradb?useUnicode=true&amp;characterEncoding=UTF8″

username=”jirauser”

password=”jira-user-mysql-password”

validationQuery=”select 1″

maxActive=”20″                            />

#edit the entityengine to use mysq
vi atlassian-jira/WEB-INF/classes/entityengine.xml
replace the “hsql” in with “mysql”

#set jira home

mkdir /home/ubuntu/jira_home

vi /atlassian-jira/WEB-INF/classes/jira-application.properties

jira.home =/home/ubuntu/jira_home

#start
./bin/startup.sh

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s