Difference between revisions of "JIRA"
From Briki
Line 1: | Line 1: | ||
== Configure a new JIRA war instance for mysql and tomcat == | == Configure a new JIRA war instance for mysql and tomcat == | ||
− | * Extract tar.gz file to /opt (eg. /opt/atlassian-jira-enterprise- | + | * Extract tar.gz file to /opt (eg. /opt/atlassian-jira-enterprise-4.0.1) |
− | * '' | + | * Edit ''/opt/atlassian-jira-enterprise-4.0.1/webapp/WEB-INF/classes/entityengine.xml'' and change: |
− | |||
<pre> | <pre> | ||
<datasource name="defaultDS" field-type-name="hsql" | <datasource name="defaultDS" field-type-name="hsql" | ||
Line 11: | Line 10: | ||
<datasource name="defaultDS" field-type-name="mysql" | <datasource name="defaultDS" field-type-name="mysql" | ||
</pre> | </pre> | ||
− | * '''sudo cp /opt/atlassian-jira-enterprise- | + | * '''sudo cp /opt/atlassian-jira-enterprise-4.0.1/etc/tomcat-6-jira.xml /etc/tomcat6/Catalina/localhost/jira.xml''' |
− | * Edit ''/ | + | * Edit ''/etc/tomcat6/Catalina/localhost/jira.xml'' |
− | ** Set ''@JIRA_WEBAPP@'' = /opt/atlassian-jira-enterprise- | + | ** Set ''@JIRA_WEBAPP@'' = /opt/atlassian-jira-enterprise-4.0.1/dist-tomcat/atlassian-jira-4.0.1.war |
** Delete the resource named ''jdbc/JiraDS'', and replace with: | ** Delete the resource named ''jdbc/JiraDS'', and replace with: | ||
<pre> | <pre> | ||
Line 22: | Line 21: | ||
url="jdbc:mysql://localhost/jira?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"/> | url="jdbc:mysql://localhost/jira?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"/> | ||
</pre> | </pre> | ||
− | * From ''/opt/atlassian-jira-enterprise- | + | * From ''/opt/atlassian-jira-enterprise-4.0.1'', run '''sudo ./build.sh war''' |
− | * Either edit ''/etc/default/ | + | * Either edit ''/etc/default/tomcat6'' and set '''TOMCAT5_SECURITY=no''' or go through the pain of getting the security policy all setup |
− | * Install libmysql-java and '''sudo ln -s /usr/share/java/mysql-connector-java-5.0.4.jar /usr/share/ | + | * Install libmysql-java and '''sudo ln -s /usr/share/java/mysql-connector-java-5.0.4.jar /usr/share/tomcat6/common/lib/''' |
* Login to mysql as root, and '''create database jira; grant all on jira.* to jira@localhost identified by 'jira';''' | * Login to mysql as root, and '''create database jira; grant all on jira.* to jira@localhost identified by 'jira';''' | ||
− | * Download ''http://www.atlassian.com/software/jira/docs/servers/jars/v1/jira-jars- | + | * Download ''http://www.atlassian.com/software/jira/docs/servers/jars/v1/jira-jars-tomcat6.zip'', extract, and copy extracted jars to ''/usr/share/tomcat6/common/lib/'' |
* Restart tomcat and cross your fingers | * Restart tomcat and cross your fingers |
Revision as of 21:51, 3 February 2010
Configure a new JIRA war instance for mysql and tomcat
- Extract tar.gz file to /opt (eg. /opt/atlassian-jira-enterprise-4.0.1)
- Edit /opt/atlassian-jira-enterprise-4.0.1/webapp/WEB-INF/classes/entityengine.xml and change:
<datasource name="defaultDS" field-type-name="hsql" schema-name="PUBLIC"
to
<datasource name="defaultDS" field-type-name="mysql"
- sudo cp /opt/atlassian-jira-enterprise-4.0.1/etc/tomcat-6-jira.xml /etc/tomcat6/Catalina/localhost/jira.xml
- Edit /etc/tomcat6/Catalina/localhost/jira.xml
- Set @JIRA_WEBAPP@ = /opt/atlassian-jira-enterprise-4.0.1/dist-tomcat/atlassian-jira-4.0.1.war
- Delete the resource named jdbc/JiraDS, and replace with:
<Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource" username="jira" password="jira" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/jira?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"/>
- From /opt/atlassian-jira-enterprise-4.0.1, run sudo ./build.sh war
- Either edit /etc/default/tomcat6 and set TOMCAT5_SECURITY=no or go through the pain of getting the security policy all setup
- Install libmysql-java and sudo ln -s /usr/share/java/mysql-connector-java-5.0.4.jar /usr/share/tomcat6/common/lib/
- Login to mysql as root, and create database jira; grant all on jira.* to jira@localhost identified by 'jira';
- Download http://www.atlassian.com/software/jira/docs/servers/jars/v1/jira-jars-tomcat6.zip, extract, and copy extracted jars to /usr/share/tomcat6/common/lib/
- Restart tomcat and cross your fingers