Install/guide tips for installing Atlassian JIRA to server.
Official install guide is here.
Install dependencies
Just need a db (we'll use MySQL). Can follow this guide (if using yum based linux like Amazon linux, red hat etc).
Make sure to do (see below) to ensure service starts on reboot
sudo chkconfig mysqld on
Setup MySQL for JIRA
See this documentation for setting up JIRA MySQL db (and access user).
To login local MySQL do
mysql -u root -p
Despite what documentation might say, grant all privileges to the jira db. I got a bunch of MySQL errors when didn't grant all privs (and strangely couldn't create software projects...).
GRANT ALL PRIVILEGES ON jira.* TO 'jirauser'@'localhost' IDENTIFIED BY '<PASSWORD>';
JIRA services
sudo service mysqld status sudo service mysqld start sudo service mysqld stop sudo service jira status sudo service jira start sudo service jira stop sudo service jira restart
The below directions for redirecting ports and SSL are deprecated. Please see Apache reverse-proxy SSL to multiple server applications for a better solution to both port redirection and SSL.
Redirecting port 443 to 8443
We can iptables to route from https (443) to the confluence secured port as outlined here.
SSL/HTTPS
Use java keystore method outined here to obtain a cert for sub/domain.
See JIRA ssl/https guide here to implement in jira.
If that crappy guide above doesn't work, just copy .keystore to /home/jira and implement this connector in server.xml:
<Connector port="8443" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" protocol="org.apache.coyote.http11.Http11NioProtocol" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocols="TLSv1.2" sslEnabledProtocols="TLSv1.2" SSLEnabled="true" URIEncoding="UTF-8" keystorePass="<PASSWORD>"/>
Note: replace <PASSWORD> with the secured password you created in the previous steps.
Setup
For MySQL host use:
localhost
Related articles