Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6
System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64
User : User ( 0)
PHP Version : 7.4.6
Disable Function : NONE
Directory :  C:/xampp/htdocs/dashboard/docs/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : C:/xampp/htdocs/dashboard/docs/configure-use-tomcat.html
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">

    <!-- Always force latest IE rendering engine or request Chrome Frame -->
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <!-- Use title if it's in the page YAML frontmatter -->
    <title>Configure and Use Apache Tomcat</title>




    <link href="/dashboard/stylesheets/normalize.css" rel="stylesheet" type="text/css" /><link href="/dashboard/stylesheets/all.css" rel="stylesheet" type="text/css" />
    <link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/3.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />

    <script src="/dashboard/javascripts/modernizr.js" type="text/javascript"></script>


    <link href="/dashboard/images/favicon.png" rel="icon" type="image/png" />


  </head>

  <body class="docs docs_configure-use-tomcat">
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=277385395761685";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <div class="contain-to-grid">
      <nav class="top-bar" data-topbar>
        <ul class="title-area">
          <li class="name">
            <h1><a href="/dashboard/index.html">Apache Friends</a></h1>
          </li>
          <li class="toggle-topbar menu-icon">
            <a href="#">
              <span>Menu</span>
            </a>
          </li>
        </ul>

        <section class="top-bar-section">
          <!-- Right Nav Section -->
          <ul class="right">
              <li class=""><a href="/applications.html">Applications</a></li>
              <li class=""><a href="/dashboard/faq.html">FAQs</a></li>
              <li class="active"><a href="/dashboard/howto.html">HOW-TO Guides</a></li>
              <li class=""><a target="_blank" href="/dashboard/phpinfo.php">PHPInfo</a></li>
              <li class=""><a href="/phpmyadmin/">phpMyAdmin</a></li>
          </ul>
        </section>
      </nav>
    </div>

    <div id="wrapper">
      <div class="hero">
  <div class="row">
    <div class="large-12 columns">
      <h1>Documentation</h1>
    </div>
  </div>
</div>
<div class="row">
  <div class="large-12 columns">
    <ul class="sub-nav">
      <li>
<a class="pdf" target="_blank" href="/dashboard/docs/configure-use-tomcat.pdf">          Download PDF
          <span>configure-use-tomcat.pdf</span>
</a>      </li>
    </ul>
    <article class="asciidoctor">
      <h1>Configure and Use Apache Tomcat</h1>
<div class="paragraph">
<p>XAMPP for Windows comes with Apache Tomcat built in, making it easy to get started with Java-based Web applications. This guide will walk you through the process of using Apache Tomcat with XAMPP.</p>
</div>
<div class="paragraph">
<p>XAMPP for Windows does not include Java, which is a pre-requisite for using Apache Tomcat. If you do not already have Java installed, you will see an error similar to the below when you attempt to start Apache Tomcat through the XAMPP control panel.</p>
</div>
<div class="imageblock">
<div class="content">
<img src="./images/configure-use-tomcat/image1.png" alt="image1">
</div>
</div>
<div class="paragraph">
<p>To correct this, install Java and then attempt to use Apache Tomcat, as below:</p>
</div>
<div class="olist arabic">
<ol class="arabic">
<li>
<p>Browse to <a href="https://www.java.com/en/download/">https://www.java.com/en/download/</a> and follow the instructions to download the latest version of the Java Runtime Environment.</p>
<div class="imageblock">
<div class="content">
<img src="./images/configure-use-tomcat/image2.png" alt="image2">
</div>
</div>
</li>
<li>
<p>Follow the on-screen instructions to install Java.</p>
<div class="imageblock">
<div class="content">
<img src="./images/configure-use-tomcat/image3.png" alt="image3">
</div>
</div>
<div class="paragraph">
<p>Once installed, you will see a message like the one below:</p>
</div>
<div class="imageblock">
<div class="content">
<img src="./images/configure-use-tomcat/image4.png" alt="image4">
</div>
</div>
<div class="admonitionblock note">
<table>
<tr>
<td class="icon">
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
On some versions of Windows, you will not be able to install Java without administrator privileges. You may either need to log in as a user with administrative rights or, if you are using the offline Java installer, you may need to right-click the installer file and select the "Run as administrator" menu option, then enter administrator credentials (if required) to proceed.
</td>
</tr>
</table>
</div>
</li>

