JIRA 7.6 can't be installed with port 80

I am trying to install JIRA 7.6 on my Redhat and I want to use port 80.

But the installation process rejects with reason "for security reasons the port number must be above 1023"

Then I go ahead with the default port 8080 and follow some posts to change the configuration port to 80 in server.xml and using jira configuration tool by running config.sh. But still can't run JIRA on browser with port 80

So both the installation rejects port 80 and changing configuration to port 80 doesn't work.

Please help. Thanks.



1 answer

1 accepted

0 votes

This is a standard Linux security system kicking in.  Services cannot run on ports below 1024 unless they are run by root.

Three approaches:

  1. Run Jira as root.  Except, do not do this.  You absolutely do NOT want to run Jira as root, that's a much bigger pile of security problems than this blocking behaviour
  2. Run Jira behind a proxy.  Proxies such as Apache and nginx use some tricks to run as non-root systems on lower number ports, and can effectively solve the problem for you by saying "when user lands on 80, I'll just proxy it over to Jira on 8080"
  3. Use the same "setuid" trick Apache and Nginx use to run non-root users on low numbered ports on the Tomcat that is running Jira. 

I prefer option 2 because proxies generally allow all sorts of other sneaky things while keeping the Jira installation as non-customised as possible.  I've done 1 on a test system, and had security scans throw fits, and I've done 3 a couple of times a long time ago - it works, but proxies are nicer (because I always add SSL, and usually integrate the Atlassian stuff with other systems, and can use it to make them part of a website and and and)

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

461 views 1 15
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot