Installing Jira on web server

Huw Thomas December 30, 2012

Hi,

I have a cpanel dedi server with Hostgator which runs my main website and a few others, can Jira be installed to run on my website and if so are there instructions anywhere on how to do this? I have full root priveledges if needed.

Thanks and I look forward to your prompt reply

Huw

6 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 31, 2012

Mostly your provider has only port 80 allowed to be accessed. Shutdown any other http processes (httpd, apache) and change the port number in the server.xml for the JIRA installation to port 80 and start it up. If you need to have a context like domain/jira, you can add the context value also.

https://confluence.atlassian.com/display/JIRA/Changing+JIRA's+TCP+Ports

https://confluence.atlassian.com/display/JIRA/Installing+JIRA+on+Tomcat+6.0+or+7.0#InstallingJIRAonTomcat6.0or7.0-5.ConfigureJIRA'scontextinTomcat

Are you planning to use this server dedicated to JIRA? If yes the above procedure is fine, if not you need to configure Apache reverse proxy to serve different web servers running in the box using different context paths. Instructions here - https://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+Apache

Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 31, 2012

As I explained before, most probably 8080 port is not allowed to be accessed in your server. You have to talk to your provider on how to do this (if you are not able to figure out using cPanel)

Huw Thomas December 31, 2012

The server runs websites so it won't be dedicated to running just Jira. What I am trying to find out how to do is to get it to function on my server (cpanel and WHM) allowing me to put /jira after the website name.

So far I've failed to get it to work, it's installed but I can't access it :(

C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 1, 2013

if you can't even access your jira at your http://yourdomain:8080 just do what renjith said before..

check your firewall settings and open port 8080 to accept traffic.

but you can bypass this by using proxy reverse settings like i alread wrote.

i use ajp connector (needs to be setup in conf/server.xml)

my vhost file in /etc/httpd/conf.d/ contains a proxy part including this:

ProxyPass /jira ajp://localhost:8080/jira
ProxyPassReverse
/jira ajp://localhost:8080/jira

1 vote
Rusan Mihai September 15, 2013

CelticWebSolutions can you give more details? you add something in httpd.conf ?

1 vote
C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 30, 2012

Renjith is right..

as you say you have root access....you can install easily.

i also don't know cpanel...but i did a few installations on hosts using plesk.

i didn't created any subdomain vhosts inside plesk...i wrote my own and put it insite /etc/httpd/conf.d

i also used some proxy reverse lines to make jira respond i.e. on jira.myserver.com instead of myserver.com:8080

this can be done fast & easy as well..

just install jira and configure it to be accessed...the installer should do this for you. as long as you don't need any modifications it should be done out of the box and you can access your installation at yourhost:8080

you may create a database, username & password for you new jira installation before. you will be asked to choose installation type when you connect to it first.

further steps can be discussed later on

C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 30, 2012

ok according to your comment i suggest you put a proxy reverse setting in your vhost.conf file containing something like this:

ProxyPass /jira http://localhost:8080/jira
ProxyPassReverse
/jira http://localhost:8080/jira

see this kb article for more details

https://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+Apache

next you will have to configure the context-path of jira inside your INSTALL_DIR/conf/server.xml

find

<Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">

replace with

<Context path="/jira" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">

Huw Thomas December 30, 2012

Thanks

OK I will have a look now, I don't actually know where the vhosts file is on a cpanel server so I may take a while...

Huw Thomas December 30, 2012

I've edited the server.xml as you suggested but I can't find a vhost file at all.

The closest thing I can find is a httpd.conf file Which has lines whch give things like

ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi

Is that the one?

C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 1, 2013

no.

what linux distribution you're server is running?

C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 1, 2013

no.

what linux distribution your server is running?

1 vote
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 30, 2012

It depends on the type of hosting you have:

0 votes
Huw Thomas January 1, 2013

Thank everyone. You were all correct. I could just simply use the installer as root and the real issue was thathe server did not have port 8080 open after I had installed. It's now all installed and running :)

Thank you for your help everyone, have a great day!

0 votes
Huw Thomas December 30, 2012

Thanks for your replies, I have logged in as root on my server and installed the 64bit bin file which all went well (or at least I tink it did), I used the default settings and it completed the install. Now I can't work out how to access it. if I try http://www.mydomain.com:8080 I get nothing, I've also trie http://servername:8080 and still nothing.

I would like to be able to access it form http://www.mydomainname.com/jira how do I go about doing this please?

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events