{"id":4220,"date":"2018-05-30T12:36:37","date_gmt":"2018-05-30T08:36:37","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/ubuntu-apache-tomcat\/"},"modified":"2018-05-30T12:36:37","modified_gmt":"2018-05-30T08:36:37","slug":"how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts\/","title":{"rendered":"How to Install and Configure Apache Tomcat 9 on Ubuntu 18.04 LTS"},"content":{"rendered":"<p>Apache Tomcat is an open source Java Servlet implementation developed by the Apache Software Foundation. In addition to the implementation of Java Servlets, Tomcat supports other Java server technologies too, including JavaServer Pages (JSP), Java Expression Language, and Java WebSocket. Tomcat provides an HTTP Web Server for Java applications that supports HTTP\/2, OpenSSL for JSSE, and TLS virtual hosting.<\/p>\n<p>In this tutorial, we will show you how to install and configure the Apache Tomcat 9.0.8 on Ubuntu 18.04 LTS (Bionic Beaver). We will also learn how to install Java on Ubuntu 18.04 LTS, configure a user for apache tomcat, and run the apache tomcat as a systemd service.<\/p>\n<h2 id=\"prerequisites\">Prerequisites<\/h2>\n<ul>\n<li>Ubuntu 18.04 &#8211; 64bit<\/li>\n<li>2 GB or more memory (Recommended)<\/li>\n<li>Root Privileges<\/li>\n<\/ul>\n<h2 id=\"what-we-will-do\">What we will do?<\/h2>\n<ol>\n<li>Install Java on Ubuntu 18.04<\/li>\n<li>Configure Java Environment<\/li>\n<li>Install Apache Tomcat 9<\/li>\n<li>Configure Apache Tomcat as a Service<\/li>\n<li>Configure Apache Tomcat Users<\/li>\n<li>Testing<\/li>\n<\/ol>\n<h2 id=\"step-install-java-on-ubuntu-\">Step 1 &#8211; Install Java on Ubuntu 18.04<\/h2>\n<p>In this step, we will install Java JRE and JDK from the PPA repository. To do that, we have to install a new package &#8216;software-properties-common&#8217; first for managing the repository.<\/p>\n<p>Install &#8216;software-properties-common&#8217; package.<\/p>\n<p class=\"command\">sudo apt install software-properties-common -y<\/p>\n<p>Add the java &#8216;webupd8team&#8217; repository using the &#8216;add-apt-repository&#8217; command.<\/p>\n<p class=\"command\">sudo add-apt-repository ppa:webupd8team\/java<\/p>\n<p>And install java using the apt command below.<\/p>\n<p class=\"command\">sudo apt install oracle-java8-installer -y<\/p>\n<p>When the installation is complete, check the java version installed on the system.<\/p>\n<p class=\"command\">java -version<\/p>\n<p>And you will get the result as below.<\/p>\n<pre class=\"system\">java version \"1.8.0_171\"<br\/>Java(TM) SE Runtime Environment (build 1.8.0_171-b11)<br\/>Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)<\/pre>\n<p><a class=\"fancybox\" id=\"img-1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts.png\" alt=\"Install Java on Ubuntu\" width=\"500\" height=\"130\" title=\"\"><\/a><\/p>\n<p>Java has been installed on Ubuntu 18.04.<\/p>\n<h2 id=\"step-configure-java-environment\">Step 2 &#8211; Configure Java Environment<\/h2>\n<p>In the first step, we&#8217;ve installed Java. Now we need to configure the JAVA_HOME environment variable on the Ubuntu server so that Java applications can find the Java installation directory. Tomcat needs a JAVA_HOME environment to be set up properly.<\/p>\n<p>Before we configure the JAVA_HOME environment, we need to know where the Java directory is. Check the location of the Java directory with the command below:<\/p>\n<p class=\"command\">sudo update-alternatives &#8211;config java<\/p>\n<p><a class=\"fancybox\" id=\"img-2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-1.png\" alt=\"Configure Java Environment\" width=\"500\" height=\"182\" title=\"\"><\/a><\/p>\n<p>The java directory\u00a0 is &#8220;<strong>\/usr\/lib\/jvm\/java-8-oracle\/jre<\/strong>&#8220;<\/p>\n<p>Now edit the &#8216;\/etc\/environment&#8217; file using <a href=\"https:\/\/www.howtoforge.com\/vim-basics\" target=\"_blank\" rel=\"noopener noreferrer\">vim<\/a>.<\/p>\n<p class=\"command\">vim \/etc\/environment<\/p>\n<p>Paste the following configuration there.<\/p>\n<pre>JAVA_HOME=\"\/usr\/lib\/jvm\/java-8-oracle\/jre\"<\/pre>\n<p>Save and exit.<\/p>\n<p>Edit the &#8216;~\/.bashrc&#8217; file.<\/p>\n<p class=\"command\">vim ~\/.bashrc<\/p>\n<p>Paste the below configuration.<\/p>\n<pre>export JAVA_HOME=\/usr\/lib\/jvm\/java-8-oracle\/jre&#13;\nexport PATH=$JAVA_HOME\/bin:$PATH<\/pre>\n<p>Save and exit.<\/p>\n<p>Now reload the &#8216;~\/.bashrc&#8217; script and test the &#8216;JAVA_HOME&#8217; directory.<\/p>\n<p class=\"command\">source ~\/.bashrc<br \/>echo $JAVA_HOME<\/p>\n<p><a class=\"fancybox\" id=\"img-3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-2.png\" alt=\"Setup Java environment\" width=\"500\" height=\"192\" title=\"\"><\/a><\/p>\n<p>The java environment setup has been completed.<\/p>\n<h2 id=\"step-install-apache-tomcat\">Step 3 &#8211; Install Apache Tomcat<\/h2>\n<p>In this step, we will install the Apache Tomcat under the &#8216;tomcat&#8217; user and group. We will download the apache tomcat binary files, configure the Catalina tomcat servlet container environment, and do a first test of the Tomcat server.<\/p>\n<p>Add new user and group named &#8216;tomcat&#8217; using the commands below.<\/p>\n<p class=\"command\">groupadd tomcat<br \/>useradd -s \/bin\/false -g tomcat -d \/opt\/tomcat tomcat<\/p>\n<p>Now go to the &#8216;\/opt\/&#8217; directory and download the latest apache tomcat stable version (9.0.8) using the wget command.<\/p>\n<p class=\"command\">cd \/opt\/<br \/>wget http:\/\/www-eu.apache.org\/dist\/tomcat\/tomcat-9\/v9.0.8\/bin\/apache-tomcat-9.0.8.tar.gz<\/p>\n<p>Extract the apache tomcat package file and rename the directory to &#8216;tomcat&#8217;.<\/p>\n<p class=\"command\">tar -xzvf apache-tomcat-9.0.8.tar.gz<br \/>mv apache-tomcat-9.0.8\/ tomcat\/<\/p>\n<p>Change the owner of tomcat directory and files to the &#8216;tomcat&#8217; user and group, then make all apache tomcat binary files executable.<\/p>\n<p class=\"command\">chown -R tomcat:tomcat \/opt\/tomcat<br \/>chmod +x \/opt\/tomcat\/bin\/*<\/p>\n<p>Next, we will configure the Catalina tomcat servlet container environment by editing the &#8216;~\/.bashrc&#8217; file using vim.<\/p>\n<p class=\"command\">vim ~\/.bashrc<\/p>\n<p>Paste the following configuration there.<\/p>\n<pre>export CATALINA_HOME=\/opt\/tomcat<\/pre>\n<p>Save and exit.<\/p>\n<p>Reload the &#8216;~\/.bashrc&#8217; file and test the Catalina environment.<\/p>\n<p class=\"command\">source ~\/.bashrc<br \/>echo $CATALINA_HOME<\/p>\n<p>You will get the result as shown below.<\/p>\n<p><a class=\"fancybox\" id=\"img-4\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/4.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-3.png\" alt=\"Setup Tomcat\" width=\"500\" height=\"199\" title=\"\"><\/a><\/p>\n<p>Now test to run the Apache Tomcat itself.<\/p>\n<p>Run the command below to start Apache tomcat.<\/p>\n<p class=\"command\">$CATALINA_HOME\/bin\/startup.sh<\/p>\n<p>And you&#8217;ll see the result &#8211; apache tomcat has been started. It will run on the default port &#8216;8080&#8217; &#8211; you can check the port using netstat command.<\/p>\n<p class=\"command\">netstat -plntu<\/p>\n<p>The Apache Tomcat is running the server under port 8080.<\/p>\n<p><a class=\"fancybox\" id=\"img-5\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/5.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-4.png\" alt=\"Install and start Apache Tomcat\" width=\"500\" height=\"261\" title=\"\"><\/a><\/p>\n<p>Another way for testing the apache tomcat is by visiting the server IP address with port 8080.<\/p>\n<p><a href=\"http:\/\/192.168.10.100:8080\/\">http:\/\/192.168.10.100:8080\/<\/a><\/p>\n<p>And you will see the apache tomcat homepage as below.<\/p>\n<p><a class=\"fancybox\" id=\"img-6\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/6.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-5.png\" alt=\"Tomcat started\" width=\"500\" height=\"286\" title=\"\"><\/a><\/p>\n<p>Apache Tomcat has been installed on Ubuntu 18.04.<\/p>\n<p>Now run the command below to stop the apache tomcat.<\/p>\n<p class=\"command\">$CATALINA_HOME\/bin\/shutdown.sh<br \/>chown -hR tomcat:tomcat \/opt\/tomcat\/<\/p>\n<p><a class=\"fancybox\" id=\"img-7\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/7.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-6.png\" alt=\"Stop Tomcat server\" width=\"500\" height=\"161\" title=\"\"><\/a><\/p>\n<h2 id=\"step-configure-apache-tomcat-as-a-service\">Step 4 &#8211; Configure Apache Tomcat as a Service<\/h2>\n<p>In this tutorial, we want to run Apache Tomcat as tomcat user with a systemd service file so it can be started and stopped easily. Now we need to create the &#8216;apache-tomcat.service&#8217; file.<\/p>\n<p>Go to the systemd system directory and create a new file &#8216;apache-tomcat.service&#8217;.<\/p>\n<p class=\"command\">cd \/etc\/systemd\/system\/<br \/>vim apache-tomcat.service<\/p>\n<p>Paste the following configuration there:<\/p>\n<pre>[Unit]&#13;\nDescription=Apache Tomcat 9 Servlet Container&#13;\nAfter=syslog.target network.target&#13;\n&#13;\n[Service]&#13;\nUser=tomcat&#13;\nGroup=tomcat&#13;\nType=forking&#13;\nEnvironment=CATALINA_PID=\/opt\/tomcat\/tomcat.pid&#13;\nEnvironment=CATALINA_HOME=\/opt\/tomcat&#13;\nEnvironment=CATALINA_BASE=\/opt\/tomcat&#13;\nExecStart=\/opt\/tomcat\/bin\/startup.sh&#13;\nExecStop=\/opt\/tomcat\/bin\/shutdown.sh&#13;\nRestart=on-failure&#13;\n&#13;\n[Install]&#13;\nWantedBy=multi-user.target<\/pre>\n<p>Save and exit.<\/p>\n<p>Now reload the systemd service.<\/p>\n<p class=\"command\">systemctl daemon-reload<\/p>\n<p>And start the &#8216;apache-tomcat&#8217; service using the systemctl commands below.<\/p>\n<p class=\"command\">systemctl start apache-tomcat<br \/>systemctl enable apache-tomcat<\/p>\n<p><a class=\"fancybox\" id=\"img-8\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/8.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-7.png\" alt=\"Configure Apache Tomcat as a Service\" width=\"500\" height=\"123\" title=\"\"><\/a><\/p>\n<p>The Apache Tomcat is now running as a service on Ubuntu 18.04, check it using following commands.<\/p>\n<p class=\"command\">netstat -plntu<br \/>systemctl status apache-tomcat<\/p>\n<p><a class=\"fancybox\" id=\"img-9\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/9.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-8.png\" alt=\"Check Tomcat service\" width=\"500\" height=\"291\" title=\"\"><\/a><\/p>\n<p>The Apache Tomcat is now running and it&#8217;s using the port 8080 as a default port.<\/p>\n<h2 id=\"step-configure-apache-tomcat-user\">Step 5 &#8211; Configure Apache Tomcat User<\/h2>\n<p>In this step, we will configure the users for Apache Tomcat. We will add a new user to access the manager UI, and then allow the manager and host-manager access.<\/p>\n<p>Go to the &#8216;\/opt\/tomcat\/conf&#8217; directory and edit the &#8216;tomcat-users.xml&#8217; file using vim.<\/p>\n<p class=\"command\">cd \/opt\/tomcat\/conf<br \/>vim tomcat-users.xml<\/p>\n<p>Paste the following configuration before the closing configuration &#8216;<em>&lt;\/tomcat-users&gt;<\/em>&#8216;.<\/p>\n<pre>&lt;role rolename=\"manager-gui\"\/&gt;&#13;\n&lt;user username=\"hakase\" password=\"hakasepassword01\" roles=\"manager-gui,admin-gui\"\/&gt;<\/pre>\n<p>Save and exit.<\/p>\n<p><a class=\"fancybox\" id=\"img-10\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/10.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-9.png\" alt=\"Configure Apache Tomcat User\" width=\"500\" height=\"198\" title=\"\"><\/a><\/p>\n<p>Now allow external access to the &#8216;manager&#8217; dashboard by editing it&#8217;s configuration &#8216;context.xml&#8217; file.<\/p>\n<p class=\"command\">cd \/opt\/tomcat\/webapps\/manager\/META-INF\/<br \/>vim context.xml<\/p>\n<p>Comment the &#8216;allow&#8217; line 19-20.<\/p>\n<pre>&lt;!-- &lt;Valve className=\"org.apache.catalina.valves.RemoteAddrValve\"&#13; allow=\"127\\.\\d+\\.\\d+\\.\\d+|::1|0:0:0:0:0:0:0:1\" \/&gt; --&gt;<\/pre>\n<p>Save and exit.<\/p>\n<p><a class=\"fancybox\" id=\"img-11\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/11.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-10.png\" alt=\"Configure Tomcat tolisten on external network interface\" width=\"500\" height=\"134\" title=\"\"><\/a><\/p>\n<p>And for the &#8216;host-manager&#8217;.<\/p>\n<p class=\"command\">cd \/opt\/tomcat\/webapps\/host-manager\/META-INF\/<br \/>vim context.xml<\/p>\n<p>Comment the &#8216;allow&#8217; line 19-20.<\/p>\n<pre>&lt;!-- &lt;Valve className=\"org.apache.catalina.valves.RemoteAddrValve\"&#13; allow=\"127\\.\\d+\\.\\d+\\.\\d+|::1|0:0:0:0:0:0:0:1\" \/&gt; --&gt;<\/pre>\n<p>Save and exit.<\/p>\n<p><a class=\"fancybox\" id=\"img-12\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/12.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-11.png\" alt=\"comment out org.apache.catalina.valves.RemoteAddrValve\" width=\"500\" height=\"116\" title=\"\"><\/a><\/p>\n<p>Restart the Apache Tomcat service using the systemctl command.<\/p>\n<p class=\"command\">systemctl restart apache-tomcat<\/p>\n<p>The apache tomcat-users configuration, manager, and host-manager configuration has been completed.<\/p>\n<h2 id=\"step-testing\">Step 6 &#8211; Testing<\/h2>\n<p>Open your web browser and type in your server IP with port 8080. You will see the Apache Tomcat home page.<\/p>\n<p><a href=\"http:\/\/192.168.10.100:8080\/\">http:\/\/192.168.10.100:8080\/<\/a><\/p>\n<p><a class=\"fancybox\" id=\"img-13\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/13.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-12.png\" alt=\"Apache Tomcat runs as a service\" width=\"500\" height=\"284\" title=\"\"><\/a><\/p>\n<p>Go to the manager dashboard with the URL below:<\/p>\n<p><a href=\"http:\/\/192.168.10.100:8080\/manager\/html\">http:\/\/192.168.10.100:8080\/manager\/html<\/a><\/p>\n<p>Type the admin username &#8216;hakase&#8217; with password &#8216;hakasepassword01&#8217; from step 5.<\/p>\n<p><a class=\"fancybox\" id=\"img-14\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/14.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-13.png\" alt=\"Apache Tomcat application manager\" width=\"500\" height=\"277\" title=\"\"><\/a><\/p>\n<p>Now go to the host-manager dashboard through URL below:<\/p>\n<p><a href=\"http:\/\/192.168.10.100:8080\/host-manager\/html\">http:\/\/192.168.10.100:8080\/host-manager\/html<\/a><\/p>\n<p>Enter the admin user and password from step 5, you will see the Tomcat Virtual Host Manager.<\/p>\n<p><a class=\"fancybox\" id=\"img-15\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_and_configure_apache_tomcat_9_on_ubuntu_1804\/big\/15.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-14.png\" alt=\"Apache Tomcat Virtual Host Manager\" width=\"500\" height=\"288\" title=\"\"><\/a><\/p>\n<p>Apache Tomcat 9.0.8 has been installed successfully on Ubuntu 18.04 Bionic Beaver.<\/p>\n<h2 id=\"reference\">Reference<\/h2>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-apache-tomcat%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-15.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-apache-tomcat%2F&amp;text=How+to+Install+and+Configure+Apache+Tomcat+9+on+Ubuntu+18.04+LTS&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-16.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-17.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-apache-tomcat%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/how-to-install-and-configure-apache-tomcat-9-on-ubuntu-18-04-lts-18.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Apache Tomcat is an open source Java Servlet implementation developed by the Apache Software Foundation. In addition to the implementation of Java Servlets, Tomcat supports other Java server technologies too, including JavaServer Pages (JSP), Java Expression Language, and Java WebSocket. Tomcat provides an HTTP Web Server for Java applications that supports HTTP\/2, OpenSSL for JSSE, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-4220","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/4220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=4220"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/4220\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=4220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=4220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=4220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}