<?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>Joe's Tech Blog &#187; IIS7</title>
	<atom:link href="http://www.joestechblog.com/tag/iis7/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joestechblog.com</link>
	<description>IT Support Notes, Tech Culture, Anything Geeky</description>
	<lastBuildDate>Mon, 26 Dec 2011 03:13:52 +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>Win2008/IIS7 + PHP5 FastCGI = 404 Error Messages</title>
		<link>http://www.joestechblog.com/2009/11/16/win2008iis7-php5-fastcgi-404-error-messages/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=win2008iis7-php5-fastcgi-404-error-messages</link>
		<comments>http://www.joestechblog.com/2009/11/16/win2008iis7-php5-fastcgi-404-error-messages/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 05:42:26 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Win2008]]></category>

		<guid isPermaLink="false">http://www.joestechblog.com/?p=35</guid>
		<description><![CDATA[Hopefully this saves someone some time. I spent hours working on a resolution before I came across it. Background: Installed Win2008 + IIS7 + PHP 5.3 using the FastCGI method (used the Windows installer to configure IIS7). Symptoms: PHP worked fine in my Default Site but when attempting to execute any scripts in Virtual Sites [...]]]></description>
			<content:encoded><![CDATA[<p>Hopefully this saves someone some time. I spent hours working on a resolution before I came across it.</p>
<p>Background: Installed Win2008 + IIS7 + PHP 5.3 using the FastCGI method (used the Windows installer to configure IIS7).</p>
<p>Symptoms: PHP worked fine in my Default Site but when attempting to execute any scripts in Virtual Sites or Virtual Directories, every single PHP file would yield a 404 error message.</p>
<p>Solution: The problem ended up being that the &#8216;open_basedir&#8217; config variable from the php config file is applied to ANYWHERE that PHP is run&#8230;regardless of what the actual home folder should be for a site (PHP picks up the basedir during installation and statically enters it in your php.ini file). The default &#8216;basedir&#8217; will be whatever the root of your &#8216;Default Web Site&#8217; in IIS is (usually c:\inetpub\wwwroot\). If you comment out this line (enter a semicolon before the line) and restart IIS, it will solve the problem. If you&#8217;re running PHP as a FastCGI module, you&#8217;ll actually have to rename (or copy) the php.ini file to a file named &#8216;php-cgi-fcgi.ini&#8217; in the same folder as your php-cgi.exe executable. Be sure to restart IIS!</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.joestechblog.com%2F2009%2F11%2F16%2Fwin2008iis7-php5-fastcgi-404-error-messages%2F&amp;t=Win2008%2FIIS7%20%2B%20PHP5%20FastCGI%20%3D%20404%20Error%20Messages" id="facebook_share_link_35">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_35') || document.getElementById('facebook_share_icon_35') || document.getElementById('facebook_share_both_35') || document.getElementById('facebook_share_button_35');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_35') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.joestechblog.com/2009/11/16/win2008iis7-php5-fastcgi-404-error-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

