<?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>iphone and gis development notes &#187; apache</title>
	<atom:link href="http:///wordpress/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>/wordpress</link>
	<description>By Rupert</description>
	<lastBuildDate>Sun, 29 Aug 2010 22:44:41 +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>Installing Apache2.2 ColdFusion8 on Mac OS X Leopard</title>
		<link>/wordpress/2008/05/installing-apache22-coldfusion8-on-mac-os-x-leopard/</link>
		<comments>/wordpress/2008/05/installing-apache22-coldfusion8-on-mac-os-x-leopard/#comments</comments>
		<pubDate>Wed, 07 May 2008 00:54:21 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[leopard]]></category>

		<guid isPermaLink="false">/wordpress/?p=174</guid>
		<description><![CDATA[Ok so this post is a bit late as I saw it in my drafts, but better late than never. I did these even before I wrote the PostGres8.3/Postgis/pgRouting post. 1. Apache reference: http://httpd.apache.org/ ./configure &#8211;prefix=/usr/local/apache2 &#8211;with-m2m=prefork make sudo make install - To start on boot, download apache2startup.tar.gz and extract to your /Library/StartupItems/ 2. ColdFusion]]></description>
			<content:encoded><![CDATA[<p>Ok so this post is a bit late as I saw it in my drafts, but better late than never. I did these even before I wrote the <a href="/wordpress/index.php/2008/05/01/installing-postgres83-postgis133-pgrouting-on-macosx-leopard/">PostGres8.3/Postgis/pgRouting post.</a></p>
<p>1. Apache<br />
reference: http://httpd.apache.org/</p>
<p>./configure &#8211;prefix=/usr/local/apache2 &#8211;with-m2m=prefork<br />
make<br />
sudo make install</p>
<p>- To start on boot, download <a href="http://www.gisnotes.com/wordpress/wp-content/uploads/2008/05/apache2startuptar.gz">apache2startup.tar.gz</a> and extract to your /Library/StartupItems/</p>
<p>2. ColdFusion<br />
- run the installer as you would normally do in any windows/linux installation. I would suggest you put your installation in /opt and not ~ (home) because Leopard might wipe it out when upgrading to a higher OS version.<br />
- should automatically start on boot<br />
- bind coldfusion to apache</p>
<p>- Just in case you need to start it on boot, download <a href='/wordpress/wp-content/uploads/2008/05/coldfusion8tar.gz'>coldfusion8Startup.tar.gz</a></p>
<p>3. Installing mod_python on Apache<br />
$ ./configure &#8211;with-apxs=/usr/local/apache2/bin/apxs<br />
$ make<br />
$ sudo make install</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/05/installing-apache22-coldfusion8-on-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mapserver Debug Output</title>
		<link>/wordpress/2007/08/mapserver-debug-output/</link>
		<comments>/wordpress/2007/08/mapserver-debug-output/#comments</comments>
		<pubDate>Fri, 24 Aug 2007 11:41:39 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[mapserver]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">/wordpress/?p=107</guid>
		<description><![CDATA[Grabbing the latest ms4w-2.2.6, I was now able to get debugging output by specifying below in my mapfile. CONFIG MS_ERRORFILE "stderr" This would log all requests to your Apache error log. I can now play with different debugging modes as described from RFC28. Here is a simple output of my error.log with a DEBUG 2]]></description>
			<content:encoded><![CDATA[<p>Grabbing the latest <a href="http://dl.maptools.org/dl/ms4w/">ms4w-2.2.6</a>, I was now able to get debugging output by specifying below in my mapfile.</p>
<p><code><br />
CONFIG MS_ERRORFILE "stderr"<br />
</code></p>
<p>This would log all requests to your Apache error log. I can now play with different debugging modes as described from <a href="http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28">RFC28</a>. Here is a simple output of my error.log with a <strong><em>DEBUG 2</em></strong> set..</p>
<p><code><br />
[error] [client 127.0.0.1] CGI Request 1 on process 4136<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 0 (district), 0.172s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 1 (water_200k), 0.187s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 2 (greens_200k), 0.454s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 6 (roads_150_01), 0.906s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 9 (roads_270_01), 0.515s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 10 (roads_180_01), 0.563s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 11 (roads_280_01), 0.531s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 12 (roads_400_01), 0.516s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 13 (roads_140_03), 0.547s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 14 (roads_140_04), 1.297s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 15 (roads_141_02), 0.703s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 16 (roads_150_02), 0.890s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 17 (roads_boundary_160_170_270), 0.953s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 18 (roads_160_02), 0.829s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 19 (roads_170_02), 0.640s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 20 (roads_270_02), 0.531s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 22 (roads_180_02), 0.563s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 23 (roads_280_02), 0.516s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 24 (roads_400_02), 0.531s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 26 (subway), 0.109s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 27 (subwaystops), 0.125s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 28 (subway_transfer_stops), 0.110s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 29 (district_boundary), 0.156s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 33 (400_280_180_170_160_150_labels_01), 4.859s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 35 (subwaystops_labels), 0.125s<br />
[error] [client 127.0.0.1] msDrawMap(): Layer 36 (district_labels), 0.125s<br />
[error] [client 127.0.0.1] msDrawMap(): Drawing Label Cache, 5.860s<br />
[error] [client 127.0.0.1] msDrawMap() total time: 23.329s<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/08/mapserver-debug-output/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Debian Howto: Apache 2.2 + ColdFusion Updated for SID</title>
		<link>/wordpress/2007/08/debian-howto-apache-22-coldfusion/</link>
		<comments>/wordpress/2007/08/debian-howto-apache-22-coldfusion/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 20:51:54 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">/wordpress/?p=84</guid>
		<description><![CDATA[Wow, this is really nice. I was able to install Apache2.2 + ColdFusion on my current Debian 4.0 Etch. Here&#8217;s an introduction on using apt&#8230; Use apt-cache to search the local database for available packages. apt-cache search [search terms] will find packages that sound like what you want and: apt-cache show [packagename] will return more]]></description>
			<content:encoded><![CDATA[<p>Wow, this is really nice. I was able to install Apache2.2 + ColdFusion on my current Debian 4.0 Etch.</p>
<p>Here&#8217;s an introduction on using apt&#8230;</p>
<blockquote><p> Use   apt-cache   to search the local database for available packages.<br />
apt-cache search [search terms]   will find packages that sound like what you want and:<br />
apt-cache show [packagename]   will return more details on a particular package.<br />
apt-cache showpkg [packagename]   will return more details on a particular package.<br />
apt-cache policy [packagename]   will return which versions are available along with the priority of each version.<br />
apt-setup   will enable you to change mirrors. The alternative is to edit   /etc/apt/sources.list   manually (which I prefer).<br />
apt-get clean clears the local repository of all retrieved package files.<br />
apt-get autoclean clears the local repository of retrieved package files of programs that are no longer installed.<br />
dpkg -l [packagename] will list the version and a short description of the package we have installed.</p></blockquote>
<p><strong>Installing Apache2.2</strong></p>
<p>1. <code>apt-get install g++</code></p>
<p>2. <code>apt-get install apache2</code></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Setting up apache2-utils <span style="color: #7a0874; font-weight: bold;">&#40;</span>2.2.3-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
Setting up apache2.2-common <span style="color: #7a0874; font-weight: bold;">&#40;</span>2.2.3-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
Setting Apache2 to Listen on port 80. If this is not desired, please edit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>ports.conf <span style="color: #c20cb9; font-weight: bold;">as</span> desired. Note that the Port directive no longer works.
Module <span style="color: #7a0874; font-weight: bold;">alias</span> installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
Module autoindex installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
Module <span style="color: #c20cb9; font-weight: bold;">dir</span> installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
Module <span style="color: #c20cb9; font-weight: bold;">env</span> installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
Module mime installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
Module negotiation installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
Module setenvif installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
Module status installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
Module auth_basic installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
Module authz_default installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
Module authz_user installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
Module authz_groupfile installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
Module authn_file installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
Module authz_host installed; run <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload to enable.
&nbsp;
Setting up apache2-mpm-worker <span style="color: #7a0874; font-weight: bold;">&#40;</span>2.2.3-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ...
Starting web server <span style="color: #7a0874; font-weight: bold;">&#40;</span>apache2<span style="color: #7a0874; font-weight: bold;">&#41;</span>...apache2: Could not reliably determine the server<span style="color: #ff0000;">'s fully qualified domain name, using 127.0.0.1 for ServerName</span></pre></div></div>

<p>3. <code>/etc/init.d/apache2 start</code></p>
<p>4. <code>ps -ef | grep apache2</code></p>
<p>5. Post Install:<br />
<code><br />
#mkdir -p /usr/local/apache2<br />
#ln -s /var/log/apache2 /usr/local/apache2/logs<br />
#ln -s /var/www 	/usr/local/apache2/htdocs<br />
#ln -s /usr/lib/cgi-bin /usr/local/apache2/cgi-bin<br />
</code></p>
<p><strong>Installing ColdFusion 8</strong><br />
1. Install ColdFusion 8 normally. Make the user as nobody</p>
<p>2. To start ColdFusion8 on boot, download this startup script (<a href='/wordpress/wp-content/uploads/2008/05/coldfusion8_startup_debian.sh'>coldfusion8_startup_debian</a>).<br />
  Drop it to /etc/init.d/ and start coldfusion</p>
<p>3. Bind ColdFusion to Apache. Modify the existing apache_connector.sh.</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>
&nbsp;
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Configure the Apache connector.</span>
<span style="color: #666666; font-style: italic;">#       -dir should be the *directory* which contains httpd.conf</span>
<span style="color: #666666; font-style: italic;">#       -bin should be the path to the apache *executable*</span>
<span style="color: #666666; font-style: italic;">#       -script should be the path to the script which is used to</span>
<span style="color: #666666; font-style: italic;">#               start/stop apache</span>
<span style="color: #666666; font-style: italic;">#</span>
..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>runtime<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>wsconfig \
        <span style="color: #660033;">-server</span> coldfusion \
        <span style="color: #660033;">-ws</span> apache \
        <span style="color: #660033;">-dir</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2 \
        <span style="color: #660033;">-bin</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>apache2 \
        <span style="color: #660033;">-script</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>apache2ctl \
        <span style="color: #660033;">-coldfusion</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #007800;">$#</span></pre></div></div>

<p>4. Check if the bind is successful by inspecting /etc/apache2/httpd.conf . You should see something similar below&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># JRun Settings</span>
LoadModule jrun_module <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>coldfusion8<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_jrun22.so
<span style="color: #000000; font-weight: bold;">&lt;</span>IfModule mod_jrun22.c<span style="color: #000000; font-weight: bold;">&gt;</span>
    JRunConfig Verbose <span style="color: #c20cb9; font-weight: bold;">false</span>
    JRunConfig Apialloc <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>coldfusion8<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;">51011</span>
    <span style="color: #666666; font-style: italic;">#JRunConfig Errorurl url &lt;optionally redirect to this URL on errors&gt;</span>
    <span style="color: #666666; font-style: italic;">#JRunConfig ProxyRetryInterval 600 &lt;number of seconds to wait before trying to reconnect to unreachable clustered server&gt;</span>
    <span style="color: #666666; font-style: italic;">#JRunConfig ConnectTimeout 15 &lt;number of seconds to wait on a socket connect to a jrun server&gt;</span>
    <span style="color: #666666; font-style: italic;">#JRunConfig RecvTimeout 300 &lt;number of seconds to wait on a socket receive to a jrun server&gt;</span>
    <span style="color: #666666; font-style: italic;">#JRunConfig SendTimeout 15 &lt;number of seconds to wait on a socket send to a jrun server&gt;</span>
    AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf
<span style="color: #000000; font-weight: bold;">&lt;/</span>IfModule<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>5. Follow Post install considerations</p>
<p><strong>Installing ColdFusion7.0.2</strong></p>
<p>References:<br />
<a href="http://demirkapi.net/tutorials/coldfusion_debian_installation.cfm">http://demirkapi.net/tutorials/coldfusion_debian_installation.cfm</a><br />
<a href="http://demirkapi.net/tutorials/coldfusion_debian_installation.cfm">http://www.easycfm.com/print/index.cfm?tutorial_id=376</a></p>
<p>1.<code> apt-get install libstdc++6 libstdc++5 libstdc++2.10-glibc2.2(etch)</code></p>
<p>On etch, by default there is already xlibs, if we have desktop. On sid, if there is also no X, we need to install <code>libxp6 libxt6 libxtst6</code>.  If you don&#8217;t install these libraries, you will get a graphing library error during coldfusionmx startup.</p>
<p>2. By default debian has a &#8216;nobody&#8217; user also</p>
<p>From <a href="http://forums.gentoo.org/viewtopic-t-312113.html">http://forums.gentoo.org/viewtopic-t-312113.html</a>, and <strong>if you get a libc.so.6 No suc file or directory found problem</strong></p>
<p>3. Modify /opt/coldfusionmx7/bin/coldfusion and comment out LD_ASSUME_KERNEL<br />
<code><br />
174                 # Some Java JVMs (both from Sun and IBM) don't work with the new floating stack<br />
175                 # feature of the i686 version of glibc.  Force glibc to use the deprecated stack model.<br />
176                 # Check if the OS is SuSE8.1 or SuSE 9 - if it is, do not use the deprecated stack model.<br />
177                 #SUSEFLAG=`grep 'SuSE Linux 8.1\|UnitedLinux 1.0\|SuSE Linux 9\|SUSE LINUX Enterprise Server 9' /etc/SuSE-release /etc/UnitedLinux-release /etc/UnitedLinux-release 2&gt; /dev/null`<br />
178<br />
179                 #if [ ! "$SUSEFLAG" ]; then<br />
180                 #       LD_ASSUME_KERNEL=2.2.9<br />
181                 #       export LD_ASSUME_KERNEL<br />
182                 #fi<br />
</code></p>
<p>4. <strong>Boot on Start.</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#cp -Rf /opt/coldfusionmx7/bin/coldfusion /etc/init.d/coldfusionmx7</span>
<span style="color: #666666; font-style: italic;">#update-rc.d coldfusionmx7 start 80 2 3 4 5 . stop 15 0 1 6 .</span></pre></div></div>

<p>5. You need the latest wsconfig.jar that will work on Apache2.2. It was discussed from a technote <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=8001e97&amp;sliceId=2">here</a>. Configure apache with coldfusion<br />
<code><br />
</code></p>
<p>or</p>
<p>Call <strong>java</strong> and execute wsconfig.jar</p>
<p><code><br />
/opt/coldfusionmx7/runtime/jre/bin/java<br />
cd {cf_root}/runtime/lib</code></p>
<p>java -Dtrace.ci=1 -jar wsconfig.jar -server coldfusion -ws apache</p>
<p>-dir /etc/apache2/</p>
<p>-bin /usr/sbin/apache2</p>
<p>-script /usr/sbin/apache2ctl</p>
<p>-coldfusion -v</p>
<p>[-apxs]</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/08/debian-howto-apache-22-coldfusion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing TileCache on RedHat/CentOS</title>
		<link>/wordpress/2007/07/installing-tilecache/</link>
		<comments>/wordpress/2007/07/installing-tilecache/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 12:36:45 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[tilecache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[mod_python]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">/wordpress/?p=79</guid>
		<description><![CDATA[1. Install Apache ./configure &#8211;prefix=/usr/local/apache2 &#8211;enable-so &#8211;enable-rewrite &#8211;with-mpm=prefork make make install rm -Rf /usr/local/apache2/htdocs/* 2. Install mod_python-3.3.1 ./configure --with-apxs=/usr/local/apache2/bin/apxs make make install 3. Install Python Imaging Library (PIL) &#8211; Imaging-1.1.6 python setup.py install Note: To check if PIL was successfully installed: #python selftest.py ***Test Failed*** 1 failures. *** 1 tests of 57 failed. 47 ln]]></description>
			<content:encoded><![CDATA[<p>1. Install Apache<br />
./configure &#8211;prefix=/usr/local/apache2 &#8211;enable-so &#8211;enable-rewrite &#8211;with-mpm=prefork<br />
make<br />
make install<br />
rm -Rf /usr/local/apache2/htdocs/*</p>
<p>2. Install mod_python-3.3.1<br />
<code><br />
./configure --with-apxs=/usr/local/apache2/bin/apxs<br />
make<br />
make install<br />
</code></p>
<p>3. Install Python Imaging Library (PIL) &#8211; Imaging-1.1.6<br />
<code><br />
python setup.py install<br />
</code></p>
<p>Note: To check if PIL was successfully installed:<br />
#python selftest.py<br />
***Test Failed*** 1 failures.<br />
*** 1 tests of 57 failed.</p>
<p>   47  ln -s /usr/lib/libjpeg.so.62 /usr/lib/libjpeg.so<br />
   48  ldconfig<br />
   49  python setup.py install<br />
   51  python selftest.py<br />
   54  rm -rf Imaging-1.1.6<br />
   55  tar -zxvf Imaging-1.1.6.tar.gz<br />
   56  cd Imaging-1.1.6<br />
   58  python selftest.py -> still fails<br />
   59  python setup.py install<br />
   60  python selftest.py -> ok</p>
<p>4. Check if mod_python was sucessfully installed.<br />
<a href="http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking">http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking</a></p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: black;">&#91;</span>root@rupert-centos pytest<span style="color: black;">&#93;</span><span style="color: #808080; font-style: italic;"># python</span>
Python 2.4.3 <span style="color: black;">&#40;</span><span style="color: #808080; font-style: italic;">#1, Mar 14 2007, 18:51:08)</span>
<span style="color: black;">&#91;</span>GCC 4.1.1 <span style="color: #ff4500;">20070105</span> <span style="color: black;">&#40;</span>Red Hat 4.1.1-<span style="color: #ff4500;">52</span><span style="color: black;">&#41;</span><span style="color: black;">&#93;</span> on linux2
Type <span style="color: #483d8b;">&quot;help&quot;</span>, <span style="color: #483d8b;">&quot;copyright&quot;</span>, <span style="color: #483d8b;">&quot;credits&quot;</span> <span style="color: #ff7700;font-weight:bold;">or</span> <span style="color: #483d8b;">&quot;license&quot;</span> <span style="color: #ff7700;font-weight:bold;">for</span> more information.
<span style="color: #66cc66;">&amp;</span>gt<span style="color: #66cc66;">;&amp;</span>gt<span style="color: #66cc66;">;&amp;</span>gt<span style="color: #66cc66;">;</span> <span style="color: #ff7700;font-weight:bold;">import</span> mod_python
<span style="color: #66cc66;">&amp;</span>gt<span style="color: #66cc66;">;&amp;</span>gt<span style="color: #66cc66;">;&amp;</span>gt<span style="color: #66cc66;">;</span> mod_python.<span style="color: black;">version</span>
<span style="color: #483d8b;">'3.3.1'</span>
<span style="color: #66cc66;">&amp;</span>gt<span style="color: #66cc66;">;&amp;</span>gt<span style="color: #66cc66;">;&amp;</span>gt<span style="color: #66cc66;">;</span></pre></div></div>

<p>4. Edit httpd.conf</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">&lt;directory&gt;
 AddHandler python-program .py
 PythonHandler TileCache.Service
 PythonOption TileCacheConfig /usr/local/apache2/htdocs/tilecache/tilecache.cfg
 PythonDebug On
 PythonPath &quot;sys.path + ['/usr/local/apache2/htdocs/tilecache/']&quot;
&lt;/directory&gt;
&nbsp;
&lt;directory&gt;
 AddHandler mod_python .py
 PythonHandler test
 PythonDebug On
&lt;/directory&gt;</pre></div></div>

<blockquote><p>Note: This syntax will work for all versions of mod_python. In version 3.0 and later, the name of the mod_python handler reference has actually been changed and thus it is now preferred to use &#8220;mod_python&#8221; instead of &#8220;python-program&#8221;. The old name though is still supported and will be used here to avoid confusion for those using version 2.7.</p></blockquote>
<p>5. Test your python</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> mod_python <span style="color: #ff7700;font-weight:bold;">import</span> apache
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> handler<span style="color: black;">&#40;</span>req<span style="color: black;">&#41;</span>:
      req.<span style="color: black;">log_error</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'handler'</span><span style="color: black;">&#41;</span>
      req.<span style="color: black;">content_type</span> = <span style="color: #483d8b;">'text/plain'</span>
      req.<span style="color: black;">send_http_header</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
      req.<span style="color: black;">write</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'mptest.py<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
      <span style="color: #ff7700;font-weight:bold;">return</span> apache.<span style="color: black;">OK</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/07/installing-tilecache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Trac on CentOS4</title>
		<link>/wordpress/2007/06/installing-trac-on-centos4/</link>
		<comments>/wordpress/2007/06/installing-trac-on-centos4/#comments</comments>
		<pubDate>Tue, 26 Jun 2007 16:42:45 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">/wordpress/?p=64</guid>
		<description><![CDATA[There is a problem with clearsilver on CentOS systems. I get neo_cgi.so module not found. Don&#8217;t force yourself, it would simply not work (Trac0.10.4 on CentOS, not unless we try the DAG repositories). So, I have to use Trac 0.11, setuptools and Genshi. Prerequisites: - Must have python 2.3+ - Must have mod_python-3.3.1.tgz - Must]]></description>
			<content:encoded><![CDATA[<p>There is a problem with clearsilver on CentOS systems. I get neo_cgi.so module not found. Don&#8217;t force yourself, it would simply not work (Trac0.10.4 on CentOS, not unless we try the DAG repositories).</p>
<p>So, I have to use Trac 0.11, setuptools and Genshi.</p>
<p>Prerequisites:<br />
- Must have python 2.3+<br />
- Must have mod_python-3.3.1.tgz<br />
- Must have httpd2.0.x+ or httpd2.2.x</p>
<p><strong>A. Core Trac Installation</strong></p>
<p>1. Install <a href="http://cheeseshop.python.org/pypi/setuptools/">setuptools-0.6c6-py2.3.egg.</a> Download the setuptools according to your python distribution and simply run:</p>
<p><code>sh setuptools-0.6c4-py2.3.egg</code></p>
<p>2. Install <a href="http://genshi.edgewall.org/">Genshi.</a> There are numerous ways of installing <a href="http://genshi.edgewall.org/wiki/Download">Genshi.</a></p>
<p><code>easy_install Genshi</code></p>
<p>or</p>
<p><code><br />
#wget http://ftp.edgewall.com/pub/genshi/Genshi-0.4.2-py2.3.egg<br />
#chmod +x Genshi-0.4.2-py2.3.egg<br />
#easy_install Genshi-0.4.2-py2.3.egg<br />
</code></p>
<p>3. Install <a href="http://trac.edgewall.org/wiki/TracDownload">Trac 0.11.</a> We need to install trac from svn<br />
#svn co http://svn.edgewall.org/repos/trac/trunk trac<br />
#python ./setup.py install</p>
<p>This would install trac-admin and tracd in /usr/bin.</p>
<p><strong>Trac Post Intall</strong><br />
<code><br />
#mkdir -p /var/www/trac<br />
#cd /var/www/trac<br />
#trac-admin /var/www/trac/poimgr initenv<br />
#chown -Rf nobody:root /var/www<br />
#chmod -Rf 755 /var/www<br />
</code></p>
<p>Just accept the defaults for now, we can change it later on /var/www/trac/poimgr/conf/trac.ini.</p>
<p><strong>C. Apache Configuration</strong></p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">LoadModule python_module /usr/local/apache2/modules/mod_python.so
&nbsp;
&lt;location&gt;
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /var/www/trac/poimgr
PythonOption TracUriRoot /trac/poimgr
#Order deny,allow
#Deny from all
#Allow from 192.168.1.0/24
AuthType Basic
AuthName &quot;TRAC-POIMGR&quot;
AuthUserFile &quot;/repos/svn-auth-file&quot;
require valid-user
&lt;/location&gt;</pre></div></div>

<p>Notes:<br />
<a href="http://www.yolinux.com/TUTORIALS/LinuxSubversionAndTracServer.html">http://www.yolinux.com/TUTORIALS/LinuxSubversionAndTracServer.html</a></p>
<p>Depending on your installation, you may encounter some problems. I had problems with expat errors:</p>
<p><code><br />
ExpatError (null): line 1,column 0.<br />
</code></p>
<p>Turns out that it was confused between the link libraries of apache and that of python.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#ps aux | grep http | head -3</span>
<span style="color: #666666; font-style: italic;">#sof -p 29982 | grep expat</span>
<span style="color: #666666; font-style: italic;"># strings libexpat.so.0.1.0 | grep expat_</span>
expat_1.95.2
<span style="color: #666666; font-style: italic;"># strings /usr/lib/python2.3/lib-dynload/pyexpat.so | grep expat_</span>
expat_1.95.7
&nbsp;
Quickfix is to use symbolic links:
<span style="color: #666666; font-style: italic;">#cd /usr/local/apache2/lib/</span>
<span style="color: #666666; font-style: italic;">#cp -Rf /usr/lib/libexpat.so.0.5.0 /usr/local/apache2/lib/</span>
<span style="color: #666666; font-style: italic;">#ln -s libexpat.so.0.5.0 libexpat.so</span>
<span style="color: #666666; font-style: italic;">#ln -s libexpat.so.0.5.0 libexpat.so.0</span>
<span style="color: #666666; font-style: italic;">#su -l</span>
<span style="color: #666666; font-style: italic;">#/etc/init.d/httpd restart</span></pre></div></div>

<p>Configuring Trac.<br />
1. I have to move /etc/svn-auth-file to /repos-auth-file. Change the permissions so &#8220;nobody&#8221; could access it.</p>
<p>2. How to configure my users? Well, since its an intranet application and my trac-users and developers is both in the svn-auth-file, I need a way to configure users easily. Follow these steps from <a href="http://trac-hacks.org/wiki/AccountManagerPlugin">trac-hack.</a><br />
<code><br />
easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk<br />
</code></p>
<p>Role base authorisation in trac</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">trac-admin <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>trac<span style="color: #000000; font-weight: bold;">/</span>poiclient permission remove anonymous \
TICKET_CREATE TICKET_MODIFY WIKI_CREATE WIKI_MODIFY
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> n <span style="color: #000000; font-weight: bold;">in</span> rupert andrew; <span style="color: #000000; font-weight: bold;">do</span>
trac-admin <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>trac<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>app_name<span style="color: #7a0874; font-weight: bold;">&#125;</span> permission add <span style="color: #007800;">$n</span> TRAC_ADMIN
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> n <span style="color: #000000; font-weight: bold;">in</span> rupert andrew; <span style="color: #000000; font-weight: bold;">do</span>
trac-admin <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>trac<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>app_name<span style="color: #7a0874; font-weight: bold;">&#125;</span> permission add <span style="color: #007800;">$n</span> WIKI_DELETE
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
trac-admin <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>trac<span style="color: #000000; font-weight: bold;">/</span>poiclient permission add authenticated \
BROWSER_VIEW CHANGESET_VIEW FILE_VIEW LOG_VIEW MILESTONE_VIEW \
REPORT_SQL_VIEW REPORT_VIEW ROADMAP_VIEW SEARCH_VIEW \
TICKET_CREATE TICKET_MODIFY TICKET_VIEW TIMELINE_VIEW \
WIKI_CREATE WIKI_MODIFY WIKI_VIEW</pre></div></div>

<p>3. Here&#8217;s my trac.ini. Things to look at is the <em>notification</em> and <em>account-manager</em>.</p>
<p>4. Deleting a Trac Ticket:<br />
<code><br />
# sqlite3 trac.db<br />
delete from ticket_custom where ticket = [ticketID];<br />
delete from ticket_change where ticket = [ticketID];<br />
delete from ticket where id = [ticketID];<br />
</code></p>
<p>Other References:<br />
<a href="http://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash">http://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash</a><br />
<a href="http://www.yolinux.com/TUTORIALS/LinuxSubversionAndTracServer.html">http://www.yolinux.com/TUTORIALS/LinuxSubversionAndTracServer.html</a><br />
<a href="http://lists.edgewall.com/archive/trac/2004-April/000175.html">Trac and Multiple Subversion Repositories</a></p>
<p>Future Work:<br />
<a href="http://insurrection.tigris.org/">http://insurrection.tigris.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/06/installing-trac-on-centos4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HTTP access_log analysis</title>
		<link>/wordpress/2007/06/http-access_log-analysis/</link>
		<comments>/wordpress/2007/06/http-access_log-analysis/#comments</comments>
		<pubDate>Wed, 20 Jun 2007 18:07:10 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">/wordpress/?p=62</guid>
		<description><![CDATA[1. In order to report execution times, include a &#8220;%T&#8221; in your httpd.conf as follows: # # The following directives define some format nicknames for use with # a CustomLog directive (see below). # LogFormat &#34;%h %l %u %t \&#34;%r\&#34; %&#38;gt;s %b \&#34;%{Referer}i\&#34; \&#34;%{User-Agent}i\&#34;&#34; combined LogFormat &#34;%h %l %u %t \&#34;%r\&#34; %&#38;gt;s %b %T&#34; common]]></description>
			<content:encoded><![CDATA[<p>1. In order to report execution times, include a &#8220;%T&#8221; in your httpd.conf as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %&amp;gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; combined
    LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %&amp;gt;s %b %T&quot; common
&nbsp;
    &lt;ifmodule&gt;
      # You need to enable mod_logio.c to use %I and %O
      LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %&amp;gt;s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot; %I %O&quot; combinedio
    &lt;/ifmodule&gt;
&nbsp;
    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a &lt;virtualhost&gt;
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-&lt;/virtualhost&gt;&lt;virtualhost&gt; access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    CustomLog logs/access.log common
&lt;/virtualhost&gt;</pre></div></div>

<p>2. There are many log analysis softwares (webalizer, awstats, etc) out there, but most of them are outdated. I found this nifty little tool called visitor from <a href="http://www.hping.org/visitors/">www.hping.org</a>. Freely distributed for unix but demo versions for windows build. Here&#8217;s a <a href="/wordpress/images/report.html">demo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/06/http-access_log-analysis/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hiding and protecting CFM</title>
		<link>/wordpress/2007/06/hiding-and-protecting-cfm/</link>
		<comments>/wordpress/2007/06/hiding-and-protecting-cfm/#comments</comments>
		<pubDate>Fri, 08 Jun 2007 13:03:44 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">/wordpress/?p=56</guid>
		<description><![CDATA[With recent client developments, I fiddled my way on how to protect IPR of my cfc/cfm source codes. Two tasks in mind was to hide the cfm extension from Apache and precompile the CF source files (cfm/cfc). Hiding the cfm extension courtesy of PeterBell 1. Add the desired extension in httpd.conf # JRun Settings LoadModule]]></description>
			<content:encoded><![CDATA[<p>With recent client developments, I fiddled my way on how to protect IPR of my cfc/cfm source codes. Two tasks in mind was to hide the cfm extension from Apache and precompile the CF source files (cfm/cfc).</p>
<p><strong>Hiding the cfm extension <a href="http://www.pbell.com/index.cfm/2007/3/31/Processing-html-files-using-ColdFusion--on-a-Mac-or-a-PC">courtesy of PeterBell</a></strong><br />
1. Add the desired extension in httpd.conf</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;"># JRun Settings
LoadModule jrun_module &quot;D:/CFusionMX7/runtime/lib/wsconfig/1/mod_jrun22.so&quot;
&lt;ifmodule&gt;
    JRunConfig Verbose false
    JRunConfig Apialloc false
    JRunConfig Ssl false
    JRunConfig Ignoresuffixmap false
    JRunConfig Serverstore &quot;D:/CFusionMX7/runtime/lib/wsconfig/1/jrunserver.store&quot;
    JRunConfig Bootstrap 127.0.0.1:51011
    #JRunConfig Errorurl &lt;optionally&gt;
    #JRunConfig ProxyRetryInterval 600
    #JRunConfig ConnectTimeout 15
    #JRunConfig RecvTimeout 300
    #JRunConfig SendTimeout 15
    AddHandler jrun-handler .cfm .cfml .cfc .cfr .cfswf .rup
&lt;/optionally&gt;
&lt;/ifmodule&gt;</pre></div></div>

<p>2. In C:\CFusionMX7\wwwroot\WEB-INF\web.xml</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;servlet</span> -mapping <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;macromedia_mapping_14&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;servlet</span> -name<span style="color: #000000; font-weight: bold;">&gt;</span></span>CfmServlet<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/servlet<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url</span> -pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span>*.rup<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>3. Restart Apache and ColdFusion.</p>
<p><strong>Re-compile templates for sourceless deployment.</strong>.<br />
1. Applications can now be distributed without the underlying source code. Run cfcompile as follows&#8230;</p>
<p><code><br />
cfcompile -deploy webroot directory-to-compile output-directory<br />
</code></p>
<p>2. Compiled CF code goes into [cfusionmx]\wwwroot\WEB-INF\cfclasses.  CFMX compiles and runs the code from this cfclasses directory, regardless of the location of the source file.</p>
<p>3. To see the generated Java code, Edit the file [cfusionmx]\wwwroot\WEB-INF\web.xml. Change &#8220;coldfusion.compiler.saveJava&#8221; from false to true. Restart the CF server.</p>
<p>4. Bottomline enable trusted cache on CFADMIN for production environments.</p>
<p>Main Reference:<br />
<a href="http://coldfusion.sys-con.com/read/41684.htm">Compilation and Precompilation in CFMX Templates By Charlie Arehart</a></p>
<p><a href="http://coldfusion.sys-con.com/read/48654.htm">Deploying Applications with ColdFusion MX 7 By Dave Carabetta</a></p>
<p>Future readings include EAR/WAR Deployment&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/06/hiding-and-protecting-cfm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transparent Overlays in TileCache</title>
		<link>/wordpress/2007/03/transparent-overlays-in-tilecache/</link>
		<comments>/wordpress/2007/03/transparent-overlays-in-tilecache/#comments</comments>
		<pubDate>Fri, 30 Mar 2007 19:21:53 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[mapserver]]></category>
		<category><![CDATA[tilecache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[openlayers]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">/wordpress/?p=44</guid>
		<description><![CDATA[From the tilecache mailing list&#8230;. Hi Everyone, Really appreciate all the replies&#8230; 1. Installed Imaging-1.1.6.tar.gz (PIL). &#91;root@rupert-linux ~&#93;# python Python 2.3.4 &#40;#1, Mar 10 2006, 06:12:09) [GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2 Type &#34;help&#34;, &#34;copyright&#34;, &#34;credits&#34; or &#34;license&#34; for more information. &#38;gt;&#38;gt;&#38;gt; import sys &#38;gt;&#38;gt;&#38;gt; print sys.path &#91;'', '/usr/lib/python23.zip', '/usr/lib/python2.3', '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', '/usr/lib/python2.3/lib-dynload',]]></description>
			<content:encoded><![CDATA[<p>From the tilecache mailing list&#8230;.</p>
<p>Hi Everyone,</p>
<p>Really appreciate all the replies&#8230;</p>
<p>1. Installed Imaging-1.1.6.tar.gz (PIL).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>rupert-linux ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># python</span>
Python 2.3.4 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #666666; font-style: italic;">#1, Mar 10 2006, 06:12:09) [GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2 Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.</span>
<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; import sys
<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; print sys.path
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">'/usr/lib/python23.zip'</span>, <span style="color: #ff0000;">'/usr/lib/python2.3'</span>, <span style="color: #ff0000;">'/usr/lib/python2.3/plat-linux2'</span>, <span style="color: #ff0000;">'/usr/lib/python2.3/lib-tk'</span>, <span style="color: #ff0000;">'/usr/lib/python2.3/lib-dynload'</span>, <span style="color: #ff0000;">'/usr/lib/python2.3/site-packages'</span>,
<span style="color: #ff0000;">'/usr/lib/python2.3/site-packages/PIL'</span>,
<span style="color: #ff0000;">'/usr/lib/python2.3/site-packages/gtk-2.0'</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt;</pre></div></div>

<p>2. Modified test1.cfm</p>

<div class="wp_syntax"><div class="code"><pre class="cfm" style="font-family:monospace;">     41         var options = {
     42                         controls: [new OpenLayers.Control.MouseDefaults()]
     43                       };
     44
     45         map = new OpenLayers.Map( $('map'), options);
     46
     47         var layer_base = new OpenLayers.Layer.WMS(
     48                     &quot;Base Layer&quot;,
     49                     &quot;<span style="color: #0000FF;">#request.mapserv_tile#</span>&quot;,
     50                     {
     51                         map: '/home/map/beijing/new/wms.map',
     52                         layers: '<span style="color: #0000FF;">#request.basemap_tile#</span>',
     53                         format: 'image/png', 'transparent': 'false'
     54                     }
     55                     );
     56
     57         var layer_road = new OpenLayers.Layer.WMS(
     58                     &quot;Road Layer&quot;,
     59                     &quot;<span style="color: #0000FF;">#request.mapserv_tile#</span>&quot;,
     60                     {
     61                         map: '/home/map/beijing/new/wms.map',
     62                         layers: '<span style="color: #0000FF;">#request.roads_tile#</span>',
     63                         format: 'image/png', 'transparent': 'true'
     64                     },
     65                     {
     66                         reproject: false
     67                     }
     68                     );
     69
     70         map.addLayer(layer_base);
     71         layer_base.setIsBaseLayer(true);
     72
     73         layer_road.setIsBaseLayer(false);
     74         map.addLayer(layer_road);</pre></div></div>

<p>3. tilecache.cfg. Commented metaTile=true http://222.128.19.19/tilecache/tilecache.cfg</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">     <span style="color: #000000;">47</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>basemap<span style="color: #7a0874; font-weight: bold;">&#93;</span>
     <span style="color: #000000;">48</span> <span style="color: #007800;"><span style="color: #7a0874; font-weight: bold;">type</span></span>=WMSLayer
     <span style="color: #000000;">49</span> <span style="color: #007800;">url</span>=http:<span style="color: #000000; font-weight: bold;">//</span>127.0.0.1<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span>mapserv?<span style="color: #007800;">map</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>map<span style="color: #000000; font-weight: bold;">/</span>beijing<span style="color: #000000; font-weight: bold;">/</span>new<span style="color: #000000; font-weight: bold;">/</span>wms.map
     <span style="color: #000000;">50</span> <span style="color: #007800;">layers</span>=district,greens,major_river,minor_river
     <span style="color: #000000;">51</span> <span style="color: #666666; font-style: italic;">#bbox=-180,-90,180,90</span>
     <span style="color: #000000;">52</span> <span style="color: #666666; font-style: italic;">#metaTile=true</span>
     <span style="color: #000000;">53</span> <span style="color: #007800;">extension</span>=png
     <span style="color: #000000;">54</span>
     <span style="color: #000000;">55</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>roads<span style="color: #7a0874; font-weight: bold;">&#93;</span>
     <span style="color: #000000;">56</span> <span style="color: #007800;"><span style="color: #7a0874; font-weight: bold;">type</span></span>=WMSLayer
     <span style="color: #000000;">57</span> <span style="color: #007800;">url</span>=http:<span style="color: #000000; font-weight: bold;">//</span>127.0.0.1<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span>mapserv?<span style="color: #007800;">map</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>map<span style="color: #000000; font-weight: bold;">/</span>beijing<span style="color: #000000; font-weight: bold;">/</span>new<span style="color: #000000; font-weight: bold;">/</span>wms.map
     <span style="color: #000000;">58</span> <span style="color: #666666; font-style: italic;">#layers=road4,road4label,road3,road3label,road2,road2label,road1,road1label,road11,road11label</span>
     <span style="color: #000000;">59</span> <span style="color: #666666; font-style: italic;">#bbox=116.1737,39.8211,116.5640,40.0799</span>
     <span style="color: #000000;">60</span> <span style="color: #666666; font-style: italic;">#maxresolution=1.40625</span>
     <span style="color: #000000;">61</span> <span style="color: #666666; font-style: italic;">#bbox=-180,-90,180,90</span>
     <span style="color: #000000;">62</span> <span style="color: #007800;">layers</span>=road1,road1label,road11,road11label
     <span style="color: #000000;">63</span> <span style="color: #007800;">extension</span>=png
     <span style="color: #000000;">64</span> <span style="color: #666666; font-style: italic;">#metaTile=true</span></pre></div></div>

<p>4. Modified wms.map http://222.128.19.19/tilecache/wms.map</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">OUTPUTFORMAT
     NAME png
     DRIVER <span style="color: #ff0000;">&quot;GD/PNG&quot;</span>
     MIMETYPE <span style="color: #ff0000;">&quot;image/png&quot;</span>
     IMAGEMODE RGB
     EXTENSION <span style="color: #ff0000;">&quot;png&quot;</span>
     FORMATOPTION <span style="color: #ff0000;">&quot;INTERLACE=OFF&quot;</span>
END</pre></div></div>

<p>5. Checked access_log. &#8220;transparent=true&#8221; exists&#8230;<br />
<code><br />
192.168.1.150 - - [30/Mar/2007:13:46:26 +0800] "GET /tilecache/tilecache.py?MAP=%2Fhome%2Fmap%2Fbeijing%2Fnew%2Fwms.map&amp;LAYERS=r<br />
oads&amp;FORMAT=image%2Fpng&amp;TRANSPARENT=true&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=G<br />
etMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG%3A4326&amp;BB<br />
OX=116.334229%2C39.891357%<br />
2C116.345215%2C39.902344&amp;WIDTH=256&amp;HEIGHT=256 HTTP/1.1" 200 14580<br />
</code></p>
<p>Now, this is really weird. I have &#8220;transparent&#8221;: true in test1.cfm all the time. That didn&#8217;t worked.</p>
<p>For every test iteration i made, I always tried clearing the cache, removing the python compiled scripts, then restarting Apache just to get a clean state..</p>
<p><code><br />
rm -Rf /usr/local/apache2/htdocs/tmp/*<br />
rm /wwwroot/tilecache/TileCache/*.pyc<br />
/etc/init.d/httpd restart<br />
</code></p>
<p>Then I tried appending &#8220;transparent=true&#8221; to tilecache.cfg based on Eric&#8217;s suggestion&#8230;<br />
That worked. Now I wonder why&#8230; Nevertheless, its working now. Again many thanks to everyone&#8230;</p>
<p>Rupert</p>
<p>On Fri, Mar 30, 2007 at 01:57:43PM +0800, Rupert de Guzman Jr wrote:<br />
&gt; Hi Everyone,<br />
&gt;<br />
&gt; Really appreciate all the replies&#8230;<br />
&gt; Then I tried appending &#8220;transparent=true&#8221; to tilecache.cfg based on<br />
&gt; Eric&#8217;s suggestion&#8230;<br />
&gt; That worked. Now I wonder why&#8230; Nevertheless, its working now. Again<br />
&gt; many thanks to everyone&#8230;</p>
<p>TileCache pays almost no attention to the URL: Only the BBOX and the layername matter. Anything else is simply ignored: so your transparency being set in OpenLayers actually has 0 affect.</p>
<p>The reason for this is that TileCache can only store one copy of an image. If the URL parameters modified the content, you could get an inconsistent cache.</p>
<p>This is &#8216;by design&#8217;, insofar as there is no obvious solution (other than to complain more loudly when TC Gets parameters it isn&#8217;t expecting, which is an outstanding FIXME in the code). The lack of error message is not by design, and I&#8217;m sorry you got bit by the poorly documented behavior.</p>
<p>Regards,<br />
&#8211;<br />
Christopher Schmidt<br />
MetaCarta</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/03/transparent-overlays-in-tilecache/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 06:10:51 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[apache]]></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>
		<item>
		<title>TileCache for Windows Revisited</title>
		<link>/wordpress/2007/01/tilecache13/</link>
		<comments>/wordpress/2007/01/tilecache13/#comments</comments>
		<pubDate>Wed, 17 Jan 2007 03:50:27 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[mapserver]]></category>
		<category><![CDATA[tilecache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_python]]></category>

		<guid isPermaLink="false">/wordpress/?p=22</guid>
		<description><![CDATA[1. Downloaded TileCache1.8 from http://www.tilecache.org/ 2. Get the current releases of python and mod_python. http://www.python.org/download/releases/2.5/ http://httpd.apache.org/modules/python-download.cgi -&#62; click on win32 binaries. Get the mod_python-3.3.1.win32-py2.5-Apache2.2.exe if your Apache is running on 2.2. http://www.pythonware.com/products/pil/ http://effbot.org/downloads/PIL-1.1.6.win32-py2.5.exe 3. Install python2.5 4. Install mod_python and python_imaging. 5. Edit httpd.conf LoadModule python_module modules/mod_python.so &#160; &#60;directory&#62; AddHandler python-program .py PythonHandler test PythonDebug]]></description>
			<content:encoded><![CDATA[<p>1. Downloaded TileCache1.8 from <a href="http://www.tilecache.org/">http://www.tilecache.org/</a></p>
<p>2. Get the current releases of python and mod_python.<br />
<a href="http://www.python.org/download/releases/2.5/">http://www.python.org/download/releases/2.5/</a></p>
<p><a href="http://httpd.apache.org/modules/python-download.cgi">http://httpd.apache.org/modules/python-download.cgi</a> -&gt; click on win32 binaries. Get the mod_python-3.3.1.win32-py2.5-Apache2.2.exe  if your Apache is running on 2.2.</p>
<p><a href="http://www.pythonware.com/products/pil/">http://www.pythonware.com/products/pil/</a></p>
<p>http://effbot.org/downloads/PIL-1.1.6.win32-py2.5.exe</p>
<p>3. Install python2.5</p>
<p>4. Install mod_python and python_imaging.</p>
<p>5. Edit httpd.conf</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">LoadModule python_module modules<span style="color: #000000; font-weight: bold;">/</span>mod_python.so
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>directory<span style="color: #000000; font-weight: bold;">&gt;</span>
AddHandler python-program .py
PythonHandler <span style="color: #7a0874; font-weight: bold;">test</span>
PythonDebug On
<span style="color: #000000; font-weight: bold;">&lt;/</span>directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>directory<span style="color: #000000; font-weight: bold;">&gt;</span>
	AddHandler python-program .py .cgi
	PythonHandler TileCache.Service
	PythonOption TileCacheConfig <span style="color: #000000; font-weight: bold;">/</span>wwwroot<span style="color: #000000; font-weight: bold;">/</span>tilecache<span style="color: #000000; font-weight: bold;">/</span>tilecache.cfg
	PythonDebug On
<span style="color: #000000; font-weight: bold;">&lt;/</span>directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
ScriptInterpreterSource Registry
SetEnv PYTHONUNBUFFERED <span style="color: #000000;">1</span>
PassEnv PYTHONPATH</pre></div></div>

<p>6. run regedit. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.4\PythonPath. Append &#8220;E:\wwwroot\tilecache&#8221; to PYTHONPATH</p>
<p>D:\Python24\Lib;D:\Python24\DLLs;D:\Python24\Lib\lib-tk;E:\wwwroot\tilecache;</p>
<p>7. Put D:\Python24 in your WINDOWS PATH</p>
<p>8. Test if apache could read python by http://127.0.0.1/pytest/test.py</p>
<p>9. http://127.0.0.1/tilecache/test1.cfm</p>
<p>10. tilecache_seed.py &#8220;http://127.0.0.1/tilecache/tilecache.py&#8221; roads 12 17 &#8220;116.28229,39.85291,116.48657,39.98783&#8243;</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2007/01/tilecache13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
