<?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>David Dietrich&#039;s Business Technology Blog &#187; Apache Tomcat</title>
	<atom:link href="http://www.daviddietrich.com/topics/linux/apache-tomcat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daviddietrich.com</link>
	<description>Business Technology Tips</description>
	<lastBuildDate>Fri, 20 Aug 2010 23:36:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Jasper Server Permission Denied error</title>
		<link>http://www.daviddietrich.com/2010/01/14/jasper-server-permission-denied-error-2/</link>
		<comments>http://www.daviddietrich.com/2010/01/14/jasper-server-permission-denied-error-2/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 04:50:52 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Apache Tomcat]]></category>
		<category><![CDATA[Jasper Reports]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Jasper]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=218</guid>
		<description><![CDATA[Occasionally, Jasper Server has an error relating to being unable to write files. The errors show up in the Apache web server log, catalina.out. You have probably started the service as the user root on accident. This will cause ownership to change to root on some log files. Then when you log back on as user jasper [...]]]></description>
			<content:encoded><![CDATA[<p>Occasionally, Jasper Server has an error relating to being unable to write files. The errors show up in the Apache web server log, catalina.out.</p>
<p>You have probably started the service as the user root on accident. This will cause ownership to change to root on some log files. Then when you log back on as user jasper and restart your server, the Apache logs are filling with messages about not being able to write files. Jasper is just not working properly. Run the following command to restore the proper ownership to all files in the Jasper directory. You must run the following command as root:</p>
<p><strong>&gt;find /home/jasper/jasper-server-3.7 -user root -exec chown jasper.jasper {} \;</strong></p>
<p>This will find all the files that root changed ownership and change the ownership back to the proper jasper user.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2010/01/14/jasper-server-permission-denied-error-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling Apache support for pretty permalinks in WordPress</title>
		<link>http://www.daviddietrich.com/2009/05/14/enabling-apache-support-for-pretty-permalinks-in-wordpress/</link>
		<comments>http://www.daviddietrich.com/2009/05/14/enabling-apache-support-for-pretty-permalinks-in-wordpress/#comments</comments>
		<pubDate>Fri, 15 May 2009 00:41:04 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Apache Tomcat]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=108</guid>
		<description><![CDATA[In WordPress, there is a feature called PermaLinks. These create URL’s that are better searched by Google. So instead of getting a URL like http://example.com?id=454, you get something like http://example.com/enabling-apache-support-for-pretty-permalinks-in-wordpress. Now the search engines will see a URL that they can parse for information, rather than an arbitrary number. Enabling Apache support for what is [...]]]></description>
			<content:encoded><![CDATA[<p>In WordPress, there is a feature called PermaLinks. These create URL’s that are better searched by Google. So instead of getting a URL like http://example.com?id=454, you get something like http://example.com/enabling-apache-support-for-pretty-permalinks-in-wordpress. Now the search engines will see a URL that they can parse for information, rather than an arbitrary number.</p>
<p>Enabling Apache support for what is known as address rewriting is accomplished by modifying your httpd.conf file. Open the file and look for the line that says:</p>
<p><strong>&lt;Directory “/var/www/html”&gt;<br />
</strong></p>
<p>In this section there will be a line:</p>
<p><strong>AllowOverride None</strong></p>
<p>Change this line to:</p>
<p><strong>AllowOverride All<br />
</strong></p>
<p>Save the httpd.conf file. Then restart Apache.</p>
<p>Now when you click, Enable Permalinks in WordPress, you will have a search engine friendly blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/05/14/enabling-apache-support-for-pretty-permalinks-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting the Session Timeout in Tomcat</title>
		<link>http://www.daviddietrich.com/2009/03/18/setting-the-session-timeout-in-tomcat/</link>
		<comments>http://www.daviddietrich.com/2009/03/18/setting-the-session-timeout-in-tomcat/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 03:34:27 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Apache Tomcat]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=91</guid>
		<description><![CDATA[You can specify the timeout of a session in the deployment descriptor of your web application (web.xml): &#60;web-app&#62; &#60;session-config&#62; &#60;session-timeout&#62;60&#60;/session-timeout&#62; &#60;/session-config&#62; ... &#60;/web-app&#62; The number within the session-timout element must be expressed in minutes. Be sure to restart Tomcat to take the new setting.]]></description>
			<content:encoded><![CDATA[<div><span style="font-family: Verdana,Arial,Helvetica; font-size: x-small;">You can specify the timeout of a session in the deployment descriptor of your web application (web.xml):</span></div>
<p><span style="font-family: Verdana,Arial,Helvetica; font-size: x-small;"></p>
<pre>&lt;web-app&gt;
  &lt;session-config&gt;
    &lt;session-timeout&gt;60&lt;/session-timeout&gt;
  &lt;/session-config&gt;

  ...
&lt;/web-app&gt;</pre>
<p>The number within the session-timout element must be expressed in minutes.</p>
<p>Be sure to restart Tomcat to take the new setting.</p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/03/18/setting-the-session-timeout-in-tomcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Subversion with Apache HTTPD</title>
		<link>http://www.daviddietrich.com/2009/01/31/installing-subversion-with-httpd/</link>
		<comments>http://www.daviddietrich.com/2009/01/31/installing-subversion-with-httpd/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 10:32:48 +0000</pubDate>
		<dc:creator>David Dietrich</dc:creator>
				<category><![CDATA[Apache Tomcat]]></category>
		<category><![CDATA[Change Management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://www.daviddietrich.com/?p=25</guid>
		<description><![CDATA[Ensure you have Apache installed on your system. Ensure you have mod_dav_svn installed: &#62; yum -y update mod_dav_svn Edit /etc/httpd/conf.d/subversion.conf and append the following lines to the end of your config file: &#60;Location /svn&#62; DAV svn SVNParentPath /var/svn AuthType Basic AuthName "Subversion repository" AuthUserFile /etc/svn-auth-file AuthzSVNAccessFile /etc/svnserve.conf Require valid-user &#60;/Location&#62; Create a file called /etc/svn-auth-file [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Ensure you have Apache installed on your system.</li>
<li>Ensure you have mod_dav_svn installed:
<pre><strong>&gt; yum -y update mod_dav_svn</strong></pre>
</li>
<li>Edit /etc/httpd/conf.d/subversion.conf and append the following lines to the end of your config file:
<pre><strong>&lt;Location /svn&gt;
DAV svn
SVNParentPath /var/svn
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /etc/svn-auth-file
AuthzSVNAccessFile /etc/svnserve.conf
Require valid-user
&lt;/Location&gt;
</strong></pre>
</li>
<li>Create a file called <strong>/etc/svn-auth-file</strong><br />
Assign permission:</p>
<pre><strong>&gt; chown root.root /etc/svn-auth-file
&gt; chmod 644 /etc/svn-auth-file</strong></pre>
</li>
<li>Add users to /etc/svn-auth-file (one per line) in the form:<br />
tom:$apr1$hDMIx&#8230;$abctozvZbC9J6/heHBBe481You can use htpasswd to do this automatically:</p>
<pre><strong>&gt; ### First time: use -cm to create the file
&gt; ### Use -m to use MD5 encryption of the password, which is more secure
&gt; htpasswd -m /etc/svn-auth-file harry
New password: *****
Re-type new password: *****
Adding password for user harry
&gt; htpasswd /etc/svn-auth-file -m sally
New password: *******
Re-type new password: *******
Adding password for user sally
&gt;</strong></pre>
</li>
<li>Create a file called /etc/svnserve.conf<br />
Fill it with:</p>
<pre><strong>[/]
*=
svnUser=rw</strong></pre>
<p>The user svnUser is being granted read and write access to all projects, while all other users (*) are being denied access.</li>
<li>Assign permissions:
<pre><strong>&gt; chown root.apache /etc/svnserve.conf
&gt; chmod 640 /etc/svnserve.conf</strong></pre>
</li>
<li>Create /var/svn.
<pre><strong>&gt; mkdir -p /var/svn
&gt; chmod 755 /var/svn</strong></pre>
</li>
<li>If you are running SELinux, run:
<pre><strong>&gt; chcon -R -h -t httpd_sys_content_t /var/svn</strong></pre>
</li>
<li>You are now ready to being adding Subversion repositories!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.daviddietrich.com/2009/01/31/installing-subversion-with-httpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