<li>
	<p>Ensure you select the "Set JAVA_HOME" and "Javasoft (Oracle) registry entries" when installing your Java distribution. For example, if using AdoptOpenJDK, you can easily achieve that by selecting the "Entire feature will be installed on local hard drive" in the root element of the list.</p>
	<div class="imageblock">
		<div class="content">
			<img src="./images/configure-use-tomcat/image8.png" alt="image8">
		</div>
	</div>
</li>


<li>
<p>Start the Apache Tomcat server using the XAMPP control panel.</p>
</li>
</ol>
</div>
<div class="imageblock">
<div class="content">
<img src="./images/configure-use-tomcat/image5.png" alt="image5">
</div>
</div>
<div class="paragraph">
<p>You should now be able to access Apache Tomcat by browsing to <a href="http://localhost:8080/" class="bare">http://localhost:8080/</a> in your browser&#8217;s address bar. Here&#8217;s an example of what you should see:</p>
</div>
<div class="imageblock">
<div class="content">
<img src="./images/configure-use-tomcat/image6.png" alt="image6">
</div>
</div>
<div class="paragraph">
<p>Apache Tomcat includes two applications, the "manager" application and the "host-manager" application, that simplify management and deployment of Web applications and provide detailed information on server status. These applications can be accessed from the Apache Tomcat welcome page, as highlighted in the image above.</p>
</div>
<div class="paragraph">
<p>Access to the above applications is blocked by default. To access them, you must configure one or more sets of administrator accounts and then assign the roles "manager-gui" and/or "admin-gui" to these accounts. Accounts with the "manager-gui" role would have access to the "manager" application, and those with the "admin-gui" role would have access to the "host-manager" application.</p>
</div>
<div class="paragraph">
<p>To configure these accounts, follow the steps below:</p>
</div>
<div class="olist arabic">
<ol class="arabic">
<li>
<p>Edit the <em>tomcat-users.xml</em> file in the <em>tomcat/conf</em> subdirectory of your XAMPP installation directory (typically <em>C:\xampp</em>) and add the line below, before the closing <em>&lt;/tomcat-users&gt;</em> element:</p>
<div class="literalblock">
<div class="content">
<pre>&lt;user username="admin" password="admin" roles="manager-gui,admin-gui" /&gt;</pre>
</div>
</div>
<div class="paragraph">
<p>This configures an account with username "admin" and password "admin", with access to both the Apache Tomcat Web applications. Remember to replace the username and password with values specific to your installation.</p>
</div>
<div class="paragraph">
<p>If you prefer to have a separate account for each application, replace the previous configuration with this example:</p>
</div>
<div class="literalblock">
<div class="content">
<pre>&lt;user username="manager" password="manager" roles="manager-gui" /&gt;
&lt;user username="admin" password="admin" roles="admin-gui" /&gt;</pre>
</div>
</div>
</li>
<li>
<p>Save the changes.</p>
</li>
<li>
<p>Restart the Apache Tomcat server using the XAMPP control panel.</p>
</li>
</ol>
</div>
<div class="paragraph">
<p>You should now be able to access the Apache Tomcat Web applications using the configured credentials. Here&#8217;s an example of the management Web application, which includes controls to deploy new WAR applications.</p>
</div>
<div class="imageblock">
<div class="content">
<img src="./images/configure-use-tomcat/image7.png" alt="image7">
</div>
</div>
    </article>
  </div>
</div>

    </div>

    <footer>
      <div class="row">
        <div class="large-12 columns">
          <div class="row">
            <div class="large-8 columns">
              <ul class="social">
  <li class="twitter"><a href="https://twitter.com/apachefriends">Follow us on Twitter</a></li>
  <li class="facebook"><a href="https://www.facebook.com/we.are.xampp">Like us on Facebook</a></li>
  <li class="google"><a href="https://plus.google.com/+xampp/posts">Add us to your G+ Circles</a></li>
</ul>

              <ul class="inline-list">
                <li><a href="https://www.apachefriends.org/blog.html">Blog</a></li>
                <li><a href="https://www.apachefriends.org/privacy_policy.html">Privacy Policy</a></li>
                <li>
<a target="_blank" href="http://www.fastly.com/">                    CDN provided by
                    <img width="48" data-2x="/dashboard/images/fastly-logo@2x.png" src="/dashboard/images/fastly-logo.png" />
</a>                </li>
              </ul>
            </div>
            <div class="large-4 columns">
              <p class="text-right">Copyright (c) 2018, Apache Friends</p>
            </div>
          </div>
        </div>
      </div>
    </footer>

    <!-- JS Libraries -->
    <script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="/dashboard/javascripts/all.js" type="text/javascript"></script>
  </body>
</html>