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

<channel>
	<title>mobile and gis dev notes &#187; coldfusion</title>
	<atom:link href="http:///wordpress/category/coldfusion/feed/" rel="self" type="application/rss+xml" />
	<link>/wordpress</link>
	<description>by rupert</description>
	<lastBuildDate>Sun, 22 Jan 2012 04:34:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ColdFusion Fonts</title>
		<link>/wordpress/2008/10/coldfusion-fonts/</link>
		<comments>/wordpress/2008/10/coldfusion-fonts/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 09:36:53 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[cf]]></category>

		<guid isPermaLink="false">/wordpress/?p=272</guid>
		<description><![CDATA[I was trying to make a chinese text drawn in an image. That worked flawlessly on my Mac. Upon svn updating my files in production, the characters in the image became squares again. First hunch was to change my file.encoding as from my previous post. But didn&#8217;t helped, so I changed the font from the [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to make a chinese text drawn in an image. That worked flawlessly on my Mac. Upon svn updating my files in production, the characters in the image became <em>squares</em> again.</p>
<p><img src="/wordpress/wp-content/uploads/2008/10/picture-4.png" alt="Picture 4.png" border="0" width="260" height="68" /></p>
<p>First hunch was to change my file.encoding as from my previous <a href="/wordpress/?p=93">post</a>.  But didn&#8217;t helped, so I changed the font from the CF code itself..</p>

<div class="wp_syntax"><div class="code"><pre class="coldfusion" style="font-family:monospace;"> &lt;cfset attr = StructNew() /&gt;
 &lt;cfset attr.size = 16 /&gt;
 &lt;cfset attr.style = &quot;plain&quot; /&gt;
 &lt;cfset attr.font = &quot;microsoft yahei&quot; /&gt;</pre></div></div>

<p>I noticed that using the obvious fonts (Arial, Tahoma) didn&#8217;t worked. It always complained it can&#8217;t find the font&#8230;</p>
<p><img src="/wordpress/wp-content/uploads/2008/10/picture-5.png" alt="Picture 5.png" border="0" width="460" height="329" /></p>
<p>I remember using msyh.ttf (Microsoft Yahei) in Mapserver for producing Chinese text. So what I did was, I copied msyh.ttf and dropped it in the coldfusion fonts directory (/opt/coldfusion8/runtime/jre/lib/fonts) then restarted coldfusion. Afterwards, I was able to see msyh.ttf from the Font Management of CFIDE Administrator. From there&#8230; I was able to display the image with Chinese Characters..</p>
<p><img src="/wordpress/wp-content/uploads/2008/10/picture-3.png" alt="Picture 3.png" border="0" width="264" height="72" /></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/10/coldfusion-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion: Specifying -Dfile.encoding</title>
		<link>/wordpress/2008/09/coldfusion-specifying-dfileencoding/</link>
		<comments>/wordpress/2008/09/coldfusion-specifying-dfileencoding/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 04:06:13 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[cf]]></category>
		<category><![CDATA[SMS]]></category>

		<guid isPermaLink="false">/wordpress/?p=262</guid>
		<description><![CDATA[I have a small project to use a jar file for sending/receiving SMS in chinese. I could send the SMS fine from Eclipse, so I thought creating a Java Class wrapper to be used by ColdFusion so it can be called from HTTP could do the trick. After a few minutes, I have the class [...]]]></description>
			<content:encoded><![CDATA[<p>I have a small project to use a jar file for sending/receiving SMS in chinese. I could send the SMS fine from Eclipse, so I thought creating a Java Class wrapper to be used by ColdFusion so it can be called from HTTP could do the trick.</p>
<p>After a few minutes, I have the class up and running and fully tested within Eclipse. </p>
<p>1. I dropped the class, dll and its jar in C:\ColdFusion8\lib. Take note its a Windows box, since the Jar is using a dll to talk to the Wavecom modem using AT commands.</p>
<p>GSMModem.jar<br />
GSMMultiPort.dll<br />
GSMMultiPortForJ.dll</p>
<p>2. The crux was to specify the file.encoding for Java as an argument from the CFIDE Administrator. After specifying GB18030, a quick restart.. voila.. </p>
<pre>
Java Version  	 1.6.0_01
Java Vendor 	Sun Microsystems Inc.
Java Vendor URL 	http://java.sun.com/
Java Home 	C:\ColdFusion8\runtime\jre
Java File Encoding 	GB18030
Java Default Locale 	en_US
File Separator 	\
Path Separator 	;
Line Separator 	Chr(13)
User Name 	SYSTEM
User Home 	C:\
</pre>
<p>Files:<br />
<a href="/wordpress/wp-content/uploads/2008/09/cfsendjava.txt" title="CFSend.java.txt">CFSend.java</a></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/09/coldfusion-specifying-dfileencoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion CheatSheet</title>
		<link>/wordpress/2008/01/coldfusion-cheatsheet/</link>
		<comments>/wordpress/2008/01/coldfusion-cheatsheet/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 13:12:19 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[cf]]></category>

		<guid isPermaLink="false">/wordpress/?p=133</guid>
		<description><![CDATA[There are many coldfusion programming techniques that I always grep/search in my applications. It is time to put them all in one place. 1. How to set different alternating row colors?]]></description>
			<content:encoded><![CDATA[<p>There are many coldfusion programming techniques that I always grep/search in my applications. It is time to put them all in one place.</p>
<p><strong>1. How to set different alternating row colors?</strong><br />
<code><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/01/coldfusion-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading to ColdFusion8</title>
		<link>/wordpress/2007/08/upgrading-to-coldfusion8/</link>
		<comments>/wordpress/2007/08/upgrading-to-coldfusion8/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 18:32:52 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[cf]]></category>

		<guid isPermaLink="false">/wordpress/?p=100</guid>
		<description><![CDATA[I had the liberty of upgrading to ColdFusion 8. Works smoothly&#8230; Install took some time. Memory peaks instantly at 250M Binding to Apache2.2 was seamless. No need to use the updated wsconfig.jar New ColdFusion Administrator. Debugging looks promising&#8230;]]></description>
			<content:encoded><![CDATA[<p>I had the liberty of upgrading to ColdFusion 8. Works smoothly&#8230;</p>
<ul>
<li>Install took some time.</li>
<li>Memory peaks instantly at 250M</li>
<li>Binding to Apache2.2 was seamless. No need to use the updated wsconfig.jar</li>
<li>New ColdFusion Administrator. Debugging looks promising&#8230;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/08/upgrading-to-coldfusion8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing CFMX7 on CentOS5</title>
		<link>/wordpress/2007/07/installing-cfmx7-on-centos5/</link>
		<comments>/wordpress/2007/07/installing-cfmx7-on-centos5/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 20:25:30 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[cf]]></category>

		<guid isPermaLink="false">/wordpress/?p=76</guid>
		<description><![CDATA[1. You need to install libXpm beforehand to save time in the Graphing Service Error Problems. rpm -ivh libXpm-3.5.5-3.i386.rpm 2. Modify the installer. cat coldfusion-702-linux.bin.backup &#124; sed &#8220;s/export LD_ASSUME/#xport LD_ASSUME/&#8221; &#62; coldfusion-702-linux.bin Reference: http://www.billmitchell.org/coldfusion/centos5/mx7_apache.php POST-INSTALL 1. Disable Verity search if you don&#8217;t use it. chkconfig cfmx7search off]]></description>
			<content:encoded><![CDATA[<p>1. You need to install libXpm beforehand to save time in the Graphing Service Error Problems.</p>
<p><code><br />
rpm -ivh libXpm-3.5.5-3.i386.rpm<br />
</code></p>
<p>2. Modify the installer.<br />
cat coldfusion-702-linux.bin.backup | sed &#8220;s/export LD_ASSUME/#xport LD_ASSUME/&#8221; &gt; coldfusion-702-linux.bin</p>
<p><strong>Reference:</strong> <a href="http://www.billmitchell.org/coldfusion/centos5/mx7_apache.php">http://www.billmitchell.org/coldfusion/centos5/mx7_apache.php</a></p>
<p>POST-INSTALL</p>
<p>1. Disable Verity search if you don&#8217;t use it.<br />
<code><br />
chkconfig cfmx7search off<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/07/installing-cfmx7-on-centos5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing CFCs using UML with Poseidon</title>
		<link>/wordpress/2007/02/writing-cfcs-using-uml-with-poseidon/</link>
		<comments>/wordpress/2007/02/writing-cfcs-using-uml-with-poseidon/#comments</comments>
		<pubDate>Sun, 04 Feb 2007 11:26:44 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[cf]]></category>
		<category><![CDATA[uml]]></category>

		<guid isPermaLink="false">/wordpress/?p=33</guid>
		<description><![CDATA[It seems the xmi2cfc tool from cfcxmi.tigris.org works only for Poseidon 2.x versions. The visio works well and poseidon can export the xmi as well but I still encounter problems during the xmi to cfc conversion. I just bought a 1GB ram for my notebook since Poseidon peaks at 200MB. How to create cfc&#8217;s with [...]]]></description>
			<content:encoded><![CDATA[<p>It seems the xmi2cfc tool from cfcxmi.tigris.org works only for Poseidon 2.x versions. The visio works well and poseidon can export the xmi as well but I still encounter problems during the xmi to cfc conversion.</p>
<p>I just bought a 1GB ram for my notebook since Poseidon peaks at 200MB. How to create cfc&#8217;s with Poseidon?</p>
<p>1. Download and install Poseidon. Im using Poseidon 5 Professional.<br />
2. Download the poseidon custom templates from <a href="http://cfcxmi.tigris.org/">http://cfcxmi.tigris.org/</a>.<br />
3. Extract it to Poseidon/lib/. You should have the ff directories:</p>
<p>Poseidon/<br />
lib/<br />
custom/</p>
<p>4. Start poseidon<br />
5. Click on &#8220;Generation&#8221; -&gt; &#8220;Java&#8221;<br />
6. Click on the ellipses tool and point to the custom templates.<br />
7. &#8220;Apply&#8221; the settings.<br />
8. Create your class<br />
9. Click on the source code to view your cfc.</p>
<p>I have made some changes to the templates to reflect the output=&#8221;false&#8221; and required=&#8221;true&#8221;. You can download the templates from <a href="/wordpress/images/custom.zip">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/02/writing-cfcs-using-uml-with-poseidon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Verbose Installation of ColdFusion and Apache in Linux</title>
		<link>/wordpress/2007/01/verbose-installation-of-coldfusion-and-apache/</link>
		<comments>/wordpress/2007/01/verbose-installation-of-coldfusion-and-apache/#comments</comments>
		<pubDate>Thu, 18 Jan 2007 03:10:51 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cf]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">/wordpress/?p=23</guid>
		<description><![CDATA[You would find all the installers here: http://192.168.1.10/installers/ 1. Edit hosts file as follows: [root@appserver php]# more /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 192.168.1.10 appserver 2. Edit your host as follows: [root@appserver php]# more /etc/sysconfig/network NETWORKING=yes HOSTNAME=appserver GATEWAY=192.168.1.1 3. Apache: [...]]]></description>
			<content:encoded><![CDATA[<p>You would find all the installers here:</p>
<p>http://192.168.1.10/installers/</p>
<p>1. Edit hosts file as follows:</p>
<p>[root@appserver php]# more /etc/hosts</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Do not remove the following line, or various programs</span>
<span style="color: #666666; font-style: italic;"># that require network functionality will fail.</span>
127.0.0.1               localhost.localdomain localhost
192.168.1.10            appserver</pre></div></div>

<p>2. Edit your host as follows:<br />
[root@appserver php]# more /etc/sysconfig/network</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">NETWORKING</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #007800;">HOSTNAME</span>=appserver
<span style="color: #007800;">GATEWAY</span>=192.168.1.1</pre></div></div>

<p>3. Apache:</p>
<p>http://192.168.1.10/installers/httpd-2.0.58.tar.gz</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># tar -zxvf httpd-2.0.58.tar.gz</span>
<span style="color: #666666; font-style: italic;"># cd httpd-2.0.58</span>
<span style="color: #666666; font-style: italic;"># ./configure --help</span>
<span style="color: #666666; font-style: italic;"># ./configure --prefix=/usr/local/apache2 --enable-so --with-mpm=prefork --enable-rewrite</span>
<span style="color: #666666; font-style: italic;"># make</span>
<span style="color: #666666; font-style: italic;"># make install</span></pre></div></div>

<p>3.1 Starting apache2 on boot</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#cd /usr/local/apache2/bin</span>
<span style="color: #666666; font-style: italic;">#cp -Rf apachectl /etc/init.d/httpd</span></pre></div></div>

<p>3.2 Edit httpd as follows</p>
<p>#cd /etc/init.d<br />
#vi httpd</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;"># chkconfig: 35 80 15</span>
<span style="color: #666666; font-style: italic;"># processname: httpd</span>
<span style="color: #666666; font-style: italic;"># description: httpd</span>
<span style="color: #666666; font-style: italic;"># Copyright 2000-2005 The Apache Software Foundation or its licensors, as</span>
<span style="color: #666666; font-style: italic;"># applicable.</span></pre></div></div>

<p>3.3 create runlevels for httpd</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#/sbin/chkconfig --add httpd</span>
<span style="color: #666666; font-style: italic;">#/sbin/chkconfig --level 345 httpd on</span>
<span style="color: #666666; font-style: italic;">#/etc/init.d/httpd start</span></pre></div></div>

<p>4. ColdFusion<br />
4.1 Download http://192.168.1.10/installers/coldfusion-61-lin.bin<br />
# chmod +x coldfusion-61-lin.bin</p>
<p>4.2 Run installer<br />
# ./coldfusion-61-lin.bin</p>
<p>4.3 ColdFusion install:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Launching installer...
&nbsp;
Preparing CONSOLE Mode Installation...
&nbsp;
===============================================================================
Choose Locale...
<span style="color: #660033;">----------------</span>
&nbsp;
  -<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000;">1</span>- English
&nbsp;
CHOOSE LOCALE BY NUMBER: <span style="color: #000000;">1</span>
&nbsp;
DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT?
    <span style="color: #7a0874; font-weight: bold;">&#40;</span>Y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#41;</span> : Y
&nbsp;
The installer has found the following errors<span style="color: #000000; font-weight: bold;">/</span>warnings:
&nbsp;
Warning: C++ compatibility pack
&nbsp;
The installer was unable to determine <span style="color: #000000; font-weight: bold;">if</span> the C++ compatibility pack is
installed by running the following <span style="color: #7a0874; font-weight: bold;">command</span>: rpm <span style="color: #660033;">--query</span> compat-libstdc++
If this machine uses a version of glibc that is 2.2.5.x or higher the
compatibility pack is necessary <span style="color: #000000; font-weight: bold;">for</span> C++ custom tags, Verity, and web server
connectors to work properly.
&nbsp;
For <span style="color: #c20cb9; font-weight: bold;">more</span> information see the installation manual at
http:<span style="color: #000000; font-weight: bold;">//</span>www.macromedia.com<span style="color: #000000; font-weight: bold;">/</span>go<span style="color: #000000; font-weight: bold;">/</span>livedocs_cfmx61docs
&nbsp;
PRESS  TO CONTINUE WITH THE INSTALLER:
&nbsp;
===============================================================================
Existing Macromedia ColdFusion MX Installation?
<span style="color: #660033;">-----------------------------------------------</span>
&nbsp;
You cannot <span style="color: #c20cb9; font-weight: bold;">install</span> a new installation of Macromedia ColdFusion MX <span style="color: #000000;">6.1</span> <span style="color: #000000; font-weight: bold;">if</span> you
have an existing version of Macromedia ColdFusion MX installed on this
computer.
&nbsp;
If you <span style="color: #000000; font-weight: bold;">do</span> have a previous version installed, the installer can update your
current current installation to Macromedia ColdFusion MX 6.1.
&nbsp;
Is there already a version of Macromedia ColdFusion MX installed on this
   computer? <span style="color: #7a0874; font-weight: bold;">&#40;</span>Y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#41;</span>: N
===============================================================================
Install Type
<span style="color: #660033;">------------</span>
&nbsp;
Choose the <span style="color: #7a0874; font-weight: bold;">type</span> of Macromedia ColdFusion MX installation you want to perform:
&nbsp;
  -<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000;">1</span>- Install new version of ColdFusion MX
    <span style="color: #000000;">2</span>- <span style="color: #000000;">30</span>-day trial <span style="color: #7a0874; font-weight: bold;">&#40;</span>Enterprise Edition<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #000000;">3</span>- Developer Edition <span style="color: #7a0874; font-weight: bold;">&#40;</span>Single-IP Only<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
Installation Choice: <span style="color: #000000;">1</span>
&nbsp;
Serial Number: CED600-<span style="color: #000000;">18040</span>-<span style="color: #000000;">87264</span>-<span style="color: #000000;">92597</span>
&nbsp;
===============================================================================
Install Configuration
<span style="color: #660033;">---------------------</span>
&nbsp;
What kind of installation <span style="color: #000000; font-weight: bold;">do</span> you want?
&nbsp;
  -<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000;">1</span>- Server configuration
    <span style="color: #000000;">2</span>- J2EE configuration <span style="color: #7a0874; font-weight: bold;">&#40;</span>ColdFusion MX with JRun <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #000000;">3</span>- J2EE configuration <span style="color: #7a0874; font-weight: bold;">&#40;</span>EAR <span style="color: #c20cb9; font-weight: bold;">file</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #000000;">4</span>- J2EE configuration <span style="color: #7a0874; font-weight: bold;">&#40;</span>WAR <span style="color: #c20cb9; font-weight: bold;">file</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
Please choose one of the following options: <span style="color: #000000;">1</span>
&nbsp;
===============================================================================
Choose Install Folder
<span style="color: #660033;">---------------------</span>
&nbsp;
Select the directory <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #c20cb9; font-weight: bold;">which</span> to <span style="color: #c20cb9; font-weight: bold;">install</span> Macromedia ColdFusion MX.
&nbsp;
Directory:
&nbsp;
  Default Install Folder: <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx
&nbsp;
ENTER AN ABSOLUTE PATH, OR PRESS  TO ACCEPT THE DEFAULT
: <span style="color: #7a0874; font-weight: bold;">&#91;</span>just press enter<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
===============================================================================
Existing ColdFusion <span style="color: #000000;">4.5</span> or <span style="color: #000000;">5</span> Installation?
<span style="color: #660033;">------------------------------------------</span>
&nbsp;
The installer can migrate your settings from ColdFusion <span style="color: #000000;">4.5</span> or <span style="color: #000000;">5</span> <span style="color: #000000; font-weight: bold;">if</span> you have
an
installation on this computer.
&nbsp;
Is there a version of ColdFusion <span style="color: #000000;">4.5</span> or <span style="color: #000000;">5</span> installed on this computer? <span style="color: #7a0874; font-weight: bold;">&#40;</span>Y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#41;</span> N
&nbsp;
===============================================================================
Configure Web Servers
<span style="color: #660033;">---------------------</span>
&nbsp;
Please configure your webserver<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>.  If you <span style="color: #000000; font-weight: bold;">do</span> not configure a webserver the
built-in webserver will be used on port 8500.
&nbsp;
    <span style="color: #000000;">1</span>- Add Web Server Configuration
  -<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000;">2</span>- Continue with installation
&nbsp;
Choice: <span style="color: #000000;">2</span>
&nbsp;
===============================================================================
Runtime User
<span style="color: #660033;">------------</span>
&nbsp;
Enter the name of the runtime user.   This user must exist already on the
system.
&nbsp;
User Name: <span style="color: #7a0874; font-weight: bold;">&#40;</span>DEFAULT: nobody<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #7a0874; font-weight: bold;">&#91;</span>enter<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
===============================================================================
Init System
<span style="color: #660033;">-----------</span>
&nbsp;
Would you like ColdFusion MX to start at System Boot? Please note, this is
only supported on Solaris and Red Hat Linux. If you answer no to this, you can add
ColdFusion MX to system boot post <span style="color: #c20cb9; font-weight: bold;">install</span> by running
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>cfmx-init.sh
&nbsp;
Answer <span style="color: #7a0874; font-weight: bold;">&#40;</span>Y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#41;</span>: Y
&nbsp;
===============================================================================
Administrator Password
<span style="color: #660033;">----------------------</span>
&nbsp;
Enter the password you will use to control access to the ColdFusion MX
Administrator.
&nbsp;
This field is required.
&nbsp;
Password:
Confirm Password:
&nbsp;
===============================================================================
Installation Confirmation
<span style="color: #660033;">-------------------------</span>
&nbsp;
Installation Type:
  Server configuration
&nbsp;
Licensing:
  Fully Licensed Edition
  Serial Number: CED600-<span style="color: #000000;">18040</span>-<span style="color: #000000;">87264</span>-<span style="color: #000000;">92597</span>
&nbsp;
Install Directories:
  Product: <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx
  Web root: <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>wwwroot
&nbsp;
Server Information:
  Web Server: Built-in Web Server
  Port: <span style="color: #000000;">8500</span>
&nbsp;
Disk Space Information <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">for</span> Installation Target<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
  Required: <span style="color: #000000;">433</span>,<span style="color: #000000;">293</span>,<span style="color: #000000;">879</span> bytes
  Available: <span style="color: #000000;">25</span>,<span style="color: #000000;">831</span>,<span style="color: #000000;">923</span>,<span style="color: #000000;">712</span> bytes
&nbsp;
PRESS  TO CONTINUE:
<span style="color: #7a0874; font-weight: bold;">&#91;</span>enter<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
PRESS  TO CONTINUE:
&nbsp;
===============================================================================
Installing...
<span style="color: #660033;">-------------</span>
&nbsp;
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>==================<span style="color: #000000; font-weight: bold;">|</span>==================<span style="color: #000000; font-weight: bold;">|</span>==================<span style="color: #000000; font-weight: bold;">|</span>==================<span style="color: #7a0874; font-weight: bold;">&#93;</span>
 <span style="color: #7a0874; font-weight: bold;">&#91;</span>------------------<span style="color: #000000; font-weight: bold;">|</span>------------------<span style="color: #000000; font-weight: bold;">|</span>------------------<span style="color: #000000; font-weight: bold;">|</span>------------------<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
===============================================================================
Installation Complete
<span style="color: #660033;">---------------------</span>
&nbsp;
You have successfully completed the first step <span style="color: #000000; font-weight: bold;">in</span> installing Macromedia
ColdFusion MX.
&nbsp;
To <span style="color: #7a0874; font-weight: bold;">continue</span> with your installation, go to <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>bin and <span style="color: #7a0874; font-weight: bold;">type</span>
<span style="color: #ff0000;">&quot;./coldfusion start&quot;</span> to start your server.
&nbsp;
Once the server is started log <span style="color: #000000; font-weight: bold;">in</span> to the Configuration Wizard at
http:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>machinename<span style="color: #7a0874; font-weight: bold;">&#93;</span>:<span style="color: #000000;">8500</span><span style="color: #000000; font-weight: bold;">/</span>CFIDE<span style="color: #000000; font-weight: bold;">/</span>administrator<span style="color: #000000; font-weight: bold;">/</span>index.cfm
&nbsp;
PRESS  TO EXIT THE INSTALLER:</pre></div></div>

<p>5. Start coldfusion<br />
# /etc/init.d/coldfusionmx start<br />
Starting ColdFusion MX&#8230;<br />
There may be a few moments before you can access the ColdFusion MX administrator. This is normal.<br />
======================================================================<br />
ColdFusion MX has been started.<br />
ColdFusion MX will write logs to /opt/coldfusionmx/logs/cfserver.log<br />
======================================================================</p>
<p>6. Bind ColdFusion with Apache.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$JAVA_EXECUTABLE</span> <span style="color: #660033;">-jar</span> <span style="color: #007800;">$CF_DIR</span><span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig.jar \
        <span style="color: #660033;">-ws</span> apache \
        <span style="color: #660033;">-dir</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>conf \
        <span style="color: #660033;">-bin</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>httpd \
        <span style="color: #660033;">-script</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apachectl \
        <span style="color: #660033;">-coldfusion</span> <span style="color: #660033;">-v</span></pre></div></div>

<p><code><br />
[root@appserver /]#  cd /opt/coldfusionmx/bin/connectors/<br />
[root@appserver connectors]# ls<br />
apache_connector.sh  connectorslist.sh  iplanet_connector.sh  remove_all_connectors.sh  upgrade_all_connectors.sh<br />
[root@appserver connectors]# sh -v apache_connector.sh<br />
</code></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">You can check <span style="color: #000000; font-weight: bold;">if</span> your binding is successfull <span style="color: #000000; font-weight: bold;">if</span> you see the ff
messages:
&nbsp;
Found JRun server default at 127.0.0.1:<span style="color: #000000;">2901</span>
CentOS release <span style="color: #000000;">4.4</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Final<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Detected Red Hat Linux release <span style="color: #000000;">7</span> or lower
Using Apache binary <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>httpd
Server version: Apache<span style="color: #000000; font-weight: bold;">/</span>2.0.58
Apache 2.0.58 is supported
Using Apache control script <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apachectl
Parsing Apache configuration <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf
Exec<span style="color: #ff0000;">'ing chmod 777 /opt/coldfusionmx/runtime/lib/wsconfig/1
Set permission to 777 on /opt/coldfusionmx/runtime/lib/wsconfig/1
Exec'</span>ing <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>mod_jrun20.so
Set permission to execute on <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>mod_jrun20.so
Created <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>mod_jrun20.so
Wrote <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf
Added JRun configuration to Apache configuration <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf
Created <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>README.txt
Wrote <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span>wsconfig.properties
Exec<span style="color: #ff0000;">'ing /usr/local/apache2/bin/apachectl restart
httpd: Could not determine the server'</span>s fully qualified domain name, using 127.0.0.1 <span style="color: #000000; font-weight: bold;">for</span> ServerName
Restarted Apache server
The Apache connector was installed to <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>conf</pre></div></div>

<p>7. Your httpd.conf file should contain the ff:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">------------------------httpd.conf------------------------------
<span style="color: #666666; font-style: italic;"># NOTE: DO NOT ATTEMPT TO PUT THIS IN YOUR HTTPD.CONF MANUALLY.</span>
LoadModule jrun_module <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>mod_jrun20.so
&nbsp;
    JRunConfig Verbose <span style="color: #c20cb9; font-weight: bold;">false</span>
    JRunConfig Apialloc <span style="color: #c20cb9; font-weight: bold;">false</span>
    JRunConfig Ssl <span style="color: #c20cb9; font-weight: bold;">false</span>
    JRunConfig Ignoresuffixmap <span style="color: #c20cb9; font-weight: bold;">false</span>
    JRunConfig Serverstore <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusionmx<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>wsconfig<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>jrunserver.store
    JRunConfig Bootstrap 127.0.0.1:<span style="color: #000000;">51010</span>
    <span style="color: #666666; font-style: italic;">#JRunConfig Errorurl</span>
    AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc</pre></div></div>

<p>8. Copy ColdFusion Administrator to your webroot<br />
# cd /usr/local/apache2/htdocs<br />
# rm -Rf *<br />
# cp -Rf /opt/coldfusionmx/wwwroot/CFIDE .<br />
# ln -s CFIDE cfide</p>
<p>Open your browse and point to: http://192.168.1.15/cfide/administrator/</p>
<p>9. CFADMIN settings:<br />
- Check Disable RDS Services. Press Next<br />
- Install Documents: Yes. Press Next<br />
- OK</p>
<p>10. Copy cfdocs to webroot:<br />
# cp -Rf /opt/coldfusionmx/wwwroot/cfdocs /usr/local/apache2/htdocs/</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/01/verbose-installation-of-coldfusion-and-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

