<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Running PHP4 and PHP5 together</title>
	<link>http://phpit.net/blog/running-php4-and-php5-together/</link>
	<description>PHPit has dozens of PHP articles, codesnippets and FAQ's.</description>
	<pubDate>Mon, 25 Sep 2006 15:38:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: Brendon Kozlowski</title>
		<link>http://phpit.net/blog/running-php4-and-php5-together/#comment-4</link>
		<pubDate>Thu, 01 Sep 2005 16:13:57 +0000</pubDate>
		<guid>http://phpit.net/blog/running-php4-and-php5-together/#comment-4</guid>
					<description>The following was what I used:


    ServerName 127.0.0.1
    ServerAdmin webmaster@mysiteonline.org
    DocumentRoot "C:/Apache/htdocs"
    DirectoryIndex index.html index.htm index.shtml index.shtm index.php index.cgi
    ErrorLog logs/error5.log
    CustomLog logs/access5.log combined
    SetEnv PHPRC C:/php5
    ScriptAlias /php/ "c:/php5/"
    AddType application/x-httpd-php .php
    Action application/x-httpd-php "/php/php-cgi.exe"


I found the AddHandler didn't work.  Figured I'd post this as a full example since Google had this listed as a top link.</description>
		<content:encoded><![CDATA[<p>The following was what I used:</p>
<p>    ServerName 127.0.0.1<br />
    ServerAdmin <a href="mailto:webmaster@mysiteonline.org">webmaster@mysiteonline.org</a><br />
    DocumentRoot &#8220;C:/Apache/htdocs&#8221;<br />
    DirectoryIndex index.html index.htm index.shtml index.shtm index.php index.cgi<br />
    ErrorLog logs/error5.log<br />
    CustomLog logs/access5.log combined<br />
    SetEnv PHPRC C:/php5<br />
    ScriptAlias /php/ &#8220;c:/php5/&#8221;<br />
    AddType application/x-httpd-php .php<br />
    Action application/x-httpd-php &#8220;/php/php-cgi.exe&#8221;</p>
<p>I found the AddHandler didn&#8217;t work.  Figured I&#8217;d post this as a full example since Google had this listed as a top link.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Dennis Pallett</title>
		<link>http://phpit.net/blog/running-php4-and-php5-together/#comment-3</link>
		<pubDate>Wed, 31 Aug 2005 19:41:37 +0000</pubDate>
		<guid>http://phpit.net/blog/running-php4-and-php5-together/#comment-3</guid>
					<description>Yes, you're right. I had to do some more fiddling to get everything running smoothly.</description>
		<content:encoded><![CDATA[<p>Yes, you&#8217;re right. I had to do some more fiddling to get everything running smoothly.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Brendon Kozlowski</title>
		<link>http://phpit.net/blog/running-php4-and-php5-together/#comment-2</link>
		<pubDate>Wed, 31 Aug 2005 18:25:13 +0000</pubDate>
		<guid>http://phpit.net/blog/running-php4-and-php5-together/#comment-2</guid>
					<description>You forgot two mention two things:

If someone wants to use their loaded DLLs with both versions, they are NOT compatible.  Therefore, one would need to use the following parameter within their VirtualHost directives:
    SetEnv PHPRC --path_to_PHP5_php.ini_file--

If the person has not yet set their Listen directive in their httpd.conf file, by default it's 80, and on Windows (at least v1.3.29, yes I have to upgrade) it is commented out.  Using your Listen 83 (or any other number) will render the default site (ala PHP4) unavailable.

Also, access logs can be helpful, use the CustomLog directive for that.</description>
		<content:encoded><![CDATA[<p>You forgot two mention two things:</p>
<p>If someone wants to use their loaded DLLs with both versions, they are NOT compatible.  Therefore, one would need to use the following parameter within their VirtualHost directives:<br />
    SetEnv PHPRC &#8211;path_to_PHP5_php.ini_file&#8211;</p>
<p>If the person has not yet set their Listen directive in their httpd.conf file, by default it&#8217;s 80, and on Windows (at least v1.3.29, yes I have to upgrade) it is commented out.  Using your Listen 83 (or any other number) will render the default site (ala PHP4) unavailable.</p>
<p>Also, access logs can be helpful, use the CustomLog directive for that.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
