<?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; compilation</title>
	<atom:link href="http://ianwinter.co.uk/tag/compilation/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>
	</channel>
</rss>

