Tomcat7 : How to start on port 80

Posted: July 24, 2014 in Uncategorized

{Fetch,Decode,Execute & Share}

  • Configure tomcat7 to start on port 80

Open /etc/tomcat7/server.xml and locate to the following lines

Change the port value to 80 as below.

  • Start the tomcat7 as root user

After configuring tomcat7 to start on port 80, if you start the tomcat7 you will get errors in /etc/log/catalina.log file as below

The reason for above error is only root users have the permission to start applications on port 80. So lets configure tomcat to start with rot privileges.
So open the file /etc/init.d/tomcat7 and locate to

Then change the TOMCAT_USER to root as below.

Please note that the location of the tomcat7 file is dependent of the OS.
Debian wheezy – /etc/default/tomcat7 instead of /etc/init.d/tomcat7
Ubuntu 13.04 – /etc/init.d/tomcat7
Ubuntu 14.04 – /etc/default/tomcat7

Those locations were reported by the viewers commented below

  • Restart the tomcat7

If everything is fine, you will get an output similar to

tomcat7 (pid  24215)…

View original post 66 more words

  1. Leonora says:

    When I initiallly commented I clicked the “Notify me when new comments are added” checkbox and now each
    time a commkent is added I get four e-mails with the same comment.
    Is there any waay you can remove people from that service?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s