<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>This is what I do</title>
	<atom:link href="http://freddyandersen.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://freddyandersen.wordpress.com</link>
	<description>Issues, so many issues...</description>
	<lastBuildDate>Wed, 07 Sep 2011 15:19:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='freddyandersen.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/c16102b52ed6533f4eb7e18738f67a5e?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>This is what I do</title>
		<link>http://freddyandersen.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://freddyandersen.wordpress.com/osd.xml" title="This is what I do" />
	<atom:link rel='hub' href='http://freddyandersen.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Booting Ubuntu Server 10.10 from 3TB Drive</title>
		<link>http://freddyandersen.wordpress.com/2011/04/22/booting-ubuntu-server-10-10-from-3tb-drive/</link>
		<comments>http://freddyandersen.wordpress.com/2011/04/22/booting-ubuntu-server-10-10-from-3tb-drive/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 23:05:07 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Server Software]]></category>

		<guid isPermaLink="false">http://freddyandersen.wordpress.com/?p=185</guid>
		<description><![CDATA[How to make an Ubuntu Server 10.10 boot from a humungousaur disk of size 3TB without using a cd, usb stick or smaller boot disk... <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=185&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>yes that&#8217;s right I wanted to upgrade my server from 250GB Drive to a 3TB drive but after the first time around installing Ubuntu server and letting Ubuntu setup my partitions I got this:</p>
<p><strong>no bootable device insert boot disk and press any key</strong></p>
<p>I tried booting into parted to see what was up but everything looked great in the partition table. My BIOS was recognizing the disk as 3TB so I don&#8217;t think that was the issue BUT it was&#8230;</p>
<p>After a good amount of hours wasted since the format process of a 3TB drive is not something that is done in 2 seconds&#8230; I found this little piece of info that told me I have to mark the partition that is booting with a boot flag. I&#8217;m running this server on a Intel D510MO board and there is something there where it can&#8217;t recognize the grub boot partition unless its marked with the boot flag&#8230;</p>
<p>here is how you go about doing the install with glory and wonderful colors!!</p>
<p>Run the Default Ubuntu Server install and choose the default &#8220;Let Ubuntu manage and create your partitions&#8221; (I picked with LVM) then after the install your server will reboot and you should get the can&#8217;t find your disk message. Now boot from the install Ubuntu Server 10.10 disk again and select boot from first disk option!!</p>
<p>This will boot your system and you can now access a shell. Here are the magic commands:</p>
<ol>
<li>Type &#8220;fdisk /dev/sda&#8221;.</li>
<li>Type &#8220;p&#8221; to view the MBR partition table. It should show one partition, with &#8220;ee&#8221; in the &#8220;Id&#8221; column. This is normal, even though you created several GPT partitions.</li>
<li>Type &#8220;a&#8221; and enter &#8220;1&#8243; (or whatever the partition number is) when prompted.</li>
<li>Type &#8220;p&#8221; again. You should now see an &#8220;*&#8221; under the &#8220;Boot&#8221; column.</li>
<li>Type &#8220;w&#8221; to save the changes.</li>
</ol>
<p>Reboot and watch your system auto boot from your 3TB drive !!! WOHO babe&#8230;</p>
<br />Filed under: <a href='http://freddyandersen.wordpress.com/category/server-software/'>Server Software</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freddyandersen.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freddyandersen.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freddyandersen.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freddyandersen.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/freddyandersen.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/freddyandersen.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/freddyandersen.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/freddyandersen.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freddyandersen.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freddyandersen.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freddyandersen.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freddyandersen.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freddyandersen.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freddyandersen.wordpress.com/185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=185&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://freddyandersen.wordpress.com/2011/04/22/booting-ubuntu-server-10-10-from-3tb-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c438a80fc30661ad619ea177cf9cbd0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Freddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Why did you choose MySQL?</title>
		<link>http://freddyandersen.wordpress.com/2011/02/17/why-did-you-choose-mysql/</link>
		<comments>http://freddyandersen.wordpress.com/2011/02/17/why-did-you-choose-mysql/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 23:46:40 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Server Software]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://freddyandersen.wordpress.com/?p=183</guid>
		<description><![CDATA[I would like to know the reason that you grabbed MySQL and not PostgreSQL? Easy of install? Think that its better? what you know? Leave a comment with your thoughts&#8230; Filed under: Server Software Tagged: mysql<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=183&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I would like to know the reason that you grabbed MySQL and not PostgreSQL? Easy of install? Think that its better? what you know?</p>
<p>Leave a comment with your thoughts&#8230;</p>
<br />Filed under: <a href='http://freddyandersen.wordpress.com/category/server-software/'>Server Software</a> Tagged: <a href='http://freddyandersen.wordpress.com/tag/mysql/'>mysql</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freddyandersen.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freddyandersen.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freddyandersen.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freddyandersen.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/freddyandersen.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/freddyandersen.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/freddyandersen.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/freddyandersen.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freddyandersen.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freddyandersen.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freddyandersen.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freddyandersen.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freddyandersen.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freddyandersen.wordpress.com/183/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=183&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://freddyandersen.wordpress.com/2011/02/17/why-did-you-choose-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c438a80fc30661ad619ea177cf9cbd0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Freddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Mysql 5.5, Snow leopard and rails</title>
		<link>http://freddyandersen.wordpress.com/2010/10/03/mysql-5-5-snow-leopard-and-rails/</link>
		<comments>http://freddyandersen.wordpress.com/2010/10/03/mysql-5-5-snow-leopard-and-rails/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 04:16:56 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Server Software]]></category>

		<guid isPermaLink="false">http://freddyandersen.wordpress.com/?p=180</guid>
		<description><![CDATA[I had some issues getting this to work with this error message: LoadError: dlopen(/Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.16.dylib Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle Reason: image not found &#8211; /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle from /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require&#8217; from /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2.rb:7 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require&#8217; from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require&#8217; from (irb):1 After a few (hundred) tries I found that you need to change [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=180&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had some issues getting this to work with this error message:</p>
<p>LoadError: dlopen(/Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.16.dylib<br />
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle<br />
Reason: image not found &#8211; /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle<br />
from /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle<br />
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require&#8217;<br />
from /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2.rb:7<br />
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require&#8217;<br />
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require&#8217;<br />
from (irb):1</p>
<p>After a few (hundred) tries I found that you need to change the mysql2.bundle to get this to work, and here is how&#8230;</p>
<p>First installing mysql 5.5 from dev.myql.com/downloads using the dmg package&#8230; easy as pie&#8230;.</p>
<p>Second ruby/rails/gems have other issues that I don&#8217;t want to go into BUT have rails running then install mysql2 gem using the normal command sudo gem install mysql2</p>
<p>Now is the &#8220;tricky&#8221; part:</p>
<p>sudo install_name_tool -change libmysqlclient.16.dylib /usr/local/mysql/lib/libmysqlclient.16.dylib /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle</p>
<p>This makes a change in the mysql2.bundle file that is not using the full path for libmysqlclient library&#8230;</p>
<p>then to test fire up irb</p>
<p>&gt;&gt; require &#8216;mysql2&#8242;<br />
=&gt; true</p>
<br />Filed under: <a href='http://freddyandersen.wordpress.com/category/server-software/'>Server Software</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freddyandersen.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freddyandersen.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freddyandersen.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freddyandersen.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/freddyandersen.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/freddyandersen.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/freddyandersen.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/freddyandersen.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freddyandersen.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freddyandersen.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freddyandersen.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freddyandersen.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freddyandersen.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freddyandersen.wordpress.com/180/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=180&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://freddyandersen.wordpress.com/2010/10/03/mysql-5-5-snow-leopard-and-rails/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c438a80fc30661ad619ea177cf9cbd0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Freddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Securing Apaches Header Information</title>
		<link>http://freddyandersen.wordpress.com/2010/08/24/securing-apaches-header-information/</link>
		<comments>http://freddyandersen.wordpress.com/2010/08/24/securing-apaches-header-information/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 18:47:56 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Server Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://freddyandersen.wordpress.com/?p=173</guid>
		<description><![CDATA[A default installation of Apache gives the hackers of our world all the information they will need to find a security hole on your system. Today we are going to look into how you can plug this hole and even look at an advanced way of removing the Apache name completely.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=173&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you install apache with default settings (<em>./configure &amp;&amp; make &amp;&amp; make install</em>) this is the header that your users are able to get:</p>
<blockquote><p>[root@hostname] /usr/local/apache2 $ telnet localhost 80<br />
Trying 127.0.0.1&#8230;<br />
Connected to localhost.localdomain (127.0.0.1).<br />
Escape character is &#8216;^]&#8217;.<br />
HEAD / HTTP/1.0<br />
HTTP/1.1 200 OK<br />
Date: Tue, 24 Aug 2010 18:17:56 GMT<br />
<strong> Server: Apache/2.2.16 (Unix)</strong><br />
Last-Modified: Sat, 20 Nov 2004 20:16:24 GMT<br />
ETag: &#8220;7001c-2c-3e9564c23b600&#8243;<br />
Accept-Ranges: bytes<br />
Content-Length: 44<br />
Connection: close<br />
Content-Type: text/html</p></blockquote>
<p>Now what you could do is go and change your <strong>ServerTokens</strong> to Prod which is short for ProductOnly and would show only Apache. Like this:</p>
<blockquote>
<div id="_mcePaste">[root@hostname] /usr/local/apache2 $ telnet localhost 80</div>
<div id="_mcePaste">Trying 127.0.0.1&#8230;</div>
<div id="_mcePaste">Connected to localhost.localdomain (127.0.0.1).</div>
<div id="_mcePaste">Escape character is &#8216;^]&#8217;.</div>
<div id="_mcePaste">HEAD / HTTP/1.0</div>
<div id="_mcePaste">HTTP/1.1 200 OK</div>
<div id="_mcePaste">Date: Tue, 24 Aug 2010 18:23:39 GMT</div>
<div id="_mcePaste"><strong>Server: Apache</strong></div>
<div id="_mcePaste">Last-Modified: Sat, 20 Nov 2004 20:16:24 GMT</div>
<div id="_mcePaste">ETag: &#8220;7001c-2c-3e9564c23b600&#8243;</div>
<div id="_mcePaste">Accept-Ranges: bytes</div>
<div id="_mcePaste">Content-Length: 44</div>
<div id="_mcePaste">Connection: close</div>
<div id="_mcePaste">Content-Type: text/html</div>
</blockquote>
<p>Much better but you are still telling the world that you are using Apache. First thought would be that you can use mod_headers to just remove the Server: part of your headers but unfortunately this is not possible. Apache tags the Server: and Date: information to the header just before this is sent to the client. There is a bug for this issue but it has not been fixed and it has been around for 5 years.</p>
<p>My fix for this is to create a patch that sets the name &#8220;Apache&#8221; to whatever you would like. Here is a server that has been patched:</p>
<blockquote>
<div id="_mcePaste">[root@hostname] /usr/local/apache2 $ telnet localhost 80</div>
<div id="_mcePaste">Trying 127.0.0.1&#8230;</div>
<div id="_mcePaste">Connected to localhost.localdomain (127.0.0.1).</div>
<div id="_mcePaste">Escape character is &#8216;^]&#8217;.</div>
<div id="_mcePaste">HEAD / HTTP/1.0</div>
<div id="_mcePaste">HTTP/1.1 200 OK</div>
<div id="_mcePaste">Date: Tue, 24 Aug 2010 18:23:39 GMT</div>
<div id="_mcePaste"><strong>Server: Freddys Secure HTTP Server</strong></div>
<div id="_mcePaste">Last-Modified: Sat, 20 Nov 2004 20:16:24 GMT</div>
<div id="_mcePaste">ETag: &#8220;7001c-2c-3e9564c23b600&#8243;</div>
<div id="_mcePaste">Accept-Ranges: bytes</div>
<div id="_mcePaste">Content-Length: 44</div>
<div id="_mcePaste">Connection: close</div>
<div id="_mcePaste">Content-Type: text/htm</div>
</blockquote>
<p>The file you want is Apache_source/include/ap_release.h then look for line 44:</p>
<p>#define AP_SERVER_BASEPRODUCT &#8220;Freddys Secure HTTP Server&#8221;</p>
<p>If you don&#8217;t like messing with the source code here is a patch that you can apply before running the configure&#8230; :</p>
<blockquote><p>diff -rupN httpd-2.2.16/include/ap_release.h httpd-2.2.16_patched/include/ap_release.h<br />
&#8212; httpd-2.2.16/include/ap_release.h<span style="white-space:pre;"> </span>2010-07-21 12:26:44.000000000 -0600<br />
+++ httpd-2.2.16_patched/include/ap_release.h<span style="white-space:pre;"> </span>2010-08-24 12:40:09.000000000 -0600<br />
@@ -41,7 +41,7 @@<br />
*/<br />
#define AP_SERVER_BASEVENDOR &#8220;Apache Software Foundation&#8221;<br />
#define AP_SERVER_BASEPROJECT &#8220;Apache HTTP Server&#8221;<br />
-#define AP_SERVER_BASEPRODUCT &#8220;Apache&#8221;<br />
+#define AP_SERVER_BASEPRODUCT &#8220;Freddys Secure HTTP Server&#8221;</p>
<p>#define AP_SERVER_MAJORVERSION_NUMBER 2<br />
#define AP_SERVER_MINORVERSION_NUMBER 2</p></blockquote>
<p>Now put this patch in a file called apache_name.patch and run this command:</p>
<blockquote><p>[root@hostname] ~/httpd-2.2.16 $  $ patch -p1 &lt; ../apache_name.patch<br />
patching file include/ap_release.h</p></blockquote>
<p>Now like normal run ./configure &amp;&amp; make &amp;&amp; make install, set your ServerTokens to Prod and the Server: header should say whatever you change the AP_SERVER_BASEPRODUCT too.</p>
<br />Filed under: <a href='http://freddyandersen.wordpress.com/category/server-software/'>Server Software</a> Tagged: <a href='http://freddyandersen.wordpress.com/tag/apache/'>apache</a>, <a href='http://freddyandersen.wordpress.com/tag/security/'>security</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freddyandersen.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freddyandersen.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freddyandersen.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freddyandersen.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/freddyandersen.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/freddyandersen.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/freddyandersen.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/freddyandersen.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freddyandersen.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freddyandersen.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freddyandersen.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freddyandersen.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freddyandersen.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freddyandersen.wordpress.com/173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=173&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://freddyandersen.wordpress.com/2010/08/24/securing-apaches-header-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c438a80fc30661ad619ea177cf9cbd0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Freddy</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get a thread-dump from Tomcat or JBoss</title>
		<link>http://freddyandersen.wordpress.com/2009/11/10/how-to-get-a-thread-dump-from-tomcat-or-jboss/</link>
		<comments>http://freddyandersen.wordpress.com/2009/11/10/how-to-get-a-thread-dump-from-tomcat-or-jboss/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 18:21:17 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Server Software]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[jvm]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://freddyandersen.wordpress.com/?p=170</guid>
		<description><![CDATA[Getting a thread-dump is one of the first steps in troubleshooting a misbehaving Java application. There are a few good ways todo this task but the easiest of them all is kill -3 &#60;PID&#62; This will send the thread-dump to your stdout logs. Posted in Server Software Tagged: jboss, jvm, tomcat<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=170&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Getting a thread-dump is one of the first steps in troubleshooting a misbehaving Java application. There are a few good ways todo this task but the easiest of them all is</p>
<h3><strong>kill -3 &lt;PID&gt;</strong></h3>
<p>This will send the thread-dump to your stdout logs.</p>
<br />Posted in Server Software Tagged: jboss, jvm, tomcat <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freddyandersen.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freddyandersen.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freddyandersen.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freddyandersen.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/freddyandersen.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/freddyandersen.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/freddyandersen.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/freddyandersen.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freddyandersen.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freddyandersen.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freddyandersen.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freddyandersen.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freddyandersen.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freddyandersen.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=170&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://freddyandersen.wordpress.com/2009/11/10/how-to-get-a-thread-dump-from-tomcat-or-jboss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c438a80fc30661ad619ea177cf9cbd0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Freddy</media:title>
		</media:content>
	</item>
		<item>
		<title>uninitialized constant MysqlCompat::MysqlRes error when starting Rails</title>
		<link>http://freddyandersen.wordpress.com/2009/11/05/uninitialized-constant-mysqlcompatmysqlres-error-when-starting-rails/</link>
		<comments>http://freddyandersen.wordpress.com/2009/11/05/uninitialized-constant-mysqlcompatmysqlres-error-when-starting-rails/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 23:57:39 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Server Software]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://freddyandersen.wordpress.com/?p=168</guid>
		<description><![CDATA[After a few upgrades, re-installs and moving to new servers I have been getting this error message uninitialized constant MysqlCompat::MysqlRes when I start rails. (Passenger or Thin) I have been using mysqlplus gem but wanted to move back to MySQL 2.8.1 gem and I think that is when this started to popup more often. (after looking [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=168&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After a few upgrades, re-installs and moving to new servers I have been getting this error message <strong>uninitialized constant MysqlCompat::MysqlRes</strong> when I start rails. (Passenger or Thin)</p>
<p>I have been using mysqlplus gem but wanted to move back to MySQL 2.8.1 gem and I think that is when this started to popup more often. (after looking closer I have servers with ruby 1.8.7 and 1.8.6 using the mysql 2.8.1 gem without issues&#8230; )</p>
<p>After firing up thin using strace on my CentOS server I found that for some reason the mysql gem is looking for libmysqlclient.so.16 in /lib64 /usr/lib64 &#8230; and not in /opt/mysql/lib where these libraries are located. What I did to fix this issue was to create a link in /usr/lib64/ pointing to the libmysqlclient.so.16 library and voila! the problem is fixed.</p>
<p>PS I think you can set the mysql-lib-dir when you install the mysql gem but I have not tested this yet. I&#8217;m thinking something like this <strong>might</strong> have fixed the issue too(not tested):</p>
<blockquote>
<pre>[root@server]# gem install mysql -- --with-mysql-dir=/opt/mysql \
                                    --with-mysql-lib=/opt/mysql/lib \
                                    --with-mysql-include=/opt/mysql/include</pre>
</blockquote>
<p>&nbsp;</p>
<br />Posted in Server Software Tagged: mysql, rails <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freddyandersen.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freddyandersen.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freddyandersen.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freddyandersen.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/freddyandersen.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/freddyandersen.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/freddyandersen.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/freddyandersen.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freddyandersen.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freddyandersen.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freddyandersen.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freddyandersen.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freddyandersen.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freddyandersen.wordpress.com/168/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=168&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://freddyandersen.wordpress.com/2009/11/05/uninitialized-constant-mysqlcompatmysqlres-error-when-starting-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c438a80fc30661ad619ea177cf9cbd0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Freddy</media:title>
		</media:content>
	</item>
		<item>
		<title>How to generate a self-signed OpenSSL certificate for Apache</title>
		<link>http://freddyandersen.wordpress.com/2009/11/04/how-to-generate-a-self-signed-openssl-certificate-for-apache/</link>
		<comments>http://freddyandersen.wordpress.com/2009/11/04/how-to-generate-a-self-signed-openssl-certificate-for-apache/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 18:39:06 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Server Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[openssl]]></category>

		<guid isPermaLink="false">http://freddyandersen.wordpress.com/?p=165</guid>
		<description><![CDATA[There are just a few quick and easy steps to generate a certificate without a passphrase for Apache. First you have to generate a key for your host: [root@heimdull]# openssl genrsa 1024 &#62; host.key Generating RSA private key, 1024 bit long modulus ..........................................++++++ .........++++++ e is 65537 (0x10001) Generating RSA private key, 1024 bit long [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=165&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are just a few quick and easy steps to generate a certificate without a passphrase for Apache. First you have to generate a key for your host:</p>
<blockquote>
<pre>[root@heimdull]# openssl genrsa 1024 &gt; host.key
<div id="_mcePaste">Generating RSA private key, 1024 bit long modulus</div>
<div id="_mcePaste">..........................................++++++</div>
<div id="_mcePaste">.........++++++</div>
<div id="_mcePaste">e is 65537 (0x10001)</div>

Generating RSA private key, 1024 bit long modulus.............
.............................++++++.........++++++e is 65537 (0x10001)</pre>
</blockquote>
<p>Now you have your host key file that you will use in the Apache configuration file and to generate the actual certificate</p>
<blockquote>
<pre>[root@heimdull]# openssl req -new -x509 -nodes -sha1 -days 365 -key host.key &gt; host.crt
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]:GB
State or Province Name (full name) [Berkshire]:Berkshire
Locality Name (eg, city) [Newbury]: Newbury
Organization Name (eg, company) [My Company Ltd]:My Company Ltd
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:www.myserver.com
Email Address []:</pre>
</blockquote>
<p>Now you have to move these files somewhere that is related to you Apache installation and in your httpd.conf or httpd-ssl.conf file you will need these lines:</p>
<blockquote>
<pre>SSLEngine on
  SSLCertificateFile /Apache-home/ssl/host.crt
  SSLCertificateKeyFile /Apache-home/ssl/host.key</pre>
</blockquote>
<br />Posted in Server Software Tagged: apache, openssl <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freddyandersen.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freddyandersen.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freddyandersen.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freddyandersen.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/freddyandersen.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/freddyandersen.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/freddyandersen.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/freddyandersen.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freddyandersen.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freddyandersen.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freddyandersen.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freddyandersen.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freddyandersen.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freddyandersen.wordpress.com/165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=165&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://freddyandersen.wordpress.com/2009/11/04/how-to-generate-a-self-signed-openssl-certificate-for-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c438a80fc30661ad619ea177cf9cbd0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Freddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Glassfish v2.1 and configuring a cluster</title>
		<link>http://freddyandersen.wordpress.com/2009/10/16/installing-glassfish-v2-1-and-configuring-a-cluster/</link>
		<comments>http://freddyandersen.wordpress.com/2009/10/16/installing-glassfish-v2-1-and-configuring-a-cluster/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 22:32:17 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Server Software]]></category>
		<category><![CDATA[glassfish]]></category>
		<category><![CDATA[j2ee]]></category>

		<guid isPermaLink="false">http://freddyandersen.wordpress.com/?p=161</guid>
		<description><![CDATA[I have been a Tomcat guy for the longest time but from time to time I like to play with the other guys software so it was either Jetty or Glassfish. I choose Glassfish. I&#8217;ve used Glassfish before for development testing and running rails but have not had any real J2ee apps running inside. Let&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=161&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been a Tomcat guy for the longest time but from time to time I like to play with the other guys software so it was either Jetty or Glassfish. I choose Glassfish. I&#8217;ve used Glassfish before for development testing and running rails but have not had any real J2ee apps running inside. Let&#8217;s have a look at the installation procedures for Glassfish and what you get after a few minutes of clicking.</p>
<h2><strong>Download</strong></h2>
<p><strong> </strong>Glassfish can be downloaded from https://glassfish.dev.java.net/downloads/v2.1-b60e.html we are going to use the latest stable (production ready) build of v2.1 b60.</p>
<h2><strong>Installation</strong></h2>
<p><strong><span style="font-weight:normal;">I&#8217;m running this on a Linux (Centos) server so here are the steps to install and setup Glassfish WITH the cluster configurations:</span> </strong></p>
<pre>
<blockquote>

[root@heimdull]# java -Xmx256m -jar glassfish-installer-v2.1-b60e-linux-ml.jar
[root@heimdull]# cd glassfish
[root@heimdull]# chmod -R +x lib/ant/bin
[root@heimdull]# lib/ant/bin/ant -s setup-cluster.xml
bla bla bla
....

BUILD SUCCESSFUL
Total time: xx seconds</blockquote>
</pre>
<h2>Configuration</h2>
<p>Before we configure some custom settings lets just get this thing started&#8230;</p>
<blockquote>
<pre>[root@heimdull]# export PATH=~/glassfish/bin:$PATH
[root@heimdull]# asadmin start-domain</pre>
</blockquote>
<p>Now you can access the administration console at http://localhost:4848/ by default the server does NOT bind to localhost but 0.0.0.0 so if you do not have a firewall you can access the console from outside the server too.</p>
<p><em>PS. There is a issue where the admin console might keep logging you out and asking for your credentials on every click. This is a cookie problem. Clear your browser cookies and you should be fine.</em></p>
<h3>Change admin password</h3>
<p>If you want to change the default admin user password (which is adminadmin) run the following command:</p>
<blockquote>
<pre>[root@heimdull]# asadmin change-admin-password --user=admin</pre>
</blockquote>
<h3>Creating the cluster</h3>
<p>Go to http://localhost:4848 and login. After this click on the <strong>C</strong><strong>lusters</strong> menu option and select new, name the cluster something like my-cluster and click ok. You have now created the shell configuration for our cluster.</p>
<p>Now lets repeat the installation process on the cluster node. After you have installed Glassfish on the &#8220;node-agent&#8221; you are going to run a command to connect this server to the running admin-node that we installed in the initial installation steps. (Do not start the domain on the node-agent before it is connected to the admin server)</p>
<blockquote>
<pre>[root@heimdull]# asadmin create-node-agent --host admin-node --port 4848 --user admin my-cluster-agent-1
[root@heimdull]# asadmin start-node-agent my-cluster-agent-1
<div id="_mcePaste" style="position:absolute;left:-10000px;top:104px;width:1px;height:1px;">Please enter the admin user name&gt;admin</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:104px;width:1px;height:1px;">Redirecting application output to /opt/glassfish/nodeagents/slave.local/agent/logs/server.log</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:104px;width:1px;height:1px;">Command start-node-agent executed successfull</div>

Please enter the admin user name&gt;<strong>admin</strong>
Please enter the admin password&gt;<strong>password</strong>
Please enter the master password [Enter to accept the default]:&gt;
Redirecting output to /opt/glassfish/nodeagents/slave.local/agent/logs/server.log
Redirecting application output to /opt/glassfish/nodeagents/slave.local/agent/logs/server.log
Command start-node-agent executed successfully.</pre>
<div><span style="font-family:Consolas, Monaco, 'Courier New', Courier, monospace;font-size:small;"><span style="line-height:18px;white-space:pre;"> </span></span></div>
</blockquote>
<p>You now have a running cluster of 1 node. Login to the admin console and have a look, cluster of one, nice!</p>
<h3>Create the server instance</h3>
<p>You do now need to create the server instance which will be running in the cluster. Click on the clusters menu and select my-cluster. Now click the Instances menu button and click new.</p>
<p>Name the instance instance-1 and select the newly added node agent.</p>
<p><strong>You now have the following components running/installed:</strong></p>
<p>- (DAS) Domain Admin Server: This is the server that will controller the &#8220;cluster&#8221;.</p>
<p>- (NA) Node agent: All members of the cluster needs a nodeagent that connects to the admin server. The nodeagent needs to be started on the cluster member before the admin server can do any monitoring/administration of the member.</p>
<p>- (SI) Server Instance: This is where all the action is, this is the actual &#8220;server&#8221; that will be added to the server and this is where you application will be running.</p>
<br />Posted in Server Software Tagged: glassfish, j2ee <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freddyandersen.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freddyandersen.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freddyandersen.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freddyandersen.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/freddyandersen.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/freddyandersen.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/freddyandersen.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/freddyandersen.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freddyandersen.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freddyandersen.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freddyandersen.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freddyandersen.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freddyandersen.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freddyandersen.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=161&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://freddyandersen.wordpress.com/2009/10/16/installing-glassfish-v2-1-and-configuring-a-cluster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c438a80fc30661ad619ea177cf9cbd0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Freddy</media:title>
		</media:content>
	</item>
		<item>
		<title>to_json and associations</title>
		<link>http://freddyandersen.wordpress.com/2009/09/12/to_json-and-associations/</link>
		<comments>http://freddyandersen.wordpress.com/2009/09/12/to_json-and-associations/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 22:07:22 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[googl]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[to_json]]></category>

		<guid isPermaLink="false">http://freddyandersen.wordpress.com/?p=157</guid>
		<description><![CDATA[The problem was that I wanted to get to a address that was associated with the store. I was using .to_json but this did not include the address information. First I had var store = @store.to_json but that only gave me the address_id not the address information. After a little digging I got the syntax [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=157&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The problem was that I wanted to get to a address that was associated with the store. I was using .to_json but this did not include the address information.</p>
<p>First I had var store = @store.to_json but that only gave me the address_id not the address information. After a little digging I got the syntax correct. Here is my code syntax&#8230;</p>
<p>This is my head tag:</p>
<blockquote>
<pre>&lt;script type="text/javascript"&gt;var stores=&lt;%=@stores.to_json(:include =&gt; {:store_address =&gt; {}})%&gt;;&lt;/script&gt;</pre>
</blockquote>
<p>Than I can use the stores variable in my google maps javascript like so:</p>
<blockquote>
<pre>var storePoint = new GLatLng(stores[i].store.lat, stores[i].store.lng);
var storeText = '&lt;div id="gmap-content"&gt;'+
  '&lt;h4&gt;' + stores[i].store.name + '&lt;/h4&gt;'+
  '&lt;em&gt;' + stores[i].store.store_address.address + '&lt;/em&gt;&lt;br /&gt;' +
  '&lt;em&gt;' + stores[i].store.store_address.city + '&lt;/em&gt;&lt;br /&gt;' +
  '&lt;em&gt;' + stores[i].store.store_address.phone + '&lt;/em&gt;' +
  '&lt;/div&gt;';
var storeMarker = new createMarker(storePoint,storeText)</pre>
</blockquote>
<p>PS. These are just snips and need more code to work..</p>
<br />Posted in Code Tagged: googl, maps, rails, to_json <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freddyandersen.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freddyandersen.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freddyandersen.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freddyandersen.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/freddyandersen.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/freddyandersen.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/freddyandersen.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/freddyandersen.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freddyandersen.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freddyandersen.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freddyandersen.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freddyandersen.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freddyandersen.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freddyandersen.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=157&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://freddyandersen.wordpress.com/2009/09/12/to_json-and-associations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c438a80fc30661ad619ea177cf9cbd0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Freddy</media:title>
		</media:content>
	</item>
		<item>
		<title>Running Tomcat as a service on Linux</title>
		<link>http://freddyandersen.wordpress.com/2009/09/02/running-tomcat-as-a-service-on-linux/</link>
		<comments>http://freddyandersen.wordpress.com/2009/09/02/running-tomcat-as-a-service-on-linux/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 20:59:48 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Server Software]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://freddyandersen.wordpress.com/?p=154</guid>
		<description><![CDATA[Running Tomcat as a service is as easy as getting jsvc to run and it&#8217;s all documented in &#8230; hmmm well anyways this is how I do it&#8230; Compiling JSVC [root ~]# cd $TOMCAT_HOME/bin &#38;&#38; tar -zxf jsvc.tar.gz [root ~]# cd jsvc-src &#38;&#38; chmod +x configure [root ~]# ./configure [root ~]# make Now there whould [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=154&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Running Tomcat as a service is as easy as getting jsvc to run and it&#8217;s all documented in &#8230; hmmm well anyways this is how I do it&#8230;</h3>
<h2>Compiling JSVC</h2>
<blockquote>
<pre>[root ~]# cd $TOMCAT_HOME/bin &amp;&amp; tar -zxf jsvc.tar.gz
[root ~]# cd jsvc-src &amp;&amp; chmod +x configure
[root ~]# ./configure
[root ~]# make</pre>
</blockquote>
<p>Now there whould be a file called jsvc in $TOMCAT_HOME/bin/jsvc-src/native/ please move this file to $TOMCAT_HOME/bin/jsvc this is the Java service executable that will execute your Tomcat server. The next step is to setup your init file, lets create the file /etc/init.d/tomcat that will be used to start Tomcat with jsvc.</p>
<blockquote>
<pre>#!/bin/sh
##############################################################
# chkconfig: 345 98 98
### BEGIN INIT INFO
# Provides: Tomcat
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop Tomcat
# Description: Tomcat is a J2EE Application server
### END INIT INFO

CATALINA_HOME=/usr/local/tomcat
DAEMON_HOME=/usr/local/tomcat
TOMCAT_USER=tomcat

# Make sure we load the setenv.sh file
# since we don't use the startup.sh script
. $CATALINA_HOME/bin/setenv.sh

# for multi instances adapt these lines.
TMP_DIR=/var/tmp
PID_FILE=/var/run/jsvc.pid
CATALINA_BASE=/usr/local/tomcat

CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

case "$1" in
  start)
    #
    # Start Tomcat
    #
    #-user $TOMCAT_USER \
    echo $"Starting Tomcat..."
    cd $CATALINA_HOME &amp;&amp; \
    $DAEMON_HOME/bin/jsvc \
    -home $JAVA_HOME \
    -Dcatalina.home=$CATALINA_HOME \
    -Dcatalina.base=$CATALINA_BASE \
    -Djava.io.tmpdir=$TMP_DIR \
    -wait 10 \
    -pidfile $PID_FILE \
    -outfile $CATALINA_HOME/logs/catalina.out \
    -errfile '&amp;1' \
    $CATALINA_OPTS \
    -cp $CLASSPATH \
    org.apache.catalina.startup.Bootstrap
    #
    # To get a verbose JVM
    #-verbose \
    # To get a debug of jsvc.
    #-debug \
    exit $?
  ;;

  stop)
  #
  # Stop Tomcat
  #
  echo $"Stoping Tomcat..."
    $DAEMON_HOME/bin/jsvc \
    -stop \
    -pidfile $PID_FILE \
    org.apache.catalina.startup.Bootstrap
    exit $?
  ;;

  restart)
    $0 stop
    $0 start
    exit $?
  ;;

  *)
    echo "Usage: tomcat {start|stop}"
    exit 1;;
esac</pre>
</blockquote>
<p>Now you can start tomcat using /etc/init.d/tomcat start. You will see TWO java processes running on your computer when Tomcat is started in this way. There is one control process and then there is the wrapper for your java process (Tomcat).</p>
<br />Posted in Server Software Tagged: linux, tomcat <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/freddyandersen.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/freddyandersen.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/freddyandersen.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/freddyandersen.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/freddyandersen.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/freddyandersen.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/freddyandersen.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/freddyandersen.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/freddyandersen.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/freddyandersen.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/freddyandersen.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/freddyandersen.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/freddyandersen.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/freddyandersen.wordpress.com/154/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=freddyandersen.wordpress.com&amp;blog=8021924&amp;post=154&amp;subd=freddyandersen&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://freddyandersen.wordpress.com/2009/09/02/running-tomcat-as-a-service-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4c438a80fc30661ad619ea177cf9cbd0?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Freddy</media:title>
		</media:content>
	</item>
	</channel>
</rss>
