<?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>OpenKB::Server Technical Papers &#187; ColdFusion</title>
	<atom:link href="http://www.openkb.org/category/coldfusion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openkb.org</link>
	<description>Computer , server issues and solutions</description>
	<lastBuildDate>Sat, 17 Jul 2010 21:16:22 +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 security flaw: ColdFusion 8 input sanitization issue</title>
		<link>http://www.openkb.org/coldfusion-security-flaw-coldfusion-8-input-sanitization-issue/</link>
		<comments>http://www.openkb.org/coldfusion-security-flaw-coldfusion-8-input-sanitization-issue/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 00:54:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=633</guid>
		<description><![CDATA[   /CFIDE/scripts/ajax/FCKeditor/editor/filemanager/connectors/cfm/upload.cfm  CVE number: CVE-2009-2265 SUMMARY A vulnerability in FCKEditor, which is included as part of ColdFusion 8, could allow a remote attacker to upload files in arbitrary directories which could lead to a system compromise. This issue is remotely exploitable. There are reports that this issue is being exploited in the wild.  SUMMARY  A [...]]]></description>
			<content:encoded><![CDATA[<p> </p>
<div id="_mcePaste" style="position: absolute; left: -10000px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; top: 0px;"> /CFIDE/scripts/ajax/FCKeditor/editor/filemanager/connectors/cfm/upload.cfm </div>
<div id="_mcePaste" style="position: absolute; left: -10000px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; top: 0px;">CVE number: CVE-2009-2265</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; top: 0px;">SUMMARY A vulnerability in FCKEditor, which is included as part of ColdFusion 8, could allow a remote attacker to upload files in arbitrary directories which could lead to a system compromise. This issue is remotely exploitable. There are reports that this issue is being exploited in the wild.  SUMMARY  A vulnerability in FCKEditor, which is included as part of ColdFusion 8, could allow a remote attacker to upload files in arbitrary directories which could lead to a system compromise. This issue is remotely exploitable. There are reports that this issue is being exploited in the wild.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; top: 0px;">Hotfix</div>
<p> /CFIDE/scripts/ajax/FCKeditor/editor/filemanager/connectors/cfm/upload.cfm </p>
<p>CVE number: CVE-2009-2265</p>
<p>SUMMARY A vulnerability in FCKEditor, which is included as part of ColdFusion 8, could allow a remote attacker to upload files in arbitrary directories which could lead to a system compromise. This issue is remotely exploitable. There are reports that this issue is being exploited in the wild.  SUMMARY  A vulnerability in FCKEditor, which is included as part of ColdFusion 8, could allow a remote attacker to upload files in arbitrary directories which could lead to a system compromise. This issue is remotely exploitable. There are reports that this issue is being exploited in the wild.</p>
<p><a href="http://www.adobe.com/support/security/bulletins/apsb09-09.html" target="_blank">Hotfix</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/coldfusion-security-flaw-coldfusion-8-input-sanitization-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java out of memory , UNABLE TO CREATE NEW NATIVE THREAD</title>
		<link>http://www.openkb.org/java-out-of-memory-unable-to-create-new-native-thread/</link>
		<comments>http://www.openkb.org/java-out-of-memory-unable-to-create-new-native-thread/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 16:40:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=536</guid>
		<description><![CDATA[Errror: JAVA.LANG.OUTOFMEMORYERROR: UNABLE TO CREATE NEW NATIVE THREAD&#8221; Within a shared environment the server resources are shared across the virtual website that are on the server. The memory error you were seeing was due to the available Java threads on the server. This means the server did not have enough resources to process your request [...]]]></description>
			<content:encoded><![CDATA[<p>Errror: JAVA.LANG.OUTOFMEMORYERROR: UNABLE TO CREATE NEW NATIVE THREAD&#8221;</p>
<p>Within a shared environment the server resources are shared across the virtual website that are on the server. The memory error you were seeing was due to the available Java threads on the server. This means the server did not have enough resources to process your request at that time. You should not encounter this error is the Coldfusion service is restarted daily. </p>
<p>Interesting Read from http://www.egilh.com/blog/archive/2006/06/09/2811.aspx</p>
<p>also Check this <a href="http://jroller.com/rreyelts/date/20040909">Article out</a></p>
<p>&#8220;I recently came across this exception on a couple of java systems that use many threads  java.lang.OutOfMemoryError: unable to create new native thread. The strange thing was that the JVM had been assigned a lot of memory (1.5GB) and that it had at least half the memory available. Michele found this article that points out that the more memory you give to the JVM the more likely you are to get java.lang.OutOfMemoryError: unable to create new native thread exceptions when you have many threads.<br />
Which makes perfect sense when you think about it. Each 32 bit process on Windows has 2GB &#8220;available&#8221; memory as 2GB is reserved to Windows. In my case the JVM grabbed 1.5 GB leaving 500MB. Part of the 500MB was used to map system dlls etc in memory so less than 400 MB was left. Now to the crucial point: When you create a thread in java it creates a Thread object in the JVM memory but it also creates a operating system thread. The operating system creates the thread with a thread stack in the 400MB that is left, not in the 1.5 GB allocated in the JVM. Java 1.4 uses a default stack size of 256kb but Java 1.5 uses a 1MB stack per thread. So, in the 400MB left to process I could only generate ~400 threads. Absurd but true: to create more threads you have to reduce the memory allocated to the JVM. Another option is to host the JVM in your own process using JNI.<br />
This formula gives a decent estimate for the number of threads you can create:<br />
(MaxProcessMemory &#8211; JVMMemory &#8211; ReservedOsMemory) / (ThreadStackSize) = Number of threads<br />
For Java 1.5 I get the following results assuming that the OS reserves about 120MB:<br />
1.5GB allocated to JVM: (2GB-1.5Gb-120MB)/(1MB) = ~380 threads<br />
1.0GB allocated to JVM: (2GB-1.0Gb-120MB)/(1MB) = ~880 threads<br />
Java 1.4 uses 256kb for the thread stack which lets you create a lot more threads:<br />
1.5GB allocated to JVM: ~1520 threads<br />
1.0GB allocated to JVM: ~3520 threads<br />
I have not tried the 3GB switch but it should in theory let you create more threads.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/java-out-of-memory-unable-to-create-new-native-thread/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coldfusion: DSN &#8211; Access 2007 extension .accdb</title>
		<link>http://www.openkb.org/coldfusion-access-2007-extension-accdb/</link>
		<comments>http://www.openkb.org/coldfusion-access-2007-extension-accdb/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 19:49:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=453</guid>
		<description><![CDATA[Wow ,this by far is the bet article I have came across Possible error : [Microsoft][ODBC Microsoft Access Driver] Could not find file &#8216;(unknown)&#8217;. excerpt: With Microsoft Office 2007, Microsoft strikes again and implements a new format for their Access database standard. I do not recommend using Microsoft Access databases for production applications. In fact, I believe [...]]]></description>
			<content:encoded><![CDATA[<p>Wow  ,this by far is the bet article I have came across</p>
<p>Possible error : [Microsoft][ODBC Microsoft Access Driver] Could not find file &#8216;(unknown)&#8217;.</p>
<p>excerpt:<br />
With Microsoft Office 2007, Microsoft strikes again and implements a new format for their Access database standard. I do <span style="text-decoration: underline;">not</span> recommend using Microsoft Access databases for production applications. In fact, I believe you will pay, sooner or later, for adopting such a practice. Nevertheless, it is useful for testing or development at times, and more importantly, you may be in a situation like me, where there are databases that you do not “own” or control but your ColdFusion apps must use them.</p>
<p>That said, please note that the drivers that come with CF8 do not support Access 2007. This is mentioned in the <a href="http://www.adobe.com/support/documentation/en/coldfusion/8/releasenotes.pdf" target="_blank">ColdFusion 8 Release Notes</a> under #69495. The solution is nicely described right in the release notes. Download and install the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7554F536-8C28-4598-9B72-EF94E038C891" target="_blank">Data Connectivity Components for Office 2007</a>, set up a Windows ODBC connection, and use ColdFusion’s ODBC socket driver to connect to the Windows ODBC connection. A bit irritating that all of this has to be done, but like I said at the outset, these irritants are the price you pay, among other things, when using Access databases.</p>
<p>Another point to note! You thought you were done, but no, Microsoft has more joy in store for some of us.  The Office 2007 drivers do not support Windows 2000. So if your server is still sitting on a Windows 2000 installation, the final word is either (a) No Access 2007 for you, or (b) Time to upgrade to Windows 2003 SP1 or later.</p>
<p> </p>
<p>esasy work around from O?uz</p>
<p>You can use JDBC to connect Access 2007.</p>
<p>- Select “other” for DSN in CF admin,<br />
- JDBC URL: jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=c:/od/test.accdb;”;<br />
- Driver Class: sun.jdbc.odbc.JdbcOdbcDriver</p>
<p>But this config does not support Unicode as expected<br />
<a href="http://blog.crankybit.com/msaccess2007-and-cf8/"> Reference </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/coldfusion-access-2007-extension-accdb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Error, &#8220;java.sql.SQLException: Value &#8217;0000-00-00&#8242;</title>
		<link>http://www.openkb.org/mysql-error-javasqlsqlexception-value-0000-00-00/</link>
		<comments>http://www.openkb.org/mysql-error-javasqlsqlexception-value-0000-00-00/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 23:36:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://www.openkb.org/?p=432</guid>
		<description><![CDATA[This error occurs when the MySQL Date or DateTime columns have a value of all zeros (for example, &#8217;0000-00-00 00:00:00&#8242;). The MySQL Connector/J 3.0.x converted dates and datetimes with 0 values to nulls. This behavior changed with MySQL Connector/J 3.1 and later versions. The default behavior now is to throw the exception, &#8220;java.sql.SQLException: Value &#8217;0000-00-00&#8242; [...]]]></description>
			<content:encoded><![CDATA[<p>This error occurs when the MySQL Date or DateTime columns have a value of all zeros (for example, &#8217;0000-00-00 00:00:00&#8242;).</p>
<p>The MySQL Connector/J 3.0.x converted dates and datetimes with 0 values to nulls. This behavior changed with MySQL Connector/J 3.1 and later versions. The default behavior now is to throw the exception, &#8220;java.sql.SQLException: Value &#8217;0000-00-00&#8242; can not be represented as java.sql.Date&#8221; and sqlstate s1009. The MySQL drivers of ColdFusion 8 and ColdFusion MX 7 are versions of the MySQL Connector/J.</p>
<p>For more information, see the MySQL Connector/J 5.0 release notes and review the bullet labelled &#8220;Datetimes.&#8221;</p>
<p>Solution</p>
<p>ColdFusion</p>
<p>The MySQL Connector/J 3.1 and newer versions support the connectstring property of zeroDateTimeBehavior. The default value of this property is exception and the cause of the error. The other 2 value options are:</p>
<p>    *</p>
<p>      convertToNull (returns NULL instead of the date)<br />
    *</p>
<p>      round (returns rounded date of 2001-01-01)</p>
<p>Setting the connectstring value of zeroDateTimeBehavior=convertToNull will eliminate this exception and cause null values to return from the database. In this case, zero value date and datetime will appear as empty strings in ColdFusion output. mirroring the bahavior of the MySQL Connector/J 3.0.</p>
<p>The specific steps to fix this in ColdFusion are to create a MySQL datasource in the ColdFusion administrator as usual. However, you must also click the Advanced Settings button and enter the connectstring value of zeroDateTimeBehavior=convertToNull.</p>
<p>Note: Do not enter apostrophes or quotes. Also, this is case-sensitive and must be entered just as shown.</p>
<p><a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403065">Reference 1 </a></p>
<p><a href="http://community.eapps.com/showthread.php?t=8">Reference 2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/mysql-error-javasqlsqlexception-value-0000-00-00/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusions: Sessions are not saving.</title>
		<link>http://www.openkb.org/coldfusions-sessions-are-not-saving/</link>
		<comments>http://www.openkb.org/coldfusions-sessions-are-not-saving/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 16:43:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=200</guid>
		<description><![CDATA[If you are testing your application using the ip address instead of the domain name. You may notice the sesssions are not saving .    This is due to the setDomainCookies is set to true within your application.cfm or cfc file. Change this to false and your session cookies will now save .. once the domain [...]]]></description>
			<content:encoded><![CDATA[<p>If you are testing your application using the ip address instead of the domain name. You may notice the sesssions are not saving . </p>
<p> </p>
<p>This is due to the setDomainCookies is set to true within your application.cfm or cfc file. Change this to false and your session cookies will now save .. once the domain has been pointed to the application you can then change this to true</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/coldfusions-sessions-are-not-saving/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coldfusion: Connection reset by peer: socket write error</title>
		<link>http://www.openkb.org/coldfusion-connection-reset-by-peer-socket-write-error/</link>
		<comments>http://www.openkb.org/coldfusion-connection-reset-by-peer-socket-write-error/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 15:11:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=163</guid>
		<description><![CDATA[If you get the following error message repeatedly when a ColdFusion page connects to a database, deselect the Maintain Connections option for the data source: [Macromedia][Oracle JDBC Driver]Connection reset by peer: socket write error If you do not want to deselect the Maintain Connections option for performance reasons, you can lower the Timeout setting for [...]]]></description>
			<content:encoded><![CDATA[<p>If you get the following error message repeatedly when a ColdFusion page connects to a database, deselect the Maintain Connections option for the data source:</p>
<p>    [Macromedia][Oracle JDBC Driver]Connection reset by peer: socket write error </p>
<p>If you do not want to deselect the Maintain Connections option for performance reasons, you can lower the Timeout setting for the data source from the default of 20 minutes to 1 or 2 minutes. This way, if your database connections are dropped by a database server event, your ColdFusion MX server will recover in 1 or 2 minutes instead of 20 minutes.</p>
<p>&#8212;&#8212;&#8211;<br />
reference<br />
<a href="http://www.adobe.com/support/coldfusion/releasenotes/mx/knownissues_mx_j2ee_p2.html" >Coldfusion release notes</a></p>
<p>============<br />
Error Message:</p>
<p>Connection reset by peer.</p>
<p>Explanation:</p>
<p>A connection was forcibly closed by a peer. This normally results from a loss of the connection on the remote socket due to a timeout or a restart. On a datastream socket, the connection was reset. This reset could be generated locally by the network system when it detects a connection failure, or it might be received from the remote host (in TCP terms, the remote host sent an RST packet). This error is also possible on a datagram socket; for instance, this error could result if your application sends a UDP datagram to a host, which rejects it by responding with an ICMP Port Unreachable.</p>
<p>User Action:</p>
<p>Check the following: 1. Ping the remote host you were connected to. If it doesn&#8217;t respond, it might be offline or there might be a network problem along the way. If it does respond, this problem might have been a transient one (so you can reconnect now), or the server application you were connected to might have terminated (so you might not be able to connect again). 2. Ping a local host to verify that your local network is still functioning (if on a serial connection, see next step). 3. Ping your local router address. If you are on a serial connection, your local router is the IP address of the host you initially logged on to using SLIP or PPP. 4. Ping a host on the same subnet as the host you were connected to (if you know of one). This will verify that the destination network is functioning. 5. Type tracert at the command prompt to determine the path to the host you were connected to. This won&#8217;t reveal too much unless you know the router addresses at the remote end, but it might help to identify if the problem is somewhere along the way. </p>
<p><a href="http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/w2000Msgs/5055.mspx?mfr=true"> M$ reference guide </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/coldfusion-connection-reset-by-peer-socket-write-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>coldfusion: unable to connect to search service</title>
		<link>http://www.openkb.org/coldfusion-unable-to-connect-to-search-service/</link>
		<comments>http://www.openkb.org/coldfusion-unable-to-connect-to-search-service/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 00:31:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=120</guid>
		<description><![CDATA[C:\ColdFusion8\verity directory.Once there double click the verity-install.bat file CF7 C:\JRun4\verity\verity-install.bat to uninstall verity\verity-uninstall.bat reference http://orangepips.instantspot.com/blog/Verity]]></description>
			<content:encoded><![CDATA[<p>C:\ColdFusion8\verity directory.Once there double click the verity-install.bat file</p>
<p>CF7</p>
<p><font face="Courier New">C:\JRun4\verity\verity-install.bat</font></p>
<p>to uninstall</p>
<p>verity\verity-uninstall.bat</p>
<p>reference</p>
<p>http://orangepips.instantspot.com/blog/Verity</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/coldfusion-unable-to-connect-to-search-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Fonts to coldfusion</title>
		<link>http://www.openkb.org/adding-fonts-to-coldfusion/</link>
		<comments>http://www.openkb.org/adding-fonts-to-coldfusion/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 03:07:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=65</guid>
		<description><![CDATA[Add the needed fonts via the control panel . click on the fonts icon and proceed to file and install new font. After you install the new font you must then restart the coldfusion application]]></description>
			<content:encoded><![CDATA[<p>Add the needed fonts via the control panel . click on the fonts icon and proceed to file and install new font. After you install the new font you must then restart the coldfusion application</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/adding-fonts-to-coldfusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Null Pointers are another name for undefined values</title>
		<link>http://www.openkb.org/null-pointers-are-another-name-for-undefined-values/</link>
		<comments>http://www.openkb.org/null-pointers-are-another-name-for-undefined-values/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 04:50:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=58</guid>
		<description><![CDATA[The Null Pointer error is due to an issue with ColdFusion8 and MySQL. The fix for this is to uncheck &#8216;Maintain connections across client requests&#8217; in the Advanced settings fir the ColdFusion DSN. .]]></description>
			<content:encoded><![CDATA[<p>The Null Pointer error is due to an issue with ColdFusion8 and MySQL. The fix for this is to uncheck &#8216;Maintain connections across client requests&#8217; in the Advanced settings fir the ColdFusion DSN. .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/null-pointers-are-another-name-for-undefined-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing coldfusion with Apache</title>
		<link>http://www.openkb.org/installing-coldfusion-with-apache/</link>
		<comments>http://www.openkb.org/installing-coldfusion-with-apache/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 03:05:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://blog.masadmin1.com/?p=16</guid>
		<description><![CDATA[Compiling and Installing the Apache module for CFMX from source code This example was tested on a server running Redhat Linux 8 and Apache 2.0.46 built from source. Click on the link for instructions on installing from source. Install updater 3 or greater The source code for the ColdFusion Apache module was included in CFMX [...]]]></description>
			<content:encoded><![CDATA[<p><span> Compiling and Installing the Apache module for CFMX from source code<br />
This example was tested on a server running Redhat Linux 8 and Apache 2.0.46 built from source. Click on the link for instructions on installing from source.</p>
<p>Install updater 3 or greater<br />
The source code for the ColdFusion Apache module was included in CFMX updater 3, so step one is to install Updater 3 or higher from Macromedia. In this particular case CFMX was already installed using the standalone server, so if your are installing from scratch choose that option.</p>
<p>Extract the module source code<br />
The source is located in the coldfusionmx/runtime/lib/ directory inside the wsconfig.jar file. Jar files are Java Archive files, and they use the same compression as zip files, so you can treat them like zip files.</p>
<p>cp /opt/coldfusionmx/runtime/lib/wsconfig.jar .<br />
unzip wsconfig.jar</p>
<p>This creates several directories but in connectors/src/ the source for the Apache module resides. Unzip the file ApacheModule.zip<br />
cd connectors/src<br />
unzip ApacheModule.zip</p>
<p>Compile the Apache Module<br />
In the src directory is a file called ApacheBuildInstructions.txt, read this file. This file is the basis of our instructions for this step.</p>
<p>cat ApacheBuildInstructions.txt</p>
<p>We have crafted a build script that does most of the work for you, you just need to make sure the the paths are correct in the build script:<br />
#!/bin/bash<br />
#CFMX path eg: /opt/coldfusionmx<br />
export CFMX=/opt/coldfusionmx</p>
<p>#apache path eg: /usr/local/apache2<br />
export APACHE_PATH=/usr/local/apache2</p>
<p>#apache bin path eg: $APACHE_PATH/bin<br />
export APACHE_BIN=$APACHE_PATH/bin</p>
<p>#CFMX connector path eg $CFMX/runtime/lib/wsconfig/1<br />
export CFMX_CONNECTOR=$CFMX/runtime/lib/wsconfig/1</p>
<p>#stop apache<br />
$APACHE_BIN/apachectl stop</p>
<p>${APACHE_BIN}/apxs -c -Wc,-w -n jrun20 -S LIBEXECDIR=${CFMX_CONNECTOR} mod_jrun20.c \<br />
jrun_maptable_impl.c jrun_property.c jrun_session.c platform.c \<br />
jrun_mutex.c jrun_proxy.c jrun_ssl.c</p>
<p>${APACHE_BIN}/apxs -i -n jrun20 -S LIBEXECDIR=${CFMX_CONNECTOR} mod_jrun20.la</p>
<p>strip $CFMX_CONNECTOR/mod_jrun20.so</p>
<p>Before you run this script (note: you can also just type it in by hand) make sure that the directory for the CFMX_CONNECTOR exists (runtime/lib/wsconfig/1). You will probably need to make this directory:<br />
mkdir /opt/coldfusionmx/runtime/lib/wsconfig/1</p>
<p>If the directory already exists create a directory called 2 instead of 1, and update the CFMX_CONNECTOR variable in the script. Now save the script above in a file, we assume you called it build.sh. You need to mark it as executable with chmod, and then run it.<br />
chmod u+x build.sh<br />
./build.sh</p>
<p>Now you have built the mod_jrun20.so file, and it resides in your CFMX_CONNECTOR directory.</p>
<p>Configure ColdFusion MX to work with Apache First stop ColdFusion MX:</p>
<p>service coldfusionmx stop</p>
<p>Now edit the file /opt/coldfusionmx/runtime/servers/default/SERVER-INF/jrun.xml it may be a good idea to keep a backup of this file before you edit it. Below is the settings you will want to change, with changes in Bold (approx line 350):<br />
8500<br />
*<br />
true<br />
10<br />
10<br />
300<br />
1000</p>
<p>51010<br />
false<br />
10<br />
10<br />
300</p>
<p>false<br />
500<br />
0</p>
<p>The cacheRealPath attribute may be left to true if your only running one web site on the apache server, but if you are running multiple sites you will want to set it to false.</p>
<p>Configure apache for ColdFusion<br />
The Apache httpd.conf file needs to be told to load the module, and also told that index.cfm should be used as a directory index. To accomplish this, I like to create a directory called conf.d in my apache directory /usr/local/apache2/conf.d/ and then create a file called coldfusion.conf. If I have other modules such as php, I create a php.conf file. This allows you to easily edit module specific settings. So to do this I need to tell httpd.conf about my conf.d directory, I do this by adding the following line to the httpd.conf file:</p>
<p>Include conf.d/*.conf</p>
<p>you will want to make sure that your httpd.conf file does not already have this line in it, to search your file run:<br />
grep conf.d httpd.conf</p>
<p>It will not output anything if it does not find the string conf.d in httpd.conf</p>
<p>Now lets create conf.d/coldfusion.conf with the following contents:</p>
<p>LoadModule jrun_module &#8220;/opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun20.so&#8221;</p>
<p>JRunConfig Verbose false<br />
JRunConfig Apialloc false<br />
JRunConfig Ssl false<br />
JRunConfig Ignoresuffixmap false<br />
JRunConfig Serverstore &#8220;/opt/coldfusionmx/runtime/lib/wsconfig/1/jrunserver.store&#8221;<br />
JRunConfig Bootstrap 127.0.0.1:51010<br />
#JRunConfig Errorurl optionally redirect to this URL on errors<br />
AddHandler jrun-handler .cfm .cfc .cfml .jsp .jws</p>
<p>DirectoryIndex index.cfm</p>
<p>Start ColdFusion and Apache</p>
<p>service coldfusionmx start</p>
<p>service apache start</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.openkb.org/installing-coldfusion-with-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
