<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>RSS feed for InstantSpot site Blog of Dave</title><link>http://daveshuck.instantspot.com</link><description>Dave Shuck&apos;s ramblings on - ColdFusion, Flex, and Java, and life.</description><language>en-us</language><copyright>This work is Copyright &#xA9; 2009 by Blog of Dave</copyright><generator>RSSVille ColdFusion FeedMaker, version 1.0</generator><pubDate>Fri, 20 Nov 2009 19:10:56 GMT</pubDate><item><title>Create SSL sites in Apache on Windows with OpenSSL</title><link>http://daveshuck.instantspot.com/blog/2009/11/12/Create-SSL-sites-in-Apache-on-Windows-with-OpenSSL</link><description>To get a secure SSL site up and running on Apache under Windows, there are a few hoops to jump through that are not very intuitive.&amp;nbsp; To that end, I am going to document my approach to setting up SSL using OpenSSL.&amp;nbsp; This approach assumes that you already have Apache up and running on your machine, so if you have not done that, head over to the &lt;a href=&quot;http://httpd.apache.org/download.cgi&quot;&gt;HTTPD download page&lt;/a&gt; and set that up before continuing.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Setting up OpenSSL&lt;br /&gt;&lt;/b&gt;First we need to get &lt;a href=&quot;http://www.openssl.org&quot;&gt;OpenSSL&lt;/a&gt; setup on our system, which is not included with the Apache Windows binaries.&amp;nbsp; In fact the OpenSSL project doesn&apos;t even provide the binaries themselves, but you can find them at &lt;a href=&quot;http://www.slproweb.com/products/Win32OpenSSL.html&quot;&gt;Shining Light Productions&lt;/a&gt;.&amp;nbsp; For this example, I will be choosing the &lt;a href=&quot;http://www.slproweb.com/download/Win32OpenSSL_Light-0_9_8k.exe&quot;&gt;Win32 OpenSSL v0.9.8k Light&lt;/a&gt; version.&amp;nbsp; If you see a message like the one below, you will need to install the &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en&quot;&gt;Microsoft Visual C++ 2008 Redistributable Package&lt;/a&gt; and then attempt the OpenSSL installation again.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://daveshuck.instantspot.com/userfiles/073006/91/c++error.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Once you have it installed, you can do a quick test to make sure that it is set up properly:&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://daveshuck.instantspot.com/userfiles/073006/91/openssltest.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Creating Certificates&lt;br /&gt;&lt;/b&gt;Next, we will use the OpenSSL terminal interface to create our self-signed certificates.&amp;nbsp; To explain a bit about what is going on below, I have a site already existing on my system that can be reached at http://scribble.&amp;nbsp; What we are doing is creating a secure subdomain of https://secure.scribble. &amp;nbsp; Typically when I create certificates, I name the files with the host/domain obvious so that they can be easily identified later.&amp;nbsp; Obviously you will want to replace the domain name to match your setup, but type the following in the terminal in the OpenSSL/bin directory:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;[codeblock 433]&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;That will generate what you see below.&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://dl.dropbox.com/u/101948/blog/entries/ssl_on_apache/create-cert1.png&quot; height=&quot;420&quot; width=&quot;650&quot; /&gt;&lt;br /&gt;&lt;br /&gt;You may notice that I left a lot of the prompts blank.&amp;nbsp; Considering this is a dummy certificate in a development environment, that approach makes sense.&amp;nbsp; You may choose to be more explicit based on your needs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If we were to use this key as it is, we would be prompted for the password every time that Apache starts.&amp;nbsp; Since that is less than ideal, we will now generate a non-protected key from the one we created in the previous step by typing the following:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;[codeblock 434]&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://dl.dropbox.com/u/101948/blog/entries/ssl_on_apache/create-cert2.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can see that I was prompted for a pass phrase.&amp;nbsp; This is the same password that you created when we generated the certificate above.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now we need to need to build the certificate that we will actually import into Apache.&amp;nbsp; You can do so by typing:&lt;br /&gt;&lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;&lt;br /&gt;[codeblock 435]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This will result in the following output:&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://dl.dropbox.com/u/101948/blog/entries/ssl_on_apache/create-cert3.png&quot; height=&quot;443&quot; width=&quot;650&quot; /&gt;&lt;br /&gt;&lt;br /&gt;You can see that we now have a .cert, .csr, .key, and .pem file for our domain.&amp;nbsp; We will use a combination of the .key and the .cert&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Configuring Apache&lt;br /&gt;&lt;/b&gt;Now we need to make sure that your Apache server is ready to serve SSL requests.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;First, let&apos;s put the .key and .cert files that we created above into a directory under Apache.&amp;nbsp; In your &quot;conf&quot; directory, create a subdirectory named &quot;ssl&quot; and move secure.scribble.key and secure.scribble.cert into that new directory.&lt;br /&gt;&lt;br /&gt;Next we need to make sure that the mod_ssl module is enabled.&amp;nbsp; Open up the httpd.conf file for your Apache webserver.&amp;nbsp; Search for &quot;mod_ssl&quot; and you should find a line that looks like this:&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://daveshuck.instantspot.com/userfiles/073006/91/mod_sso.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Yours will likely be commented out with a &apos;#&apos; sign in front of the line.&amp;nbsp; You will want to delete that &apos;#&apos; so that it looks like the highlighted line above.&lt;br /&gt;&lt;br /&gt;Next you will need to make sure that you have uncommented the line that includes the httpd-ssl.conf file like you see below:&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;max-width: 800px;&quot; src=&quot;http://daveshuck.instantspot.com/userfiles/073006/91/conf_ssl.png&quot; /&gt;&lt;br /&gt;&lt;br /&gt;The last thing we need to do is configure our site.&amp;nbsp; Open up the conf/extra/httpd-ssl.conf file in an editor.&amp;nbsp; You will see that there is an amazingly huge and complex site definition in there already that starts with &lt;virtualhost _default_:443=&quot;&quot;&gt; and ends about 150 lines later with &lt;/virtualhost&gt;.&amp;nbsp; We need to disable this site.&amp;nbsp; If you are feeling bold, you can simply delete it.&amp;nbsp; However, I take the approach of commenting it out entirely so that I still have it as a reference, which is my recommendation as well.&amp;nbsp;&amp;nbsp; Starting with the line &lt;virtualhost _default_:443=&quot;&quot;&gt;, put a &apos;#&apos; at the start of every line that doesn&apos;t already have one and continue until you comment out the &lt;/virtualhost&gt; line.&lt;br /&gt;&lt;br /&gt;Now it is finally time for us to create the site definition for our https://secure.scribble site.&amp;nbsp; We will use some of the concepts in the example, but eliminate most of them.&amp;nbsp; Here is what mine looks like after paring down all the excess:&lt;br /&gt;&lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;[codeblock 436]&lt;br /&gt;&lt;br /&gt;In that code you can see where we are pointing to the .key and .cert files that we created above.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Now, restart your Apache server and you are now serving up securely! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;zemanta-pixie&quot;&gt;&lt;img class=&quot;zemanta-pixie-img&quot; alt=&quot;&quot; src=&quot;http://img.zemanta.com/pixy.gif?x-id=9d1b1403-fab2-8595-83d6-897a928c54c5&quot; /&gt;&lt;/div&gt;</description><pubDate>Fri, 13 Nov 2009 03:47:33 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2009/11/12/Create-SSL-sites-in-Apache-on-Windows-with-OpenSSL</guid><category>Tips and Tricks,Servers,Windows,Technology</category></item><item><title>Setting up Apache, OpenBD, Railo and ColdFusion - Part 4 - Installing Railo under Tomcat with Apache webserver</title><link>http://daveshuck.instantspot.com/blog/2009/02/09/Setting-up-Apache-OpenBD-Railo-and-ColdFusion--Part-4--Installing-Railo-under-Tomcat-with-Apache-webserver</link><description>&lt;p&gt;This is Part 4 in an ongoing series demonstrating how to install OpenBlueDragon, ColdFusion, and Railo concurrently with all requests passing through the Apache webserver.&amp;nbsp; You will find links to all parts of this series at the bottom under &amp;quot;Related Content&amp;quot;&lt;br /&gt; &lt;br /&gt; In this post we will be building upon our existing environment in which we installed Apache webserver, Tomcat 6, OpenBlueDragon, and ColdFusion, by adding Railo to the mix.&amp;nbsp; If you have been following along thus far, we are well past the hard stuff at this point.&amp;nbsp; To install Railo, which is deployed as a java war file, we are going to repeat and slightly modify many of the steps that we took at the end of Part 2 when we installed OpenBD as a Tomcat web application.&lt;br /&gt; &lt;br /&gt; Let&apos;s start by setting up our hosts entry so that our new site resolves to localhost.railo, and set up the Apache webserver to listen for the request.&amp;nbsp; Open up /etc/hosts, and append &apos;localhost.railo&apos; (without quotes!) to the line that begins with 127.0.0.1.&amp;nbsp;&amp;nbsp; Next we want to create a new virtual host file for the site under Apache.&amp;nbsp; Do so like this:&lt;br /&gt; &lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;$ cd /etc/apache2/sites-available   sudo gedit localhost.railo&lt;/pre&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt; Paste the following into that new file and save it.&lt;br /&gt; &lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;VirtualHost *&amp;gt;  ServerName localhost.railo  JKMount /* worker1 &amp;lt;/VirtualHost&amp;gt; &lt;/pre&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt; As we learned in Part 2, the line &amp;quot;JKMount /* worker1&amp;quot; is instructing apache to pass everything to the worker we defined in /etc/apache2/workers.properties.&amp;nbsp; That worker will then pass the request on to Tomcat port 8009, under which our application actually resides.&lt;br /&gt; &lt;br /&gt; Now that we have defined this site, we want to make sure that it gets included on our next Apache restart.&amp;nbsp; We do this by running the following:&lt;br /&gt; &lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;$ sudo a2ensite localhost.railo  Site localhost.railo installed; run /etc/init.d/apache2 reload to enable. &lt;/pre&gt;&lt;/div&gt;&lt;br /&gt; &lt;br /&gt; At this point, we need to make sure there is a an application set up in Tomcat to receive our request.&amp;nbsp; First, let&apos;s start by downloading&lt;/span&gt;the free Railo Server from &lt;a href=&quot;http://railo.ch/en/index.cfm?treeID=224&quot; target=&quot;_blank&quot;&gt;their download page&lt;/a&gt;.&amp;nbsp; Look toward the bottom of the page and download&amp;nbsp; &amp;quot;Railo Custom&amp;quot; and download railo-3.0.2.001.war. (or newer version if it is there).&amp;nbsp; Once we have the file downloaded, we will create a new directory for our application under Tomcat.&amp;nbsp; We will then copy the Railo war file into it from our download directory.&amp;nbsp; When we have the war file under /opt/tomcat6/webappas/localhost.railo/ we will extract it, and then safely delete the war file itself.&amp;nbsp; These steps can be seen here:&lt;br /&gt; &lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;$ sudo /opt/tomcat6/webapps/localhost.railo  sudo cp railo-3.0.2.001.war /opt/tomcat6/webapps/localhost.railo/  cd /opt/tomcat6/webapps/localhost.railo  sudo jar xvf railo-3.0.2.001.war   sudo rm railo-3.0.2.001.war&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt; &lt;br /&gt; Since we now have the application in place, it is time to modify the Tomcat server config so that it knows to send the appropriate requests to it.&amp;nbsp; Do the following:&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;$ sudo gedit /opt/tomcat6/conf/server.xml&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt; &lt;br /&gt; Look for the section that we added previously for our OpenBlueDragon localhost site &amp;quot;localhost.bd&amp;quot;.&amp;nbsp; We are going to copy that section, modifying the &amp;quot;name&amp;quot; and &amp;quot;docBase&amp;quot; attributes to match our new application and paste it just below the localhost.bd site.&amp;nbsp; When you are done they should look like this:&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;Host name=&amp;quot;localhost.bd&amp;quot;  appBase=&amp;quot;webapps&amp;quot; unpackWARs=&amp;quot;true&amp;quot;   autoDeploy=&amp;quot;true&amp;quot; xmlValidation=&amp;quot;true&amp;quot; xmlNamespaceAware=&amp;quot;false&amp;quot;&amp;gt;   &amp;lt;Context path=&amp;quot;&amp;quot; docBase=&amp;quot;localhost.bd/&amp;quot; reloadable=&amp;quot;true&amp;quot; privileged=&amp;quot;true&amp;quot; antiResourceLocking=&amp;quot;false&amp;quot; anitJARLocking=&amp;quot;false&amp;quot; /&amp;gt; &amp;lt;/Host&amp;gt;  &amp;lt;Host name=&amp;quot;localhost.railo&amp;quot;  appBase=&amp;quot;webapps&amp;quot;  unpackWARs=&amp;quot;true&amp;quot;   autoDeploy=&amp;quot;true&amp;quot; xmlValidation=&amp;quot;true&amp;quot; xmlNamespaceAware=&amp;quot;false&amp;quot;&amp;gt;   &amp;lt;Context path=&amp;quot;&amp;quot; docBase=&amp;quot;localhost.railo/&amp;quot; reloadable=&amp;quot;true&amp;quot; privileged=&amp;quot;true&amp;quot; antiResourceLocking=&amp;quot;false&amp;quot; anitJARLocking=&amp;quot;false&amp;quot; /&amp;gt; &amp;lt;/Host&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;&lt;br /&gt; With all that done, we are ready to restart (or start) Apache, Tomcat and our new Railo site will be available at http://localhost.railo&lt;br /&gt; &lt;br /&gt; So with our original goal of being able to run the three CFML engines, it&apos;s time to see how we did....&lt;br /&gt; &lt;/span&gt;&lt;/p&gt; &lt;div class=&quot;youtube-video&quot;&gt;&lt;object height=&quot;400&quot; width=&quot;550&quot;&gt; &lt;param name=&quot;movie&quot; value=&quot;http://dl.getdropbox.com/u/101948/blog/movies/3-cfml-engines.swf&quot;&gt; &lt;/param&gt; &lt;embed src=&quot;http://dl.getdropbox.com/u/101948/blog/movies/3-cfml-engines.swf&quot; height=&quot;400&quot; width=&quot;550&quot;&gt; &lt;/embed&gt;  &lt;/object&gt;&lt;/div&gt;</description><pubDate>Tue, 10 Feb 2009 04:31:00 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2009/02/09/Setting-up-Apache-OpenBD-Railo-and-ColdFusion--Part-4--Installing-Railo-under-Tomcat-with-Apache-webserver</guid><category>ColdFusion,Servers</category></item><item><title>Setting up Apache, OpenBD, Railo and ColdFusion - Part 3 - Installing ColdFusion and customizing the connector</title><link>http://daveshuck.instantspot.com/blog/2009/02/04/Setting-up-Apache-OpenBD-Railo-and-ColdFusion--Part-3--Installing-ColdFusion-and-customizing-the-connector</link><description>&lt;p&gt;This is the third part in a series of posts on setting up ColdFusion, OpenBlueDragon, and Railo all on the same machine using Apache webserver to listen for all requests and direct traffic.&amp;nbsp; &lt;a href=&quot;http://daveshuck.instantspot.com/blog/2009/02/01/Setting-up-Apache-OpenBD-Railo-and-ColdFusion--Part-2--Installing-TomcatApacheOpenBD&quot;&gt;Part 2 can be found here&lt;/a&gt;.&amp;nbsp; You will find links to all parts of this series at the bottom under &amp;quot;Related Content&amp;quot;&lt;/p&gt; &lt;p&gt;With that said, this part in the series focuses on installing ColdFusion and configuring the webserver adapter in such a way that only specific Virtual Hosts will be set up to pass requests to the ColdFusion server.  First we want to start by creating a localhost site that is specific to ColdFusion 8 in Apache.&amp;nbsp; I tend to keep all my sites under /www which is actually symlinked to a &apos;www&apos; in my home directory. I find a few benefits in this.&amp;nbsp; First, I usually keep my home partition in shape and carry it around with me from distro to distro, so I always have my sites in tact with me.&amp;nbsp; Secondly since it is a symlink to my home and not in a system folder I don&apos;t need special permissions to write in it.&amp;nbsp; I will be following along this path, but if you keep your sites elsewhere, then you can adjust as necessary.  &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;$ mkdir /www/localhost.cf8&lt;/pre&gt;&lt;/div&gt;  Now, we will want to create an Apache virtual host definition for this site.&amp;nbsp; To do so, create a new configuration file like this: &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;$ sudo gedit /etc/apache2/sites-available/localhost.cf8&lt;/pre&gt;&lt;/div&gt;  Paste the the following, then save and close. &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;VirtualHost *&amp;gt;  ServerName localhost.cf8   &amp;lt;Directory /www/localhost.cf8/&amp;gt;   Options Indexes FollowSymLinks MultiViews   AllowOverride None   Order allow,deny   allow from all  &amp;lt;/Directory&amp;gt;  DocumentRoot /www/localhost.cf8 &amp;lt;/VirtualHost&amp;gt; &lt;/pre&gt;&lt;/div&gt;  Now we need to make sure that file is included when Apache starts, so run the following command which will make a symlink to the sites-enabled directory. &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;$  sudo a2ensite localhost.cf8 Site localhost.cf8 installed; run /etc/init.d/apache2 reload to enable.&lt;/pre&gt;&lt;/div&gt;  As you can see from the localhost.cf8 configuration file, we are expecting our ServerName to be localhost.cf8, so we now need to add that entry to our hosts file. &amp;nbsp; &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;$ sudo gedit /etc/hosts&lt;/pre&gt;&lt;/div&gt;  Append &amp;quot;localhost.cf8&amp;quot; (with no quotes!) to the line that begins with 127.0.0.1.&amp;nbsp; Save the file and close.  At this point you should be able to restart Apache and hit that empty site in your browser like this: &lt;a href=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-06.png&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-0-500.png&quot; style=&quot;max-width: 800px;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;    Now that we have a site ready, it is time for us to install ColdFusion.&amp;nbsp; Once you have downloaded the .bin installation file from Adobe, browse to that directory in a terminal window.&amp;nbsp; You may need to chmod the file to be executable, then launch it like this:&amp;nbsp;  &lt;span style=&quot;padding: 0pt 10px 10px 0pt;&quot;&gt;&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;$ chmod +x coldfusion-801-lin.bin  sudo ./coldfusion-801-lin.bin&lt;/pre&gt;&lt;/div&gt;&lt;/span&gt;  Choose 1 for English.&amp;nbsp;  &lt;a href=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-06.png&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf8-install-01-500.png&quot; style=&quot;max-width: 800px;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;  After the welcome screen, hit enter to continue.&amp;nbsp; Next type &amp;quot;Y&amp;quot; and hit enter to agree to the terms and conditions.  We are now faced with the installation type prompt. For this example of setting up a development environment, we will choose option 3 &amp;quot;Developer Edition&amp;quot;  For our purposes we are going to choose the &amp;quot;Server configuration&amp;quot; option.&amp;nbsp; However, it should be noted that you could quite easily choole the J2EE WAR file option and install into Tomcat as we did with OpenBlueDragon in Part 2 of thise series. &lt;a href=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-06.png&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf8-install-02-500.png&quot; style=&quot;max-width: 800px;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;  Since we are installing from scratch, we will choose &amp;quot;No&amp;quot; (2) on the next option which is asking if there is an existing version of ColdFusion 8 installed on this machine.  For this installation we do not want any of the extra options to install such as Documentation, LiveCycle, Search Services, nor do we want to start on system init since this is on my laptop and I may not always want ColdFusion to start at boot.&amp;nbsp; So we will uncheck all options like you see in this image and continue. &lt;a href=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-06.png&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-03-500.png&quot; style=&quot;max-width: 800px;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;  We are going to accept the default installation path of /opt/coldfusion8  Again, since this is a fresh installation, we are going to say &amp;quot;No&amp;quot; (2) to the prompt asking if there are earlier versions of ColdFusion on this computer.  Now we start to work our way into the webserver configuration which will tie ColdFusion into Apache.&amp;nbsp; To start, choose &amp;quot;Add Web Server Configuration&amp;quot; (1) when prompted, then choose &amp;quot;Apache&amp;quot; (1).&amp;nbsp; In the following prompt asking for the Apache directory that contains your http.conf file, enter /etc/apache2 as you see in the picture below: &lt;a href=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-06.png&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-04-500.png&quot; style=&quot;max-width: 800px;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;  For the location of the Apache program binary file, enter /usr/sbin/apache2.&amp;nbsp; For the Start/Stop script, enter /etc/init.d/apache2.&amp;nbsp; You will see both of these choices here: &lt;a href=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-06.png&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-05-500.png&quot; style=&quot;max-width: 800px;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;  We now return to the first webserver configuration menu and this time choose &amp;quot;Continue with installation&amp;quot; (4).   Then we will need to enter the location of the webroot.&amp;nbsp; We are going to enter the directory of our new site /www/localhost.cf8 that we created above as you can see in the picture below.&amp;nbsp; We will also be asked which user we would like ColdFusion to run as.&amp;nbsp; I typically like to use my own user account for this so I don&apos;t end up with permissions issues where I have difficulty accessing files generated by ColdFusion &lt;a href=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-06.png&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-06-500.png&quot; style=&quot;max-width: 800px;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;  Now enter your admin password, and if you choose to user RDS, enter the&amp;nbsp; password for it as well.  It will now show you the general options you have selected and you will hit enter to start the actual installation.&amp;nbsp; Once it completes and prompts you to &amp;quot;Press Enter to exit the installer&amp;quot;, do so and then start the server with this: &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;$ sudo /opt/coldfusion8/bin/coldfusion start&lt;/pre&gt;&lt;/div&gt;  During this stage you should see messages that it is configuring the webserver successfully, assuming we entered everything properly above.&amp;nbsp;  &lt;a href=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-07.png&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-07-500.png&quot; style=&quot;max-width: 800px;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;  Once you are returned to a prompt, it is time to go customize the Apache connector stuff just a bit.&amp;nbsp; open the httpd.conf file like this: &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;$ sudo gedit /etc/apache2/httpd.conf&lt;/pre&gt;&lt;/div&gt;  In that you will find the connector stuff that ColdFusion added starting with a line: #JRun Settings.  Before we take the next steps, let me explain a bit what we are going to do.&amp;nbsp; We are going to seperate this into two pieces: the module loader, and the actual connector declaration.&amp;nbsp; As it stands right now, and request coming through the webserver would be handled by ColdFusion and we don&apos;t really want that.&amp;nbsp; To make it more granular, we are going to create an include file that can be added to any site that will add the connector only to that particular site.&amp;nbsp; With that said, let&apos;s walk through it. &amp;nbsp;  *Cut* (not copy!) these two lines of that connector info: &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;# JRun Settings LoadModule jrun_module /opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.so&lt;/pre&gt;&lt;/div&gt;   Now we are going to paste those into a new file that will go in our mods-available directory.&amp;nbsp; Click on the &amp;quot;New&amp;quot; button in gedit and paste that text in.&amp;nbsp; Now save that file as&amp;nbsp; /etc/apache2/mods-available/cf8.load.  Now *cut* (not copy!) the remainder of the connector out that looks like this: &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;IfModule mod_jrun22.c&amp;gt;     JRunConfig Verbose false     JRunConfig Apialloc false     JRunConfig Ignoresuffixmap false     JRunConfig Serverstore /opt/coldfusion8/runtime/lib/wsconfig/1/jrunserver.store     JRunConfig Bootstrap 127.0.0.1:51801     #JRunConfig Errorurl url &amp;lt;optionally redirect to this URL on errors&amp;gt;     #JRunConfig ProxyRetryInterval 600 &amp;lt;number of seconds to wait before trying to reconnect to unreachable clustered server&amp;gt;     #JRunConfig ConnectTimeout 15 &amp;lt;number of seconds to wait on a socket connect to a jrun server&amp;gt;     #JRunConfig RecvTimeout 300 &amp;lt;number of seconds to wait on a socket receive to a jrun server&amp;gt;     #JRunConfig SendTimeout 15 &amp;lt;number of seconds to wait on a socket send to a jrun server&amp;gt;     AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf &amp;lt;/IfModule&amp;gt;&lt;/pre&gt;&lt;/div&gt;  Create a new file named /etc/apache2/cf8connector. Pasted that text in and save the file.  Lastly, you may not have this issue, but I found that the DirectoryIndex attribute of Apache was not adding index.cfm to the list of default files. Due to this I actually added it to my httpd.conf. After all of the steps above, my httpd.conf file only has a single line: &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;DirectoryIndex index.cfm&lt;/pre&gt;&lt;/div&gt;  Now... it is time to do just a little more Apache config and we are ready to go!&amp;nbsp; Rember that cf8.load mod file we created earlier?&amp;nbsp; Let&apos;s turn that on: &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;$ sudo a2enmod cf8&lt;/pre&gt;&lt;/div&gt;   Now, let&apos;s to add an include call to our localhost.cf8 virtual host configuration.&amp;nbsp; Open up /etc/apache2/sites-available/localhost.cf8 and add the &amp;quot;Include c8connector&amp;quot; line that you see below: &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;VirtualHost *&amp;gt;         ServerName localhost.cf8          &amp;lt;Directory /www/localhost.cf8/&amp;gt;                 Options Indexes FollowSymLinks MultiViews                 AllowOverride None                 Order allow,deny                 allow from all         &amp;lt;/Directory&amp;gt;         DocumentRoot /www/localhost.cf8         Include cf8connector &amp;lt;/VirtualHost&amp;gt;&lt;/pre&gt;&lt;/div&gt;  Once you have saved that file, it is time to restart Apache and test out all of our hard work! &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;$ sudo /etc/init.d/apache2 restart&lt;/pre&gt;&lt;/div&gt;  Now, using your browser, go to http://localhost.cf8/CFIDE/administrator/ and you will see the following: &lt;a href=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-admin1.png&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://dl.getdropbox.com/u/101948/blog/images/cf-install/cf-install-admin1-500.png&quot; style=&quot;max-width: 800px;&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;  Now... if you are following along from earlier in this series, you should now be able to successfully connect to OpenBD at http://localhost.bd and ColdFusion 8 at http://localhost.cf8  On the next part of this series, we will bring Railo into the mix and finally have all three running on our system.&lt;/p&gt; &lt;p&gt;Next - &lt;a href=&quot;http://daveshuck.instantspot.com/blog/2009/02/09/Setting-up-Apache-OpenBD-Railo-and-ColdFusion--Part-4--Installing-Railo-under-Tomcat-with-Apache-webserver&quot;&gt;Part 4 Installing Railo under Tomcat with Apache webserver&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 05 Feb 2009 04:35:00 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2009/02/04/Setting-up-Apache-OpenBD-Railo-and-ColdFusion--Part-3--Installing-ColdFusion-and-customizing-the-connector</guid><category>ColdFusion,Servers</category></item><item><title>Setting up Apache, OpenBD, Railo, and ColdFusion - Part 1</title><link>http://daveshuck.instantspot.com/blog/2009/02/01/Setting-up-Apache-OpenBD-Railo-and-ColdFusion--Part-1</link><description>&lt;p&gt;This is Part 1 of a muilt-part blog post demonstrating how run OpenBlueDragon, Railo, and ColdFusion all on the same machine, and all using the Apache webserver with individual Virtual hosts using different CFML engines.&amp;nbsp; But, before we get into it, here is a little background.&lt;br /&gt; &lt;br /&gt; For the past several months now I have stepped over to Windows on my laptop after years of not using it regularly.&amp;nbsp; It was actually the first time I had actually used Vista, actually and was quite an interesting experience.&amp;nbsp; First, as much as I love the Linux environment, I really expected to loathe being in Windows daily.&amp;nbsp; I was surprised at how much Vista *didn&apos;t* suck.&amp;nbsp; With all the raging passion against it in general I suppose that I had low expectations, but nevertheless I really thought it was pretty decent in general.&amp;nbsp; However it has a more sluggish, constricting feel to it in comparison to Linux, so I have decided I have paid my dues and it is time to go back to using an OS that is truly fun to use, rather than one that just wasn&apos;t as crappy as I thought it would be.&amp;nbsp; &lt;br /&gt; &lt;br /&gt; After lots of experimentation with various flavors, hands-down Ubuntu is the most painless and most comfortable Linux distros for me personally.&amp;nbsp; My reasoning for that is vast and probably belongs in another blog entry, so I will attempt to keep from straying any further off the topic!&amp;nbsp; That said, last night I decided to try gOS which is a really neat distro built off of Ubuntu.&amp;nbsp; Although the UI is Gnome based, it has more of a Max 10.5.x feel to it.&amp;nbsp; I think Mac folks would feel right at home taking this environment for a spin.&lt;br /&gt; &lt;br /&gt; Immediately after the first boot of my shiny new OS I started trying to put my development environment back together.&amp;nbsp; I decided that I wanted to have ColdFusion, Railo, and OpenBD all on from the beginning, with all requests first passing through Apache httpd.&amp;nbsp; Quite some time ago, Aaron Lynch put together some steps to install Smith Project w/Tomcat/Apache, which we have used several times since, primarily setting up Railo. I am not sure I ever would have waded my way through it without his early experimentation and documentation.&amp;nbsp; On this iteration, I loosely followed those instructions, opting for several packages from the repos, and updated versions of software, and have documented my steps as the are somewhat different in areas. For my current environment, I first installed OpenBD.&amp;nbsp; I then followed this by installing ColdFusion and setting it up to user the default JRUN connector that is set up during the installation.&amp;nbsp; Lastly, I installed Railo as another webapp in Tomcat and tied that into Apache as well.&amp;nbsp; &lt;br /&gt; &lt;br /&gt; In the following posts, you will see these steps in detail.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; Next:&amp;nbsp; &lt;a href=&quot;http://daveshuck.instantspot.com/blog/2009/02/01/Setting-up-Apache-OpenBD-Railo-and-ColdFusion--Part-2--Installing-TomcatApacheOpenBD&quot;&gt;Part 2 - Installing Tomcat/Apache/OpenBD&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 01 Feb 2009 07:33:00 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2009/02/01/Setting-up-Apache-OpenBD-Railo-and-ColdFusion--Part-1</guid><category>ColdFusion,Tips and Tricks,Servers</category></item><item><title>Aaron West&apos;s entry on SES URLs with Apache mod_rewrite</title><link>http://daveshuck.instantspot.com/blog/2008/01/17/Aaron-Wests-entry-on-SES-URLs-with-Apache-modrewrite</link><description>&lt;p&gt;Somehow I totally missed this entry when &lt;a href=&quot;http://www.trajiklyhip.com&quot; id=&quot;Aaron West&apos;s main blog page&quot;&gt;Aaron&lt;/a&gt; posted it until he mentioned it on the &lt;a href=&quot;http://groups.google.com/group/mach-ii-for-coldfusion&quot; id=&quot;Mach-II Email List&quot;&gt;Mach-II email list&lt;/a&gt; today.  He has written a really nice and very detailed blog entry on how to configure your application to use SES URLs with by using mod_rewrite in Apache, and then goes on to show how the flow continues to his &lt;a href=&quot;http://www.mach-ii.com&quot; id=&quot;Mach-II for ColdFusion&quot;&gt;Mach-II&lt;/a&gt; application.  We took some similar approaches with the URLs you see here on InstantSpot.&lt;/p&gt; &lt;p&gt;For those wondering how all these pieces fit togther, I strongly recommend you check out his blog entry entitled: &lt;a href=&quot;http://www.trajiklyhip.com/blog/index.cfm/2007/12/3/Using-Apaches-modrewrite-SES-URLs-and-More&quot;&gt;Using Apache&apos;s mod_rewrite: SES URL&apos;s and More&lt;/a&gt;.&lt;/p&gt;</description><pubDate>Thu, 17 Jan 2008 16:54:00 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2008/01/17/Aaron-Wests-entry-on-SES-URLs-with-Apache-modrewrite</guid><category>ColdFusion,Servers</category></item><item><title>Creating the equivalent of IIS Virtual Directories in Apache</title><link>http://daveshuck.instantspot.com/blog/2007/12/08/Creating-the-equivalent-of-IIS-Virtual-Directories-in-Apache</link><description>&lt;p&gt;  I have to admit that I used to be guilty of laziness on one aspect when I began using Linux/Apache a couple of years ago as a convert from Windows.  I didn&amp;#39;t immediately understand how to create the equivalent of virtual directories in Apache that are available in IIS.  I soon found that I could just do symbolic links at the file level that would effectively give me the same effect at the broswer request level.  However, one big negative is that there is a linked directory sitting there in the parent directory, which is a pain in the tail when it things like source control such as subversion comes into play.   When I browse to a directory in a terminal or my IDE, I don&amp;#39;t necessarily want to see it either.   The answer is to use the &amp;quot;Alias&amp;quot; directive in Apache.  &lt;/p&gt;  &lt;p&gt;  Example:  &lt;/p&gt;  &lt;p&gt;  As a ColdFusion developer, I like to have a CFIDE directory available in my webroot as I develop so that I can access the ColdFusion administrator.  I keep my CFIDE directory in /usr/local/apache2/htdocs/CFIDE.  &lt;/p&gt;  &lt;p&gt;  To make that available as a virtual directoy, I need to add the following to my Apache virtual host definition:  &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp; Alias /CFIDE /usr/local/apache2/htdocs/CFIDE&lt;br /&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Directory /usr/local/apache2/htdocs/CFIDE&amp;gt;&lt;br /&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp; Order allow,deny&lt;br /&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp; Allow from all&lt;br /&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Directory&amp;gt;&lt;br /&gt;  &lt;/p&gt;  &lt;p&gt;  Just remember to remove that one before you put it in production!   &lt;/p&gt;  </description><pubDate>Sun, 09 Dec 2007 01:36:20 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2007/12/08/Creating-the-equivalent-of-IIS-Virtual-Directories-in-Apache</guid><category>Servers</category></item><item><title>Problem installing VMWare Tools</title><link>http://daveshuck.instantspot.com/blog/2007/01/04/Problem-installing-VMWare-Tools</link><description>&lt;p&gt;  In the past year I have &amp;quot;discovered&amp;quot; how cool VMWare is.&amp;nbsp; This virtual machine software allows you to run a huge variety of operating systems as guests under your host operating system.&amp;nbsp; On my laptop, I have run ... errrr.... I mean I know someone who as run Mac OSX, a handful of different Linux distributions and even Windows.&amp;nbsp; For most supported operating systems, VMWare recommends that you click a menu option to install the VMWare tools on the guest operating system.&amp;nbsp; I have tried this repetitively but I always have the same result.&amp;nbsp; It acts like it is going to start doing some type of installation but just never advances.&amp;nbsp; If you look in the menu the option changes from &amp;quot;Install VMWare tools&amp;quot; to &amp;quot;Cancel Installation of VMWare Toos&amp;quot; so it thinks it is doing something.&amp;nbsp; Inevitably after 10 minutes or so, I give up and cancel. &amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  Tonight, however, I was a bit more curious.&amp;nbsp; I noticed that when I began the install the CD icon on the task bar flashed a bit.&amp;nbsp; After logging into the guest Windows operating system, I saw that the virtual CD was labeled VMWare.&amp;nbsp; When I clicked into it, I found the setup program for&amp;nbsp; VMWare tools.&amp;nbsp; It ran it without issue!  &lt;/p&gt;  &lt;p&gt;  I just thought I better document this in case anyone ran across the same situation. &lt;br /&gt;  &lt;/p&gt;  </description><pubDate>Fri, 05 Jan 2007 04:07:02 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2007/01/04/Problem-installing-VMWare-Tools</guid><category>Servers</category></item><item><title>Grand Canyon... It&apos;s on!</title><link>http://daveshuck.instantspot.com/blog/2005/07/11/Grand-Canyon-Its-on</link><description>My father and I decided that this was the year that we would hike the North Rim to the South Rim of the Grand Canyon.   I know this seems crazy, but it is actually a paperwork challenge to be able to hike the Grand Canyon.  There is an application process in which you have to fax your request in the 1st day of the month 6 months before the intended date of your trip with a detailed itinerary, including where you will be sleeping and when.  We sent faxed our paperwork in and held our breath on the 1st of April, 6 months before we hoped to go in September.  After no word for a month we finally contacted them, only to find out that we had been rejected.  Discouraged, but not beaten, we laid out the calendar to see if there was another time that would work.  We decided that November would be acceptable, albeit a little colder.  It should be in the 60s in the bottom of the canyon though where we will spend the majority of our time.  Once again, we laid out our itinerary and faxed in on July 1.  My dad received a letter today dated July 6, 2005 telling him that they were sorry, but they were unable to accept out application.  He spent a good hour walking around the house cussing and feeling terribly disappointed.  A bit later my mom noticed there was another letter from the Grand Canyon dated July 7, 2005.  &lt;br /&gt;  &lt;br /&gt;  &lt;div class=&quot;note&quot;&gt;  Dear Mr. Shuck, we have accepted your request to hike the Grand Canyon on the dates of November 1, 2 and 3, 2005.  Enlcosed are your passes, which you will need to affix to your backpack and carry with you in the canyon.  There is no need to stop by the back country headquarters before departing on the trail.  &lt;/div&gt;  So in 3.5 months, I will be taking this in....&lt;br /&gt;  &lt;div style=&quot;text-align: center&quot;&gt;  &lt;img src=&quot;/images/GrandCanyon.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;  &lt;/div&gt;      </description><pubDate>Mon, 11 Jul 2005 05:00:00 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2005/07/11/Grand-Canyon-Its-on</guid><category>Outdoors</category></item></channel></rss>