<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>There&apos;s something in my monitor...</title>
    <link rel="alternate" type="text/html" href="http://rod.pu-gh.com/" />
    <link rel="self" type="application/atom+xml" href="http://rod.pu-gh.com/atom.xml" />
    <id>tag:rod.pu-gh.com,2008-11-15://5</id>
    <updated>2008-12-26T18:56:49Z</updated>
    <subtitle>Random ramblings</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.21-en</generator>

<entry>
    <title>Beautiful video</title>
    <link rel="alternate" type="text/html" href="http://rod.pu-gh.com/2008/12/beautiful-video.html" />
    <id>tag:rod.pu-gh.com,2008://5.8</id>

    <published>2008-12-26T18:55:18Z</published>
    <updated>2008-12-26T18:56:49Z</updated>

    <summary>Just came across a new video by &quot;The American Dollar&quot; on last.fm....</summary>
    <author>
        <name>rod</name>
        
    </author>
    
    
    <content type="html" xml:lang="en-us" xml:base="http://rod.pu-gh.com/">
        <![CDATA[Just came across a new video by "The American Dollar" on last.fm.

<br /><br />

<object type="application/x-shockwave-flash" data="http://cdn.last.fm/videoplayer/33/VideoPlayer.swf" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="lfmEmbed_50_19114803_1293936010" width="340" height="289"> <param name="movie" value="http://cdn.last.fm/videoplayer/33/VideoPlayer.swf" /> <param name="flashvars" value="title=Anything+You+Synthesize&amp;uniqueName=19114803&amp;albumArt=http%3A%2F%2Fuserserve-ak.last.fm%2Fserve%2F34s%2F5468143.jpg&amp;duration=288&amp;image=http%3A%2F%2Fuserserve-ak.last.fm%2Fserve%2Fimage%3A320%2F19114803.jpg&amp;FSSupport=true&amp;album=A+Memory+Stream&amp;creator=The+American+Dollar" /> <param name="allowScriptAccess" value="always" /> <param name="allowNetworking" value="all" /> <param name="allowFullScreen" value="true" /> <param name="quality" value="high" /> <param name="bgcolor" value="000000" /> <param name="wmode" value="opaque" /> <param name="menu" value="false" /> </object>]]>
        
    </content>
</entry>

<entry>
    <title>Multiple PHP Versions with Apache</title>
    <link rel="alternate" type="text/html" href="http://rod.pu-gh.com/2008/11/multiple-php-versions-with-apache.html" />
    <id>tag:rod.pu-gh.com,2008://5.7</id>

    <published>2008-11-15T18:58:58Z</published>
    <updated>2008-11-15T19:17:29Z</updated>

    <summary><![CDATA[Sometimes you'll find that (for whatever crappy reason, supporting legacy junk apps being the most probable) you need to run multiple version of PHP on your web server.&nbsp; There are a bunch of different solutions I've found people suggesting (using...]]></summary>
    <author>
        <name>rod</name>
        
    </author>
    
    <category term="apache" label="apache" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="php" label="php" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-us" xml:base="http://rod.pu-gh.com/">
        <![CDATA[Sometimes you'll find that (for whatever crappy reason, supporting legacy junk apps being the most probable) you need to run multiple version of PHP on your web server.&nbsp; There are a bunch of different solutions I've found people suggesting (using virtual hosts, running one as a module and one as CGI, etc...) but if you're happy running PHP as CGI then this solution may be simpler for you.<br /><br />The idea is that we'll set up a "default" version of PHP which will
handle all our PHP pages, but then for any particular applications that
need other versions we'll handle those differently.<br /><br />So, first the default setup, open <i>httpd.conf</i>...<br /><br />

<code>
ScriptAlias /php-5/ "C:/php/5.3/"<br />AddType application/x-httpd-php .php<br />Action application/x-httpd-php "/php-5/php.exe"</code><br /><br />Then we'll override this setup for each of our applications that require a specific version of PHP.<br /><br />

<code>ScriptAlias /php-4.4.9/ "C:/php/4.4.9"<br />&lt;Location /my/old/app&gt;<br />&nbsp;&nbsp;&nbsp; Action application/x-httpd-php "/php-4.4.9/php.exe"<br />&lt;/Location&gt;</code>

<br /><br />Easy!&nbsp; No need to run multiple versions of Apache, or fight with strange configuration.<br /><br />One thing you'll need to do is copy all of the DLL's from each PHP version into the root directory of that version, and of course have different php.ini's for each one, but I'm not going to go into all that config.<br /><br />I've only tried this on Windows, but it should work on other platforms to.<br />]]>
        <![CDATA[<br />]]>
    </content>
</entry>

</feed>
