

If in short, jira is a project management system, but it is far from exceptional to establish its business. It is very tiring to read long English-language manuals; now we’ll fix few Russian articles on the Internet.
')
Preconfigured SVN to later associate it with Jira.
The first thing you need to put java. The point is not tricky just apt-get install and everything is ready. If there is no java needed then add a multiverse repository to /etc/apt/sources.list and then everything will pop up.
Next you need to install Tomcat. It can be installed all through the same apt-get install, or you can simply pull it off the
site . This can be done like this:
wget mirrors.axint.net/apache/tomcat/tomcat-6/v6.0.26/bin/apache-tomcat-6.0.26-deployer.tar.gz
unpack:
tar zxvf apache-tomcat-6.0.26-deployer.tar.gz
A bit about the structure:
- In the / bin / folder are executable files (start, kill the server, etc.)
- The / conf / folder contains configuration files for the server.
- Of course, you shouldn't forget about the logs / folder, namely about the logs / catalina.out file - this is where the main log file is located
- / lib / - libraries, then we will need to copy additional libraries there
Run
sh /bin/statup.sh
and it should start, at least I did it without any problems. We check
localhost : 8080. If we see a kitty on the page - everything is fine; if we don’t see anything, we’re going to read Tomcat manuals.
Let's go download
jira . Please note that we need the
war version and to see the download link
you need to click show All (to be honest, you were looking for a long time).
Download jira:
wget www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-4.1.tar.gz
Unzip:
tar zxvf atlassian-jira-enterprise-4.1.tar.gz
We edit the
atlassian-jira-enterprise-4.1 / edit-webapp / WEB-INF / classes / entityengine.xml file . We will install jira on mysql.
We open the file, at the very end we see this:
<datasource name="defaultDS" field-type-name="hsql"
schema-name="PUBLIC"
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">
<jndi-jdbc jndi-server-name="default" jndi-name="java:comp/env/jdbc/JiraDS"/>
Change
field-type-name = "hsql" to
field-type-name = "mysql"delete the line
schema-name = "PUBLIC"Everything in this file does not need to touch anything else.
Now we need to establish a directory where jira will live. Open
atlassian-jira-enterprise-4.1 / edit-webapp / WEB-INF / classes / jira-application.properties and set
jira_home = / path / to / folder (remember to create this folder and set the right permissions on it).
Run the file
sh atlassian-jira-enterprise-4.1/build.sh
and wait for the jira to stray. I have it build about 2 minutes.
Then we need to update the Tomcat libraries. You can take them
here , and you need to unpack to the directory
/ lib / tomkata . There you also need to copy the file
mysql-connector-java-5.1.12-bin.jar which can be found
here .
After the build, we should have a folder:
atlassian-jira-enterprise-4.1 / dist-tomcat . We go there, find the version of Tomcat we need and copy the
jira.xml file to the Tomcat
/ conf / Catalina / localhost folder. Open this file in / conf / Catalina / localhost and edit. We need this section:
<Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
username="sa"
password=""
driverClassName="org.hsqldb.jdbcDriver"
url="jdbc:hsqldb:/home/max.zloy/atlassian-jira-enterprise-4.1/database/jiradb"
minEvictableIdleTimeMillis="4000"
timeBetweenEvictionRunsMillis="5000"/>
username = "sa" - enter the password from the database
password = "" - specify login
driverClassName - put - com.mysql.jdbc.Driver
url - jdbc: mysql: // localhost / jiradb? useUnicode = true & characterEncoding = UTF8 (you should pay attention to the fact that "&" is not a typo, it should be so)
Delete the lines:
minEvictableIdleTimeMillis="4000"
timeBetweenEvictionRunsMillis="5000"
for these options only work with hsql
And in the place of them we add:
maxActive="20"
validationQuery="select 1"
Everything, the configuration of this file is complete. Close-save.
Create a database with the name jiradb and be sure to set the encoding to it UTF-8. That's not all. Now we need to expose more memory in Tomcat, for jira is very voracious.
Open the file in the directory Tomcat
bin / setenv.sh , if not create it and paste the lines there:
save
Now that's it.
Restart Tomcat using /bin/startup.sh and /bin/shutdown.sh
Open
localhost : 8080 / jira (you may have to wait a bit for jira to be installed).
export CATALINA_OPTS="$CATALINA_OPTS -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Xms256m -Xmx256m -XX:MaxPermSize=256m"
Everything looks simple, but this is the result.