<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.lib.sun.ac.za/index.php?action=history&amp;feed=atom&amp;title=SUNScholar%2FPrepare_Ubuntu%2FS05%2FUbuntu-16.04</id>
	<title>SUNScholar/Prepare Ubuntu/S05/Ubuntu-16.04 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.lib.sun.ac.za/index.php?action=history&amp;feed=atom&amp;title=SUNScholar%2FPrepare_Ubuntu%2FS05%2FUbuntu-16.04"/>
	<link rel="alternate" type="text/html" href="http://wiki.lib.sun.ac.za/index.php?title=SUNScholar/Prepare_Ubuntu/S05/Ubuntu-16.04&amp;action=history"/>
	<updated>2026-05-14T21:13:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.2</generator>
	<entry>
		<id>http://wiki.lib.sun.ac.za/index.php?title=SUNScholar/Prepare_Ubuntu/S05/Ubuntu-16.04&amp;diff=45660&amp;oldid=prev</id>
		<title>Ivdl: /* Step 5.5 Setup Tomcat server permissions */</title>
		<link rel="alternate" type="text/html" href="http://wiki.lib.sun.ac.za/index.php?title=SUNScholar/Prepare_Ubuntu/S05/Ubuntu-16.04&amp;diff=45660&amp;oldid=prev"/>
		<updated>2019-10-30T12:12:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Step 5.5 Setup Tomcat server permissions&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 12:12, 30 October 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l123&quot; &gt;Line 123:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 123:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo nano /etc/default/tomcat8&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo nano /etc/default/tomcat8&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Change &amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;TOMCAT7_SECURITY&lt;/del&gt;&amp;quot; to yes.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Change &amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;TOMCAT8_SECURITY&lt;/ins&gt;&amp;quot; to yes.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Use the Java security manager? (yes/no, default: no)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Use the Java security manager? (yes/no, default: no)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ivdl</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lib.sun.ac.za/index.php?title=SUNScholar/Prepare_Ubuntu/S05/Ubuntu-16.04&amp;diff=45659&amp;oldid=prev</id>
		<title>Ivdl: /* Step 5.2.1: Setup &quot;authbind&quot; for Tomcat */</title>
		<link rel="alternate" type="text/html" href="http://wiki.lib.sun.ac.za/index.php?title=SUNScholar/Prepare_Ubuntu/S05/Ubuntu-16.04&amp;diff=45659&amp;oldid=prev"/>
		<updated>2019-10-30T12:12:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Step 5.2.1: Setup &amp;quot;authbind&amp;quot; for Tomcat&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 12:12, 30 October 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot; &gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Step 5.2: Allow Tomcat to listen on ports &amp;quot;80&amp;quot; and &amp;quot;443&amp;quot;==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Step 5.2: Allow Tomcat to listen on ports &amp;quot;80&amp;quot; and &amp;quot;443&amp;quot;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Step 5.2.1: Setup &amp;quot;authbind&amp;quot; for Tomcat===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Step 5.2.1: Setup &amp;quot;authbind&amp;quot; for Tomcat===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To enable Tomcat to listen on a privileged port below 100, we need to enable &amp;quot;authbind&amp;quot;. Edit the '''/etc/default/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;tomcat7&lt;/del&gt;''' file as follows:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To enable Tomcat to listen on a privileged port below 100, we need to enable &amp;quot;authbind&amp;quot;. Edit the '''/etc/default/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;tomcat8&lt;/ins&gt;''' file as follows:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo nano /etc/default/tomcat8&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  sudo nano /etc/default/tomcat8&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Remove the hash sign from in front of the authbind parameter and change authbind to yes as follows&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Remove the hash sign from in front of the authbind parameter and change authbind to yes as follows&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ivdl</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lib.sun.ac.za/index.php?title=SUNScholar/Prepare_Ubuntu/S05/Ubuntu-16.04&amp;diff=45658&amp;oldid=prev</id>
		<title>Ivdl: /* Step 5.5 Setup Tomcat server permissions */</title>
		<link rel="alternate" type="text/html" href="http://wiki.lib.sun.ac.za/index.php?title=SUNScholar/Prepare_Ubuntu/S05/Ubuntu-16.04&amp;diff=45658&amp;oldid=prev"/>
		<updated>2019-10-30T12:12:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Step 5.5 Setup Tomcat server permissions&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 12:12, 30 October 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l126&quot; &gt;Line 126:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 126:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Use the Java security manager? (yes/no, default: no)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Use the Java security manager? (yes/no, default: no)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;TOMCAT7_SECURITY&lt;/del&gt;=yes&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;TOMCAT8_SECURITY&lt;/ins&gt;=yes&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ivdl</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lib.sun.ac.za/index.php?title=SUNScholar/Prepare_Ubuntu/S05/Ubuntu-16.04&amp;diff=45657&amp;oldid=prev</id>
		<title>Ivdl: Created page with &quot;&lt;center&gt;  '''BACK TO STEP 5''' &lt;/center&gt;   ==Step 5.1: Install Tomcat== Type the following:   sudo apt-get install tomcat8  ==Step 5.2: Allow...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.lib.sun.ac.za/index.php?title=SUNScholar/Prepare_Ubuntu/S05/Ubuntu-16.04&amp;diff=45657&amp;oldid=prev"/>
		<updated>2019-10-30T12:12:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;center&amp;gt;  &amp;#039;&amp;#039;&amp;#039;&lt;a href=&quot;/index.php/SUNScholar/Prepare_Ubuntu/S05&quot; title=&quot;SUNScholar/Prepare Ubuntu/S05&quot;&gt;BACK TO STEP 5&lt;/a&gt;&amp;#039;&amp;#039;&amp;#039; &amp;lt;/center&amp;gt;   ==Step 5.1: Install Tomcat== Type the following:   sudo apt-get install tomcat8  ==Step 5.2: Allow...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;center&amp;gt;&lt;br /&gt;
 '''[[SUNScholar/Prepare_Ubuntu/S05|BACK TO STEP 5]]'''&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Step 5.1: Install Tomcat==&lt;br /&gt;
