<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jsp Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/jsp/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 02 Oct 2019 20:16:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install Apache Tomcat on CentOS 8?</title>
		<link>https://www.osradar.com/how-to-install-apache-tomcat-on-centos-8/</link>
					<comments>https://www.osradar.com/how-to-install-apache-tomcat-on-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 04 Oct 2019 23:11:10 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=14174</guid>

					<description><![CDATA[<p>The applications that are being developed with Java technology are still booming. Although other languages look modern with advanced features like GoLang, it is true that even Java is talking about. Especially in quite productive and large environments where they can not afford to improvise. In this sense, in order for these applications to be [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-apache-tomcat-on-centos-8/">How to install Apache Tomcat on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The applications that are being developed with Java technology are still booming. Although other languages look modern with advanced features like <a href="https://www.osradar.com/install-go-language-centos-8/" target="_blank" rel="noopener noreferrer">GoLang</a>, it is true that even Java is talking about. Especially in quite productive and large environments where they can not afford to improvise. In this sense, in order for these applications to be focused mainly on the web, it is necessary to install a server like Tomcat. Therefore, in this tutorial post, you will learn how to install Apache Tomcat on CentOS 8. Do not miss it.</p>
<h2>Apache Tomcat</h2>
<p>We could easily define Apache Tomcat as a web server with exclusive support for Servlets and JSP applications. This is similar to <a href="https://osradar.com/tag/apache/" target="_blank" rel="noopener noreferrer">Apache</a> or <a href="https://osradar.com/tag/nginx/" target="_blank" rel="noopener noreferrer">Nginx</a> with HTML or <a href="https://osradar.com/tag/php/" target="_blank" rel="noopener noreferrer">PHP</a>. So, imagine a large number of server-side applications that use Java. Everyone at the end must use software like Tomcat.</p>
<p>Also, Tomcat has a big advantage in its license. It is open-source and very permissive. You can use it in purely professional projects or in educational and personal projects. With a well-maintained code, Tomcat is a leader in its sector.</p>
<p>That&#8217;s why we are going to install it on CentOS 8.</p>
<h2>Install Apache Tomcat on CentOS 8</h2>
<p>Apache Tomcat does not come by default in the official repositories of the distribution, so it must be downloaded and installed manually. The advantage of this method is that we can have the latest stable version at the time of installation.</p>
<p>The first step is to update your CentOS 8 server. To do this, connect to it using SSH. In its defect, opens a terminal session, if it is a personal computer.</p>
<pre>:~$ su<br />:~# dnf update</pre>
<p>With this, you will have the latest security patches in the system. This makes it a more secure and stable system.</p>
<p>Then you need to install Java 1.8. The good thing is that it comes in the repositories, then, the installation is achieved with the following command:</p>
<pre>:~# dnf install java-1.8.0-openjdk-devel</pre>
<figure id="attachment_14188" aria-describedby="caption-attachment-14188" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-14188" src="https://www.osradar.com/wp-content/uploads/2019/10/1-2.png" alt="1.- Install Java 1.8 on CentOS 8" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2019/10/1-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/10/1-2-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/1-2-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/1-2-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2019/10/1-2-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/1-2-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2019/10/1-2-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-14188" class="wp-caption-text">1.- Install Java 1.8 on CentOS 8</figcaption></figure>
<p>After this, make sure <code>wget</code> is installed because we will use it to download Apache Tomcat.</p>
<pre>:~# dnf install wget</pre>
<p>Then, download Apache Tomcat.</p>
<pre>:~# cd /opt/<br />:~# wget http://mirrors.advancedhosters.com/apache/tomcat/tomcat-8/v8.5.46/bin/apache-tomcat-8.5.46.zip</pre>
<figure id="attachment_14189" aria-describedby="caption-attachment-14189" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-14189" src="https://www.osradar.com/wp-content/uploads/2019/10/2-2.png" alt="2.- Download Apache tomcat on CentOS 8" width="1366" height="303" srcset="https://www.osradar.com/wp-content/uploads/2019/10/2-2.png 1366w, https://www.osradar.com/wp-content/uploads/2019/10/2-2-300x67.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/2-2-768x170.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/2-2-1024x227.png 1024w, https://www.osradar.com/wp-content/uploads/2019/10/2-2-696x154.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/2-2-1068x237.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-14189" class="wp-caption-text">2.- Download Apache tomcat on CentOS 8</figcaption></figure>
<p>Of course, you can use another mirror to download it.</p>
<p>Then, unzip the file and create a new symbolic link to the folder.</p>
<pre>:~# unzip apache-tomcat-8.5.46.zip<br />:~# ln -s /opt/apache-tomcat-8.5.46 /opt/tomcat</pre>
<p>To avoid problems in running Tomcat, it is better to add a user to the system and make it the owner of the Tomcat folder.</p>
<pre>:~# useradd tomcat<br />:~# chown -R tomcat:tomcat /opt/apache-tomcat-8.5.46</pre>
<figure id="attachment_14190" aria-describedby="caption-attachment-14190" style="width: 963px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-14190" src="https://www.osradar.com/wp-content/uploads/2019/10/3-2.png" alt="3.- Installing Tomcat on CentOS 8" width="963" height="135" srcset="https://www.osradar.com/wp-content/uploads/2019/10/3-2.png 963w, https://www.osradar.com/wp-content/uploads/2019/10/3-2-300x42.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/3-2-768x108.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/3-2-696x98.png 696w" sizes="(max-width: 963px) 100vw, 963px" /><figcaption id="caption-attachment-14190" class="wp-caption-text">3.- Installing Tomcat on CentOS 8</figcaption></figure>
<p>It is recommended to use Tomcat as a system service. To do this we will have to manually create it:</p>
<pre>:~# nano /etc/systemd/system/tomcat.service</pre>
<p>And add the following:</p>
<pre>[Unit]<br />Description=Tomcat<br />After=syslog.target network.target<br /><br />[Service]<br />Type=forking<br />User=tomcat<br />Group=tomcat<br />ExecStart=/opt/tomcat/bin/catalina.sh start<br />ExecStop=/opt/tomcat/bin/catalina.sh stop<br /><br />[Install]<br />WantedBy=multi-user.target</pre>
<figure id="attachment_14193" aria-describedby="caption-attachment-14193" style="width: 916px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-14193 size-full" src="https://www.osradar.com/wp-content/uploads/2019/10/4-1.png" alt="4.- Creating a new service for Apache Tomcat on CentOS 8" width="916" height="337" srcset="https://www.osradar.com/wp-content/uploads/2019/10/4-1.png 916w, https://www.osradar.com/wp-content/uploads/2019/10/4-1-300x110.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/4-1-768x283.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/4-1-696x256.png 696w" sizes="(max-width: 916px) 100vw, 916px" /><figcaption id="caption-attachment-14193" class="wp-caption-text">4.- Creating a new service for Apache Tomcat on CentOS 8</figcaption></figure>
<p>For changes to take effect, services must be recharged. Then, give permission for Tomcat binaries to run. And to access the web interface that can serve other servlets and applications, it is necessary to open port 8080 in the firewall.</p>
<pre>:~# systemctl daemon-reload<br />:~# chmod +x /opt/tomcat/bin/*.sh<br />:~# firewall-cmd --zone=public --add-port=8080/tcp --permanent <br />success<br />:~# firewall-cmd --reload<br />success</pre>
<figure id="attachment_14191" aria-describedby="caption-attachment-14191" style="width: 883px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-14191 size-full" src="https://www.osradar.com/wp-content/uploads/2019/10/5-1.png" alt="5.- Configuring Tomcat" width="883" height="233" srcset="https://www.osradar.com/wp-content/uploads/2019/10/5-1.png 883w, https://www.osradar.com/wp-content/uploads/2019/10/5-1-300x79.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/5-1-768x203.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/5-1-696x184.png 696w" sizes="(max-width: 883px) 100vw, 883px" /><figcaption id="caption-attachment-14191" class="wp-caption-text">5.- Configuring Tomcat</figcaption></figure>
<p>Finally, it starts the service and checks its status to confirm that everything is in order. If you want you can make Tomcat start with the system.</p>
<pre>:~# systemctl start tomcat<br />:~# systemctl enable tomcat<br />:~# systemctl status tomcat</pre>
<figure id="attachment_14194" aria-describedby="caption-attachment-14194" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-14194" src="https://www.osradar.com/wp-content/uploads/2019/10/6-1.png" alt="6.- Starting Apache Tomcat on CentOS 8" width="1366" height="317" srcset="https://www.osradar.com/wp-content/uploads/2019/10/6-1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/10/6-1-300x70.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/6-1-768x178.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/6-1-1024x238.png 1024w, https://www.osradar.com/wp-content/uploads/2019/10/6-1-696x162.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/6-1-1068x248.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-14194" class="wp-caption-text">6.- Starting Apache Tomcat on CentOS 8</figcaption></figure>
<p>Now, open your web browser and go to <code>http://your-server:8080</code>. You will see something like this.</p>
<figure id="attachment_14195" aria-describedby="caption-attachment-14195" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-14195" src="https://www.osradar.com/wp-content/uploads/2019/10/7-1.png" alt="7.- Apache tomcat on CentOS 8" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/10/7-1.png 1366w, https://www.osradar.com/wp-content/uploads/2019/10/7-1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/7-1-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/7-1-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/10/7-1-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/10/7-1-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/7-1-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/10/7-1-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-14195" class="wp-caption-text">7.- Apache tomcat on CentOS 8</figcaption></figure>
<p>And that is it.</p>
<h2>Conclusion</h2>
<p>In this post, you have learned how to install Apache Tomcat on CentOS 8. With some requirements but the program is powerful enough to serve JSP applications for the web. With pretty good performance and even better documentation. It remains to make the most of it.</p>
<p>Please share this post with your friends and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel.</a></p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-apache-tomcat-on-centos-8/">How to install Apache Tomcat on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-apache-tomcat-on-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Apache Tomcat on CentOS 7?</title>
		<link>https://www.osradar.com/install-apache-tomcat-centos-7/</link>
					<comments>https://www.osradar.com/install-apache-tomcat-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 12 Oct 2018 04:00:55 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache Tomcat]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JavaEE]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Servlets]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[web]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=6348</guid>

					<description><![CDATA[<p>To install Apache Tomcat on Linux requires certain steps that are not very complex. However, we&#8217;ve talked about it before recently. Today, I will show you how to install it, this time, on CentOS 7. In short, Apache Tomcat executes Java servlets and renders Web pages that include Java Server Page coding. It constitutes a [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-tomcat-centos-7/">How to install Apache Tomcat on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To install Apache Tomcat on Linux requires certain steps that are not very complex. However, <a href="https://www.osradar.com/how-to-install-tomcat-on-debian-9-stretch/" rel="noopener">we&#8217;ve talked</a> about it before recently. Today, I will show you how to install it, this time, on CentOS 7.</p>
<p>In short, <a href="http://tomcat.apache.org/" rel="noopener">Apache Tomcat</a> executes Java servlets and renders Web pages that include Java Server Page coding. It constitutes a base element for the development with Java. It is very popular and it is open source.</p>
<p>This time I will install using CentOS 7, which is a Red Hat-based Linux distribution for use on Servers.</p>
<h2>What you need</h2>
<p>The process is very simple and you should not take long to do it, but it is good that you know that there are some small requirements to successfully complete this tutorial.</p>
<ul>
<li>A server with CentOS 7 installed and allowing access via ssh.</li>
<li>A basic knowledge about the use of commands in the terminal.</li>
<li>A user who allows commands to be run as root. Or root access.</li>
</ul>
<p>I think this will be enough for you to do everything without problems.</p>
<p>Let&#8217;s get to work.</p>
<h2>1. Upgrade the system</h2>
<p>In order to have the latest security patches, it is necessary to update the system completely. Also with this, you will have a more secure server and in many cases faster. Run as root user:</p>
<pre class="">:~# yum update</pre>
<p><figure id="attachment_6349" aria-describedby="caption-attachment-6349" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6349" src="https://www.osradar.com/wp-content/uploads/2018/10/1-8.png" alt="1.- Upgrading CentOS" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/1-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/1-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/1-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/1-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/1-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/1-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/1-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6349" class="wp-caption-text">1.- Upgrading CentOS</figcaption></figure></p>
<p>That&#8217;s enough.</p>
<h2>2.- Install Java</h2>
<p>To install Apache Tomcat you first need to install Java because it is a dependency. To do this, type the following:</p>
<pre class="">:~# yum install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64</pre>
<p><figure id="attachment_6350" aria-describedby="caption-attachment-6350" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6350" src="https://www.osradar.com/wp-content/uploads/2018/10/2-8.png" alt="2.- Installing Java from the CLI" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/2-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/2-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/2-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/2-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/2-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/2-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/2-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6350" class="wp-caption-text">2.- Installing Java from the CLI</figcaption></figure></p>
<p>Next, check the installed Java version.</p>
<pre class="">:~# java -version</pre>
<p><figure id="attachment_6351" aria-describedby="caption-attachment-6351" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6351" src="https://www.osradar.com/wp-content/uploads/2018/10/3-9.png" alt="3.- Showing what java version is installed" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/3-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/3-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/3-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/3-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/3-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/3-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/3-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6351" class="wp-caption-text">3.- Showing what java version is installed</figcaption></figure></p>
<p>As you can see, Java was correctly installed. This was done because Apache Tomcat 9 requires at least Java 8.</p>
<h2>3. Install Apache Tomcat 9</h2>
<p>Go to the official Apache Tomcat site and download the latest stable version.</p>
<p><figure id="attachment_6352" aria-describedby="caption-attachment-6352" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6352" src="https://www.osradar.com/wp-content/uploads/2018/10/4-5.png" alt="4.- Apache Tomcat website" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2018/10/4-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/4-5-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/4-5-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/4-5-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/4-5-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/4-5-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/4-5-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6352" class="wp-caption-text">4.- Apache Tomcat website</figcaption></figure></p>
<p>Of course, you are working on a server, the best is to get the link directly and run:</p>
<pre class="">:~# cd /opt/
:~# wget http://ftp.wayne.edu/apache/tomcat/tomcat-9/v9.0.12/bin/apache-tomcat-9.0.12.zip</pre>
<p><figure id="attachment_6353" aria-describedby="caption-attachment-6353" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6353" src="https://www.osradar.com/wp-content/uploads/2018/10/5-6.png" alt="5.- Downloading Apache Tomcat" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/5-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/5-6-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/5-6-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/5-6-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/5-6-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/5-6-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/5-6-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6353" class="wp-caption-text">5.- Downloading Apache Tomcat</figcaption></figure></p>
<p>Now proceed to decompress it.</p>
<pre class="">:~# unzip apache-tomcat-9.0.12.zip</pre>
<p><figure id="attachment_6354" aria-describedby="caption-attachment-6354" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6354" src="https://www.osradar.com/wp-content/uploads/2018/10/6-5.png" alt="6.- Unzipping the file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/6-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/6-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/6-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/6-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/6-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/6-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/6-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6354" class="wp-caption-text">6.- Unzipping the file</figcaption></figure></p>
<p>Then, rename the decompressed file to a simpler one.</p>
<pre class="">:~# mv apache-tomcat-9.0.12 tomcat</pre>
<p>Next, you have to set the CATALINA_HOME environment variable.</p>
<pre class="">:~# echo "export CATALINA_HOME='/opt/tomcat/'" &gt;&gt; ~/.bashrc
:~# source ~/.bashrc</pre>
<p><figure id="attachment_6356" aria-describedby="caption-attachment-6356" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6356" src="https://www.osradar.com/wp-content/uploads/2018/10/7-5.png" alt="Setting the CATALINA_HOME variable" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/7-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/7-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/7-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/7-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/7-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/7-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/7-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6356" class="wp-caption-text">Setting the CATALINA_HOME variable</figcaption></figure></p>
<p>If you are going to install Apache Tomcat on a public server, then it is preferable to create a new system user to run it.</p>
<pre class="">:~# useradd -r tomcat --shell /bin/false</pre>
<p>Then, it changes the ownership of the folder to that of the new user. I named it to tomcat.</p>
<pre class="">:~# chown -R tomcat:tomcat /opt/tomcat/</pre>
<p><figure id="attachment_6357" aria-describedby="caption-attachment-6357" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6357" src="https://www.osradar.com/wp-content/uploads/2018/10/8-5.png" alt="8.- Changing the owner of tomcat folder" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/8-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/8-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/8-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/8-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/8-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/8-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/8-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6357" class="wp-caption-text">8.- Changing the owner of the tomcat folder</figcaption></figure></p>
<h2>4. Making Apache Tomcat as a service</h2>
<p>To properly handle Apache Tomcat, it is a good idea to create a file that is made by a system service. This way you can start it, restart it or stop it in a simpler way. Run:</p>
<pre class="">:~# nano /etc/systemd/system/tomcat.service</pre>
<p>And put the following:</p>
<pre class="">[Unit]
Description=Apache Tomcat 9
After=syslog.target network.target

[Service]
User=tomcat
Group=tomcat
Type=forking
Environment=CATALINA_PID=/opt/tomcat/tomcat.pid
Environment=CATALINA_HOME=/opt/tomcat
Environment=CATALINA_BASE=/opt/tomcat
ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/opt/tomcat/bin/shutdown.sh
Restart=on-failure

[Install]
WantedBy=multi-user.target
</pre>
<p><figure id="attachment_6358" aria-describedby="caption-attachment-6358" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6358" src="https://www.osradar.com/wp-content/uploads/2018/10/9-5.png" alt="9.- Making apache tomcat as a service" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/9-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/9-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/9-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/9-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/9-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/9-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/9-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6358" class="wp-caption-text">9.- Making apache tomcat as a service</figcaption></figure></p>
<p>Save and close the file. Now run:</p>
<pre class="">:~# systemctl daemon-reload</pre>
<h2>5. Create an Apache Tomcat user account</h2>
<p>To access Tomcat Manager, you have to create a new user. The process is simple, you have to edit the file <code>/opt/tomcat/conf/tomcat-users.xml.</code></p>
<pre class="">:~# nano /opt/tomcat/conf/tomcat-users.xml</pre>
<p>And add the following:</p>
<pre class="">&lt;role rolename="admin-gui"/&gt;
&lt;user username="admin" password="PASSWORD" roles="manager-gui,admin-gui"/&gt;
&lt;/tomcat-users&gt;</pre>
<p><figure id="attachment_6359" aria-describedby="caption-attachment-6359" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6359" src="https://www.osradar.com/wp-content/uploads/2018/10/10-4.png" alt="10.- Creating a new user for Apache Tomcat" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/10-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/10-4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/10-4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/10-4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/10-4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/10-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/10-4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6359" class="wp-caption-text">10.- Creating a new user for Apache Tomcat</figcaption></figure></p>
<p>Remember to change &#8220;PASSWORD&#8221; for your real password.</p>
<h2>6. Starting the service and accessing through a web browser</h2>
<p>Now you can start the Apache Tomcat service. Then check its status and finally access it from the web browser.</p>
<p>Now, you can start Apache Tomcat either using systemctl or from its own script.</p>
<pre class="">:~# sh /opt/tomcat/bin/startup.sh</pre>
<p><figure id="attachment_6360" aria-describedby="caption-attachment-6360" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6360" src="https://www.osradar.com/wp-content/uploads/2018/10/11-4.png" alt="11.- Starting Apache Tomcat" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/11-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/11-4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/11-4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/11-4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/11-4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/11-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/11-4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6360" class="wp-caption-text">11.- Starting Apache Tomcat</figcaption></figure></p>
<p>Now go to <code>http://IP_SERVER/manage/html</code> and log in with your username and your password.</p>
<p><figure id="attachment_6361" aria-describedby="caption-attachment-6361" style="width: 1356px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6361" src="https://www.osradar.com/wp-content/uploads/2018/10/12-3.png" alt="Apache Tomcat manager page" width="1356" height="634" srcset="https://www.osradar.com/wp-content/uploads/2018/10/12-3.png 1356w, https://www.osradar.com/wp-content/uploads/2018/10/12-3-300x140.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/12-3-768x359.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/12-3-1024x479.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/12-3-696x325.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/12-3-1068x499.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/12-3-898x420.png 898w" sizes="(max-width: 1356px) 100vw, 1356px" /><figcaption id="caption-attachment-6361" class="wp-caption-text">Apache Tomcat manager page</figcaption></figure></p>
<h2>Conclusion</h2>
<p>Apache Tomcat is a vital tool for Java development and its installation is really simple on Linux and CentOS 7.</p>
<p>Let us know about you, Java programs? what is your experience with Tomcat? Did you find the tutorial easy?</p>
<p>Please spread this article through your social networks.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-tomcat-centos-7/">How to install Apache Tomcat on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-apache-tomcat-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How  to install Apache GUI on Debian 9?</title>
		<link>https://www.osradar.com/how-to-install-apache-gui-on-debian-9/</link>
					<comments>https://www.osradar.com/how-to-install-apache-gui-on-debian-9/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 01 Oct 2018 07:09:47 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=6108</guid>

					<description><![CDATA[<p>Generally, a SysAdmin uses the command line interface to configure server applications. However, there are web interfaces that facilitate the process of configuring these tools. In a server in production state, Apache plays an important role because it is the web server, which is why it must be correctly configured. With this in mind, it [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-apache-gui-on-debian-9/">How  to install Apache GUI on Debian 9?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Generally, a <a href="https://insights.dice.com/2018/09/05/system-administrator-interview-questions-take-broad-view/" rel="noopener">SysAdmin</a> uses the command line interface to configure server applications. However, there are web interfaces that facilitate the process of configuring these tools. In a server in production state, Apache plays an important role because it is the web server, which is why it must be correctly configured. With this in mind, it is helpful to install <a href="http://www.apachegui.net/" rel="noopener">Apache GUI</a> to make quick and easy adjustments to it.</p>
<p>Apache GUI is a free and open source web tool that is designed to help Administrate the Apache Web Server. Some of its <a href="http://www.apachegui.net/post/1/overview" rel="noopener">functions are</a>:</p>
<ul>
<li>Edit, Search and Validate your Configurations.</li>
<li>Manage <a href="https://www.osradar.com/how-to-configure-an-apache-virtual-host-on-debian-9/" rel="noopener">VirtualHosts</a>.</li>
<li>Edit web documents right from your web browser.</li>
<li>Tail, download and search your logs.</li>
<li>Install and remove Apache modules.</li>
<li>View runtime statistics from your web server.</li>
<li>Record, search and graph detailed transactions.</li>
</ul>
<p>As you can see, this is a very useful tool especially if you are starting in the sysadmin world or if you prefer the convenience of a web interface over the terminal.</p>
<h2>What you need to install it</h2>
<p>To install Apache GUI, in the first place, you need a user who can execute commands as a superuser, for example, a user who can execute <a href="https://www.sudo.ws/" rel="noopener"><strong>sudo</strong></a>. On the other hand, it is useful that you have some knowledge about terminal handling. And finally, to have a PC with <a href="https://www.debian.org/distrib/" rel="noopener">Debian 9</a>. Obvious, isn&#8217;t it?</p>
<h2>1. Upgrade the system</h2>
<p>In order to guarantee the correct functioning of the server, it is convenient to have the latest security patches installed. With this, you not only get stability but also performance and security improvements.</p>
<p>Open a terminal and run:</p>
<pre class="">:~$ sudo -i</pre>
<p>After entering the password, you will be able to update the computer. Run:</p>
<pre class="">:~# apt update &amp;&amp; apt upgrade</pre>
<p><figure id="attachment_6112" aria-describedby="caption-attachment-6112" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-6112 size-full" src="https://www.osradar.com/wp-content/uploads/2018/09/2-19.png" alt="1.- Upgrading the system" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/09/2-19.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/2-19-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/2-19-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/2-19-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/2-19-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/2-19-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/2-19-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6112" class="wp-caption-text">1.- Upgrading the system</figcaption></figure></p>
<p>With this, you will have your Debian 9 updated.</p>
<h2>2. Installing Java</h2>
<p>Apache GUI is built with Java, so you must install Java on the server to run it. Run:</p>
<pre class="">:~# apt install openjdk-8-jre</pre>
<p><figure id="attachment_6113" aria-describedby="caption-attachment-6113" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-6113 size-full" src="https://www.osradar.com/wp-content/uploads/2018/09/3-19.png" alt="3.- Installing JAVA" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/09/3-19.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/3-19-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/3-19-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/3-19-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/3-19-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/3-19-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/3-19-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6113" class="wp-caption-text">2.- Installing JAVA</figcaption></figure></p>
<p>Then to check that java has indeed been installed, run:</p>
<pre class="">:~# java -version</pre>
<p><figure id="attachment_6114" aria-describedby="caption-attachment-6114" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6114" src="https://www.osradar.com/wp-content/uploads/2018/09/3-20.png" alt="3.- Checking the java version" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/09/3-20.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/3-20-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/3-20-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/3-20-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/3-20-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/3-20-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/3-20-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6114" class="wp-caption-text">3.- Checking the java version</figcaption></figure></p>
<p>With this, Java has been installed.</p>
<h2>3. Installing Apache web server and PHP</h2>
<p>For a good running, Apache GUI requires that you install PHP. And obviously, you have also install apache web server.</p>
<p>First, install apache. Run:</p>
<pre class="">:~# apt install apache2</pre>
<p><figure id="attachment_6115" aria-describedby="caption-attachment-6115" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6115" src="https://www.osradar.com/wp-content/uploads/2018/09/4-24.png" alt="4.- Installing apache web server" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/09/4-24.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/4-24-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/4-24-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/4-24-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/4-24-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/4-24-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/4-24-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6115" class="wp-caption-text">4.- Installing apache web server</figcaption></figure></p>
<p>It then enables the service for apache2 to run at system startup.</p>
<pre class="">:~# systemctl enable apache2
:~# systemctl start apache2</pre>
<p><figure id="attachment_6116" aria-describedby="caption-attachment-6116" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6116" src="https://www.osradar.com/wp-content/uploads/2018/09/5-20.png" alt="5.- Enabling apache2 service" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/09/5-20.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/5-20-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/5-20-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/5-20-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/5-20-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/5-20-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/5-20-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6116" class="wp-caption-text">5.- Enabling apache2 service</figcaption></figure></p>
<p>Finally, verify that the installation has occurred satisfactorily. Go to a web browser and access to <code>http://IP_SERVER</code>. You should see something like this.</p>
<p><figure id="attachment_6117" aria-describedby="caption-attachment-6117" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6117" src="https://www.osradar.com/wp-content/uploads/2018/09/6-18.png" alt="6.- Apache2 Debian default page" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2018/09/6-18.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/6-18-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/6-18-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/6-18-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/6-18-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/6-18-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/6-18-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6117" class="wp-caption-text">6.- Apache2 Debian default page</figcaption></figure></p>
<p>With this apache2 web server is correctly installed.</p>
<p>Now continue with PHP. Run:</p>
<pre class="">:~# apt install php7.0 php7.0-imap php7.0-xml libapache2-mod-php7.0 php-pear</pre>
<p><figure id="attachment_6118" aria-describedby="caption-attachment-6118" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6118" src="https://www.osradar.com/wp-content/uploads/2018/09/7-15.png" alt="7.- Installing PHP" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/09/7-15.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/7-15-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/7-15-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/7-15-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/7-15-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/7-15-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/7-15-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6118" class="wp-caption-text">7.- Installing PHP</figcaption></figure></p>
<p>To prove that the PHP installation has been successful. Create a file called <code>test.php</code> in the <code>/var/www/html/</code> directory and place the following:</p>
<pre class="">:~# nano /var/www/html/test.php</pre>
<pre class="">&lt;?php
phpinfo();
?&gt;</pre>
<p><figure id="attachment_6119" aria-describedby="caption-attachment-6119" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6119" src="https://www.osradar.com/wp-content/uploads/2018/09/8-14.png" alt="8.- A sample file to test PHP installation" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/09/8-14.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/8-14-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/8-14-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/8-14-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/8-14-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/8-14-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/8-14-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6119" class="wp-caption-text">8.- A sample file to test PHP installation</figcaption></figure></p>
<p>Go to your web browser and open it <code>http://IP_SERVER/test.php</code>.</p>
<p><figure id="attachment_6120" aria-describedby="caption-attachment-6120" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6120" src="https://www.osradar.com/wp-content/uploads/2018/09/9-15.png" alt="9.- phpinfo" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2018/09/9-15.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/9-15-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/9-15-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/9-15-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/9-15-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/9-15-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/9-15-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6120" class="wp-caption-text">9.- phpinfo</figcaption></figure></p>
<p>PHP and Apache are correctly installed and working.</p>
<h2>4. Install Apache GUI</h2>
<p>It&#8217;s time for the green, now it&#8217;s time to install Apache GUI. First, you have to create a folder, access it and download the program.</p>
<pre class="">:~# mkdir/usr/local/apachegui/
:~# cd /usr/local/apachegui/
:~# wget https://sourceforge.net/projects/apachegui/files/1.12-Linux-Solaris-Mac/ApacheGUI-1.12.0.tar.gz</pre>
<p><figure id="attachment_6121" aria-describedby="caption-attachment-6121" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6121" src="https://www.osradar.com/wp-content/uploads/2018/09/10-13.png" alt="10.- Downloading apache GUI" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/09/10-13.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/10-13-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/10-13-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/10-13-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/10-13-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/10-13-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/10-13-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6121" class="wp-caption-text">10.- Downloading and then install Apache GUI</figcaption></figure></p>
<p>Now unzip the downloaded file.</p>
<pre class="">:~# tar -xvzf ApacheGUI-1.12.0.tar.gz</pre>
<p>Then, change the directory to the Apache GUI directory and launch the installation script.</p>
<pre class="">:~# cd ApacheGUI/bin/
:~#  ./run.sh</pre>
<p><figure id="attachment_6122" aria-describedby="caption-attachment-6122" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6122" src="https://www.osradar.com/wp-content/uploads/2018/09/11-12.png" alt="11.- Starting ApacheGUI" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/09/11-12.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/11-12-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/11-12-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/11-12-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/11-12-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/11-12-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/11-12-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6122" class="wp-caption-text">11.- Starting Apache GUI</figcaption></figure></p>
<p>With this, it&#8217;s already installed. Now go to your browser and access with the IP address of the server and port 9999.</p>
<p><code>http.//IP_SERVER:9999/ApacheGUI</code></p>
<p><figure id="attachment_6123" aria-describedby="caption-attachment-6123" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6123" src="https://www.osradar.com/wp-content/uploads/2018/09/12-10.png" alt="12.- Launching Apache GUI" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2018/09/12-10.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/12-10-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/12-10-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/12-10-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/12-10-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/12-10-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/12-10-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6123" class="wp-caption-text">12.- Launching Apache GUI</figcaption></figure></p>
<p>As you can see, you have two options. Choose the first post you installed apache2 from the official Debian repositories.</p>
<p>Then you&#8217;ll see this screen. On that screen, you must place the credentials and folders where apache works. Don&#8217;t worry about the first field, there is a drop-down list and choose &#8220;Debian and Ubuntu&#8221; and the fields will be filled in. Then in username and password define the credentials.</p>
<p><figure id="attachment_6124" aria-describedby="caption-attachment-6124" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6124" src="https://www.osradar.com/wp-content/uploads/2018/09/13-8.png" alt="13.- Providing the credentials for apache" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2018/09/13-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/13-8-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/13-8-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/13-8-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/13-8-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/13-8-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/13-8-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6124" class="wp-caption-text">13.- Providing the credentials for apache</figcaption></figure></p>
<p>Finally, you will see this screen.</p>
<p><figure id="attachment_6125" aria-describedby="caption-attachment-6125" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6125" src="https://www.osradar.com/wp-content/uploads/2018/09/14-5.png" alt="14.- Apache GUI installed" width="1366" height="665" srcset="https://www.osradar.com/wp-content/uploads/2018/09/14-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/14-5-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/14-5-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/14-5-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/14-5-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/14-5-1068x520.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/14-5-863x420.png 863w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6125" class="wp-caption-text">14.- Apache GUI installed</figcaption></figure></p>
<p>Apache GUI is now correctly installed and configured in Debian 9.</p>
<p>If you want to close the application, write:</p>
<pre class="">:~# ./stop.sh</pre>
<p><figure id="attachment_6126" aria-describedby="caption-attachment-6126" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6126" src="https://www.osradar.com/wp-content/uploads/2018/09/15-4.png" alt="15.- Stopping apache GUI" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/09/15-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/09/15-4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/09/15-4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/09/15-4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/09/15-4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/09/15-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/09/15-4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6126" class="wp-caption-text">15.- Stopping apache GUI</figcaption></figure></p>
<p>This type of application is useful for users who have a graphical alternative to configure such an important program as Apache.</p>
<p>Tell us, how was the installation? Have you used it? What is your experience with Apache?</p>
<p>Please spread this article on your social networks.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-apache-gui-on-debian-9/">How  to install Apache GUI on Debian 9?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-apache-gui-on-debian-9/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
