install Jira on Linux (lucid)

#first download jira
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 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

#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;
#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;
#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”





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.home =/home/ubuntu/jira_home



Leave a Reply

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

You are commenting using your 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