Type the following:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install tomcat8&lt;br /&gt;
&lt;br /&gt;
==Step 5.2: Allow Tomcat to listen on ports &amp;quot;80&amp;quot; and &amp;quot;443&amp;quot;==&lt;br /&gt;
===Step 5.2.1: Setup &amp;quot;authbind&amp;quot; for Tomcat===&lt;br /&gt;
To enable Tomcat to listen on a privileged port below 100, we need to enable &amp;quot;authbind&amp;quot;. Edit the '''/etc/default/tomcat7''' file as follows:&lt;br /&gt;
 sudo nano /etc/default/tomcat8&lt;br /&gt;
Remove the hash sign from in front of the authbind parameter and change authbind to yes as follows&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
# If you run Tomcat on port numbers that are all higher than 1023, then you&lt;br /&gt;
# do not need authbind.  It is used for binding Tomcat to lower port numbers.&lt;br /&gt;
# NOTE: authbind works only with IPv4.  Do not enable it when using IPv6.&lt;br /&gt;
# (yes/no, default: no)&lt;br /&gt;
AUTHBIND=yes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit the file.&lt;br /&gt;
&lt;br /&gt;
Now we need to tell &amp;quot;authbind&amp;quot; that Tomcat is allowed to use lower port numbers. Type the following commands:&lt;br /&gt;
 sudo touch /etc/authbind/byport/80&lt;br /&gt;
&lt;br /&gt;
 sudo touch /etc/authbind/byport/443&lt;br /&gt;
&lt;br /&gt;
 sudo chmod 0755 /etc/authbind/byport/80&lt;br /&gt;
&lt;br /&gt;
 sudo chmod 0755 /etc/authbind/byport/443&lt;br /&gt;
&lt;br /&gt;
 sudo chown tomcat8.tomcat8 /etc/authbind/byport/80&lt;br /&gt;
&lt;br /&gt;
 sudo chown tomcat8.tomcat8 /etc/authbind/byport/443&lt;br /&gt;
&lt;br /&gt;
 cd /etc/authbind/byport&lt;br /&gt;
&lt;br /&gt;
 ls -l&lt;br /&gt;
