Installing JIRA on Centos 5.2
Step by step how I installed Atlassian Jira on Centos 5.2.
Download JIRA Enterprise (current version 3.12.3)
cd /tmp wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-3.12.3.tar.gz useradd --create-home -c "Jira role account" jira mkdir -p /opt/jira cd /opt/jira/ tar xvfz /tmp/atlassian-jira-enterprise-3.12.3-standalone.tar.gz ln -s atlassian-jira-enterprise-3.12.3-standalone/ current chown -R jira: /opt/jira
Create file /etc/init.d/jira
chmod +x /etc/init.d/jira chkconfig --add jira chkconfig jira on
Check ports in current/conf/server.xml
I changed Server port=”8002″ and Connector port=”8082″
Start Jira now and check log file
/etc/init.d/jira start less /opt/jira/current/logs/catalina.out
If everything went all right, you should see Setup Wizard on http://serverip:8082
Setup mysql database
If you don’t have Mysql server installed, do it now.
yum install mysql-server /etc/init.d/mysqld start chkconfig mysqld on
Next, create database user for jira
mysql -u root -p create database jiradb character set utf8; grant all privileges on jiradb.* to jirauser@localhost identified by 'mypassword' with grant option; flush privileges; quit
Next, get MySQL/J JDBC driver and install it
cd /tmp wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/http://mysql.linux.cz/ tar xvfz mysql-connector-java-5.1.6.tar.gz cp mysql-connector-java-5.1.6/mysql-connector-java-5.1.6-bin.jar /opt/jira/current/common/lib/
Now we need to edit some configuration files to get MySQL working.
Edit /opt/jira/current/conf/server.xml and set
<Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false">
<Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
username="jirauser"
password="ji123ra"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/jiradb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"/>
Next, edit /opt/jira/current/atlassian-jira/WEB-INF/classes/entityengine.xml and set
<datasource name="defaultDS" field-type-name="mysql"
helper-class="org.ofbiz.core.entity.GenericHelperDAO"
check-on-start="true"
use-foreign-keys="false"
use-foreign-key-indices="false"
check-fks-on-start="false"
check-fk-indices-on-start="false"
add-missing-on-start="true"
check-indices-on-start="true">
Now, restart JIRA and return back to JIRA Setup Wizzard at http://server_ip:8082