<?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>Ian Winter &#187; linux</title>
	<atom:link href="http://ianwinter.co.uk/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://ianwinter.co.uk</link>
	<description>Have you found the instructions yet?</description>
	<lastBuildDate>Wed, 14 Sep 2011 22:16:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Compilation Fun</title>
		<link>http://ianwinter.co.uk/2008/03/30/compilation-fun/</link>
		<comments>http://ianwinter.co.uk/2008/03/30/compilation-fun/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 21:53:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[compilation]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Building a new server today with a CLAMP installation. ColdFusion, Linux, Apache, MySQL and PHP. Server in question was a RHES4 server. Going to install the following apps: ColdFusion 7.0.2 (CU3) apache 2.2.8 MySQL 5.0.51a PHP 5.2.5 Suppose to be a quick job, but, oh no. First up the server already had a MySQL 4.1 [...]]]></description>
			<content:encoded><![CDATA[<p>Building a new server today with a CLAMP installation. ColdFusion, Linux, Apache, MySQL and PHP.</p>
<p>Server in question was a RHES4 server. Going to install the following apps:</p>
<ul>
<li>ColdFusion 7.0.2 (CU3)</li>
<li>apache 2.2.8</li>
<li>MySQL 5.0.51a</li>
<li>PHP 5.2.5</li>
</ul>
<p>Suppose to be a quick job, but, oh no.</p>
<p>First up the server already had a MySQL 4.1 RPM installed which was causing some issues. When trying to do a straight update it failed.</p>
<p><code>rpm -Uvh MySQL-server-community-5.0.51a-0.rhel4</code></p>
<p>You can&#8217;t remove it with rpm -e either. After some Google love discovered that it&#8217;s some issues with compatibility. So off to the MySQL site again to wget the shared-compat RPM.</p>
<p><code>rpm -Uvh MySQL-shared-compat-community-5.0.51a-0.rhel4</code></p>
<p>Now the server will upgrade just fine. Next up get the client libraries and headers installed (we&#8217;ll need them for the PHP compile later).</p>
<p><code>rpm -Uvh MySQL-devel-community-5.0.51a-0.rhel4 \<br />
rpm -Uvh MySQL-client-community-5.0.51a-0.rhel4</code></p>
<p>I&#8217;ll skip the crap about getting it running for now. Next up is apache.</p>
<p>Pretty easy compile this one, probably don&#8217;t need rewrite and deflate separate but did it anyway.</p>
<p><code>./configure \<br />
--prefix=/usr/local/apache2 \<br />
--enable-mods-shared=most \<br />
--enable-rewrite \<br />
--enable-deflate<br />
make<br />
make install</code></p>
<p>Quick check that it runs and then onto PHP.</p>
<p><code>./configure \<br />
--prefix=/usr/local/apache2/php \<br />
--with-apxs2=/usr/local/apache2/bin/apxs \<br />
--with-mysql=/usr \<br />
--with-config-file-path=/usr/local/apache2/php \<br />
--enable-force-cgi-redirect \<br />
--disable-cgi \<br />
--with-zlib \<br />
--with-gettext \<br />
--with-gdbm;<br />
make clean;<br />
make;<br />
make install</code></p>
<p>The key stage is the make clean. For some odd reason if you don&#8217;t make clean first you get an error like the following, the make clean will stop this happening.</p>
<p><code>httpd: Syntax error on line 55 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: undefined symbol: zend_ini_string</code></p>
<p>ColdFusion should be easy, will probably need to recompile the connector again but hey&#8230; that&#8217;s the fun, I think.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2008/03/30/compilation-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mod_gzip is your friend</title>
		<link>http://ianwinter.co.uk/2007/01/25/modgzip-is-your-friend/</link>
		<comments>http://ianwinter.co.uk/2007/01/25/modgzip-is-your-friend/#comments</comments>
		<pubDate>Thu, 25 Jan 2007 13:15:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[To save bandwidth on one off the servers I look after I decided to implement mod_gzip. The server in questions is running RedHat ES3, apache 1.3.37, Coldfusion 7.0.2 and has the cPanel/WHM control panel. First off was to get mod_gzip compiled, now this can be done manually, download a pre compiled one or in my [...]]]></description>
			<content:encoded><![CDATA[<p>To save bandwidth on one off the servers I look after I decided to implement mod_gzip.</p>
<p>The server in questions is running RedHat ES3, apache 1.3.37, Coldfusion 7.0.2 and has the cPanel/WHM control panel.</p>
<p>First off was to get mod_gzip compiled, now this can be done manually, download a pre compiled one or in my case just go into WHM and rebuild apache with the mod_gzip box checked. The version it puts in is 1.3.26.1a.</p>
<p>As I&#8217;d already got Coldfusion running on this webserver the resulting httpd.conf file it creates became invalid so I had to move a few things about. To cut to the chase the order in which modules load is crucial with Coldfusion due to the was the mod_gzip and mod_jrun modules work intercepting requests. The following is my httpd.conf (abbriviated) with the relevant sections.</p>
<p><code>LoadModule ...<br />
--snip--<br />
LoadModule jrun_module /usr/local/coldfusionmx7/runtime/lib/wsconfig/1/mod_jrun.so<br />
&lt;IfModule mod_jrun.c&gt;<br />
    JRunConfig Verbose false<br />
    JRunConfig Apialloc false<br />
    JRunConfig Ssl false<br />
    JRunConfig Ignoresuffixmap false<br />
    JRunConfig Serverstore /usr/local/coldfusionmx7/runtime/lib/wsconfig/1/jrunserver.store<br />
    JRunConfig Bootstrap 127.0.0.1:51011<br />
    #JRunConfig Errorurl &lt;optionally redirect to this URL on errors&gt;<br />
    #JRunConfig ProxyRetryInterval 600<br />
    #JRunConfig ConnectTimeout 15<br />
    #JRunConfig RecvTimeout 300<br />
    #JRunConfig SendTimeout 15<br />
    AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf<br />
&lt;/IfModule&gt;<br />
LoadModule gzip_module        libexec/mod_gzip.so<br />
&lt;IfModule mod_gzip.c&gt;<br />
   mod_gzip_on Yes<br />
   mod_gzip_can_negotiate Yes<br />
   mod_gzip_static_suffix .gz<br />
   AddEncoding gzip .gz<br />
   mod_gzip_update_static No<br />
   mod_gzip_command_version '/mod_gzip_status'<br />
   mod_gzip_temp_dir /tmp<br />
   mod_gzip_keep_workfiles No<br />
   mod_gzip_minimum_file_size 500<br />
   mod_gzip_maximum_file_size 500000<br />
   mod_gzip_maximum_inmem_size 60000<br />
   mod_gzip_min_http 1000<br />
   mod_gzip_handle_methods GET POST<br />
   mod_gzip_item_exclude file .js$<br />
   mod_gzip_item_exclude file .css$<br />
   mod_gzip_item_exclude file .swf$<br />
   mod_gzip_item_exclude mime ^image/<br />
   mod_gzip_item_include file .php$<br />
   mod_gzip_item_include file .cfm$<br />
   mod_gzip_item_include file .jsp$<br />
   mod_gzip_item_exclude file .pdf$<br />
   mod_gzip_item_include file .fic$<br />
   mod_gzip_item_include file .html$<br />
   mod_gzip_item_include file .htm$<br />
   mod_gzip_item_include mime ^text/html<br />
   mod_gzip_item_include mime ^text/plain<br />
   mod_gzip_item_include mime ^text/xml<br />
#mod_gzip_item_include mime ^application/force_download$<br />
#mod_gzip_item_include mime ^application/pdf$<br />
   mod_gzip_item_include handler type-coldfusion<br />
   mod_gzip_item_include handler jrun-handler<br />
   mod_gzip_dechunk Yes<br />
#then the logging directives<br />
   LogFormat "%h %l %u %t "%V %r" %&lt;s %b mod_gzip: %{mod_gzip_result}n In:%{mo<br />
d_gzip_input_size}n -&lt; Out:%{mod_gzip_output_size}n = %{mod_gzip_compression_rat<br />
io}n pct." common_with_mod_gzip_info2<br />
   CustomLog "logs/mod_gzip.log" common_with_mod_gzip_info2<br />
   mod_gzip_add_header_count Yes<br />
   mod_gzip_send_vary On<br />
&lt;/IfModule&gt;<br />
AddType type-coldfusion .fic<br />
--snip--<br />
ClearModuleList<br />
AddModule ...<br />
--snip--<br />
AddModule mod_jrun.c<br />
AddModule mod_gzip.c</code></p>
<p>In my test case I had a page show as 18224 bytes originally which compressed down to 3956 bytes a saving of 14268 bytes or 79%! To test the compression I was using the <a href="http://www.port80software.com/tools/compresscheck.asp">port80software.com</a> compression check. You can also see <a href="http://www.port80software.com/tools/compresscheck.asp?url=flatpackedworld.co.uk%2Fblog%2F">this site&#8217;s</a> report.</p>
<p>More Information (stuff I read):</p>
<ul>
<li><a href="http://www.owensperformance.com/blog_content.cfm?articleid=206">owensperformance.com</a> &#8211; cheers Irvin!
</li>
<li><a href="http://sourceforge.net/projects/mod-gzip/">mod_gzip on sourceforge</a>
</li>
<li><a href="http://schroepl.net/projekte/mod_gzip/install.htm">How to install mod_gzip</a>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2007/01/25/modgzip-is-your-friend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recompile Apache 1.3.x connector</title>
		<link>http://ianwinter.co.uk/2006/10/31/recompile-apache-13x-connector/</link>
		<comments>http://ianwinter.co.uk/2006/10/31/recompile-apache-13x-connector/#comments</comments>
		<pubDate>Tue, 31 Oct 2006 19:21:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[connector]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[If you&#8217;re running Apache 1.3.x and Coldfusion 7 you might have had errors when starting apache about needing to compile it using DEAPI. [warn] Loaded DSO /opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI). The original Adobe technote 18748 worked with CF6 as I&#8217;ve followed it [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running Apache 1.3.x and Coldfusion 7 you might have had errors when starting apache about needing to compile it using DEAPI.</p>
<blockquote><p>[warn] Loaded DSO /opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun.so uses<br />
plain Apache 1.3 API, this module might crash under EAPI!<br />
(please recompile it with -DEAPI).</p></blockquote>
<p>The original Adobe <a href="http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18748">technote 18748</a> worked with CF6 as I&#8217;ve followed it before, but, with CF7 once compile and you try and start apache you get a crazy hex error, like this:</p>
<blockquote><p>Cannot load /opt/coldfusionmx7/runtime/servers/lib/wsconfig/1/mod_jrun.so into<br />
server: /opt/coldfusionmx7/runtime/servers/lib/wsconfig/1/mod_jrun.so: undefined symbol: hexstrtol</p></blockquote>
<p>A quick google found <a href="http://www.van-sluis.nl/php/index.php?dest=coldfusion">this site</a> with a script on how to do it. Now one note on the guide is he&#8217;s building a mod_jrun20.so file for apache 2, quick vi to change them all to mod_jrun.so and you&#8217;re all good.</p>
<p>So, big thanks to that guy for posting his script. Mine is included below for reference.</p>
<p><code>#!/bin/bash<br />
export CFMX=/opt/coldfusionmx7<br />
export APACHE_PATH=/usr/local/apache<br />
export APACHE_BIN=$APACHE_PATH/bin<br />
#CFMX connector path eg $CFMX/runtime/lib/wsconfig/1<br />
export CFMX_CONNECTOR=$CFMX/lib/wsconfig/1<br />
#stop apache<br />
$APACHE_BIN/apachectl stop<br />
${APACHE_BIN}/apxs -c -Wc,-w -n jrun -S LIBEXECDIR=${CFMX_CONNECTOR}  mod_jrun.c<br />
jrun_maptable_impl.c  jrun_property.c  jrun_session.c platform.c<br />
jrun_utils.c jrun_mutex.c  jrun_proxy.c  jrun_ssl.c<br />
${APACHE_BIN}/apxs -i -n jrun -S LIBEXECDIR=${CFMX_CONNECTOR} mod_jrun.la<br />
strip   $CFMX_CONNECTOR/mod_jrun.so</code></p>
<p>Mine did error saying:</p>
<blockquote><p>apxs:Error: file mod_jrun.la is not a DSO</p></blockquote>
<p>but it all works.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2006/10/31/recompile-apache-13x-connector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColdFusion MX 7 Linux Install Errors</title>
		<link>http://ianwinter.co.uk/2006/10/25/coldfusion-mx-7-linux-install-errors/</link>
		<comments>http://ianwinter.co.uk/2006/10/25/coldfusion-mx-7-linux-install-errors/#comments</comments>
		<pubDate>Wed, 25 Oct 2006 11:14:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Came across this the other day on a new server I was building. $ ./coldfusion-702-lin.bin Preparing to install&#8230; Extracting the JRE from the installer archive&#8230; Unpacking the JRE&#8230; Extracting the installation resources from the installer archive&#8230; Configuring the installer for this system&#8217;s environment&#8230; Launching installer&#8230; ./coldfusion-702-lin.bin: line 2317: /tmp/install.dir.31481/Linux/resource/jre/bin/java: Permission denied ./coldfusion-702-lin.bin: line 2317: /tmp/install.dir.31481/Linux/resource/jre/bin/java: [...]]]></description>
			<content:encoded><![CDATA[<p>Came across this the other day on a new server I was building.</p>
<div class="code">$ ./coldfusion-702-lin.bin</p>
<p>Preparing to install&#8230;</p>
<p>Extracting the JRE from the installer archive&#8230;</p>
<p>Unpacking the JRE&#8230;</p>
<p>Extracting the installation resources from the installer archive&#8230;</p>
<p>Configuring the installer for this system&#8217;s environment&#8230;</p>
<p>Launching installer&#8230;</p>
<p>./coldfusion-702-lin.bin: line 2317: /tmp/install.dir.31481/Linux/resource/jre/bin/java: Permission denied</p>
<p>./coldfusion-702-lin.bin: line 2317: /tmp/install.dir.31481/Linux/resource/jre/bin/java: Success</p>
<p>
The workaround is set the IATEMPDIR variable<br />
mkdir /opt/IATEMPDIR<br />
export IATEMPDIR=/opt/IATEMPDIR</div>
<p><a href="http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&#038;file=00000005.htm" target="_blank">Taken from LiveDocs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2006/10/25/coldfusion-mx-7-linux-install-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coldfusion 6.1 Linux Hotspot Crashes</title>
		<link>http://ianwinter.co.uk/2006/01/13/coldfusion-61-linux-hotspot-crashes/</link>
		<comments>http://ianwinter.co.uk/2006/01/13/coldfusion-61-linux-hotspot-crashes/#comments</comments>
		<pubDate>Fri, 13 Jan 2006 22:12:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[hotspot]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Had another hotspot crash on a Linux server again today after months of not having any. Doing a bit of googling and finding myself back on Steven Erat&#8217;s very useful blog I found a user comment saying that in Sun&#8217;s JRE 1.4.2_10 they seem to have fixed the problem. As a result I&#8217;ve updated it [...]]]></description>
			<content:encoded><![CDATA[<p>Had another hotspot crash on a Linux server again today after months of not having any. Doing a bit of googling and finding myself back on <a href="http://www.talkingtree.com/blog/index.cfm/2004/5/21/hscrashlog0504" target="_blank">Steven Erat&#8217;s</a> very useful blog I found a user comment saying that in Sun&#8217;s JRE 1.4.2_10 they seem to have fixed the problem. As a result I&#8217;ve updated it along with a couple of hotfixes to CF and all seems well.</p>
<p>You can get the <a href="http://java.sun.com/j2se/1.4.2/download.html" target="_blank">JRE</a> from Sun&#8217;s Java site.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2006/01/13/coldfusion-61-linux-hotspot-crashes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eximstats failed</title>
		<link>http://ianwinter.co.uk/2006/01/13/eximstats-failed/</link>
		<comments>http://ianwinter.co.uk/2006/01/13/eximstats-failed/#comments</comments>
		<pubDate>Fri, 13 Jan 2006 22:11:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[If you&#8217;ve got a Linux box running Cpanel/WHM and you&#8217;ve updated recently you may now have eximstats failed and also noticed some DBD::MySQL errors in the process. Quick fix which worked for me is: /scripts/realperlinstaller &#8211;force DBD::mysql /scripts/restartsrv_eximstats /etc/init.d/chkservd restart]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve got a Linux box running Cpanel/WHM and you&#8217;ve updated recently you may now have eximstats failed and also noticed some DBD::MySQL errors in the process. Quick fix which worked for me is:</p>
<div class="code">/scripts/realperlinstaller &#8211;force DBD::mysql<br />
/scripts/restartsrv_eximstats<br />
/etc/init.d/chkservd restart</div>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2006/01/13/eximstats-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