Now Tomcat has permission to use ports 80 and 443. See below for an example listing of the files in the '''/etc/authbind/byport''' folder.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dspace@dspace:/etc/authbind/byport# ls -l&lt;br /&gt;
total 0&lt;br /&gt;
-rwxr-xr-x 1 tomcat8 tomcat8 0 2011-06-10 18:33 443&lt;br /&gt;
-rwxr-xr-x 1 tomcat8 tomcat8 0 2011-06-10 18:33 80&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Step 5.2.2: Setup Tomcat to listen on insecure port 80===&lt;br /&gt;
Now we tell the Tomcat server to listen on the &amp;quot;authbind&amp;quot; ports. Edit the following file.&lt;br /&gt;
 sudo nano /etc/tomcat8/server.xml&lt;br /&gt;
Find the connector for port 8080 and change it to port 80.&lt;br /&gt;
&lt;br /&gt;
See example below.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;Connector port=&amp;quot;80&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; &lt;br /&gt;
               enableLookups=&amp;quot;false&amp;quot;&lt;br /&gt;
               maxConnections=&amp;quot;-1&amp;quot;&lt;br /&gt;
               maxThreads=&amp;quot;450&amp;quot;&lt;br /&gt;
               maxHttpHeaderSize=&amp;quot;16384&amp;quot;&lt;br /&gt;
               connectionTimeout=&amp;quot;20000&amp;quot; &lt;br /&gt;
               URIEncoding=&amp;quot;UTF-8&amp;quot;&lt;br /&gt;
               redirectPort=&amp;quot;443&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;'''If enabled, comment out the AJP 1.3 connector. It is not needed.'''&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit the file.&lt;br /&gt;
&lt;br /&gt;
===Step 5.2.3: Setup Tomcat to listen on secure port 443===&lt;br /&gt;
Please go to: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Secure_Internet_Connections later, after installation to do secure port 443 setup.&lt;br /&gt;
&lt;br /&gt;
For now and testing it is ok, just to use port 80 only for Tomcat connections.&lt;br /&gt;
&lt;br /&gt;
==Step 5.3: Setup Tomcat admin users==&lt;br /&gt;
Type as follows:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/tomcat8/tomcat-users.xml&lt;br /&gt;
&lt;br /&gt;
Delete all the contents of the file and add the following admin and manager roles with a password. ''Replace XXXX with your password!''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;br /&gt;
&amp;lt;tomcat-users&amp;gt;&lt;br /&gt;
  &amp;lt;role rolename=&amp;quot;manager-gui&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;role rolename=&amp;quot;manager-jmx&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;user username=&amp;quot;dspace&amp;quot; password=&amp;quot;XXXX&amp;quot; roles=&amp;quot;manager-gui,manager-jmx&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/tomcat-users&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit the file.&lt;br /&gt;
&lt;br /&gt;
==Step 5.4 Java  environment settings for Tomcat webapp server==&lt;br /&gt;
To setup the environment variables for Tomcat java web applications, type the following:&lt;br /&gt;
 sudo nano /etc/default/tomcat8&lt;br /&gt;
&lt;br /&gt;
''After determining how much RAM is installed on your server, it is best practice to use about 50% of the RAM for Java.''&lt;br /&gt;
&lt;br /&gt;
Check the following for comparison:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# You may pass JVM startup parameters to Java here. If unset, the default&lt;br /&gt;
# options (-Djava.awt.headless=true -Xmx128m) will be used.&lt;br /&gt;
#JAVA_OPTS=&amp;quot;-Djava.awt.headless=true -Xmx128m&amp;quot;&lt;br /&gt;
JAVA_OPTS=&amp;quot;-Djava.awt.headless=true -Xmx2048m -Xms1024m -XX:MaxPermSize=1024m&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See: http://stackoverflow.com/questions/5241743/what-is-the-use-of-java-opts-environment-variable&lt;br /&gt;
&lt;br /&gt;
Save and exit the file.&lt;br /&gt;
&lt;br /&gt;
===Java settings used on [http://scholar.sun.ac.za SUNScholar] currently===&lt;br /&gt;
Your settings will depend on how much RAM you have available to assign to the Tomcat server. See graph below as well.&lt;br /&gt;
 JAVA_OPTS=&amp;quot;-Djava.awt.headless=true -Xmx65536m -XX:+UseConcMarkSweepGC&amp;quot;&lt;br /&gt;
----&lt;br /&gt;
Graph of RAM memory usage on SUNScholar.&lt;br /&gt;
&lt;br /&gt;
[[File:Memory-year.png]]&lt;br /&gt;
&lt;br /&gt;
==Step 5.5 Setup Tomcat server permissions==&lt;br /&gt;
Please see: http://stackoverflow.com/questions/2645298/how-to-sanely-configure-security-policy-in-tomcat-6 and https://www.mulesoft.com/tcat/tomcat-security&lt;br /&gt;
&lt;br /&gt;
Type the following;&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/default/tomcat8&lt;br /&gt;
Change &amp;quot;TOMCAT7_SECURITY&amp;quot; to yes.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Use the Java security manager? (yes/no, default: no)&lt;br /&gt;
TOMCAT7_SECURITY=yes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit the file.&lt;br /&gt;
----&lt;br /&gt;
Create DSpace security policy&lt;br /&gt;
 sudo nano /etc/tomcat8/policy.d/05dspace.policy&lt;br /&gt;
Copy and paste the following;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grant codeBase &amp;quot;file:/home/dspace/-&amp;quot; {&lt;br /&gt;
  permission java.security.AllPermission;&lt;br /&gt;
};&lt;br /&gt;
grant codeBase &amp;quot;file:/tmp/-&amp;quot; {&lt;br /&gt;
  permission java.security.AllPermission;&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit the file.&lt;br /&gt;
----&lt;br /&gt;
Update file permissions for the policy&lt;br /&gt;
 sudo chown root.tomcat8 /etc/tomcat8/policy.d/05dspace.policy&lt;br /&gt;
&lt;br /&gt;
==Step 5.6: Setup user permissions==&lt;br /&gt;
 cd&lt;br /&gt;
&lt;br /&gt;
 sudo adduser tomcat8 dspace&lt;br /&gt;
&lt;br /&gt;
 sudo adduser dspace tomcat8&lt;br /&gt;
&lt;br /&gt;
==Step 5.7: Restart the Tomcat server==&lt;br /&gt;
Now restart the tomcat server as follows:&lt;br /&gt;
&lt;br /&gt;
 sudo service tomcat8 restart&lt;br /&gt;
&lt;br /&gt;
==Step 5.8: Post Tomcat installation checks==&lt;br /&gt;
Now let's look if all went well:&lt;br /&gt;
&lt;br /&gt;
 sudo netstat -tapn | grep java&lt;br /&gt;
&lt;br /&gt;
Tomcat should be listening on port 80 now:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dspace@dspace:~# sudo netstat -tapn | grep java&lt;br /&gt;
tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN      11093/java      &lt;br /&gt;
tcp6       0      0 :::80                   :::*                    LISTEN      11093/java      &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thats it, now you have a working Java webapp server.&lt;br /&gt;
&lt;br /&gt;
==Step 5.9: Troubleshooting==&lt;br /&gt;
*Check optimisations done for Tomcat in the link below&lt;br /&gt;
 http://wiki.lib.sun.ac.za/index.php/SUNScholar/Optimisations/Tomcat&lt;br /&gt;
*;Please remember only '''ONE''' server at time may listen on any TCP/UDP port on your server.&lt;br /&gt;
*A reboot of the server may be needed to get Tomcat working on ports 80 and 443 correctly.&lt;br /&gt;
*Later on during the actual DSpace installation, you will have to select a &amp;quot;root&amp;quot; webapp so that you have a clean URL. See link below.&lt;br /&gt;
 http://wiki.lib.sun.ac.za/index.php/SUNScholar/Install_DSpace/S08&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*https://help.ubuntu.com/lts/serverguide/tomcat.html&lt;br /&gt;
*http://manage.jujucharms.com/charms/trusty/tomcat&lt;br /&gt;
*https://dzone.com/refcardz/getting-started-with-apache-tomcat&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Ivdl</name></author>
		
	</entry>
</feed>