<?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>UseStrict Consulting &#187; Apache</title>
	<atom:link href="http://usestrict.net/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://usestrict.net</link>
	<description>Professional IT Solutions &#38; Training</description>
	<lastBuildDate>Sat, 07 Jan 2012 14:05:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP/Apache quick troubleshooting</title>
		<link>http://usestrict.net/2009/01/phpapache-quick-troubleshooting/</link>
		<comments>http://usestrict.net/2009/01/phpapache-quick-troubleshooting/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 03:06:01 +0000</pubDate>
		<dc:creator>vinny</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://usestrict.net/?p=148</guid>
		<description><![CDATA[Troubleshooting Apache/PHP install]]></description>
			<content:encoded><![CDATA[<p>Just finished installing Apache+PHP on my machine after having it remastered&#8230; After recovering the &lt;VirtualHost&gt; settings from my old httpd.conf, and setting up PHP using the msi, all my old PHP pages were either simply not parsing the PHP code, or sometimes even printing it on the screen &#8211; NOT what I wanted.</p>
<p>So here&#8217;s a little heads up for anyone having the same problem:</p>
<p>a) Check your apache error logs. You&#8217;ll probably find them under your &lt;ApacheInstallDir&gt;/logs/<strong>error_log</strong></p>
<p>b) Verify that you have the <strong>AddType</strong> directive for PHP in your <strong>httpd.conf</strong> (<em><strong>AddType application/x-httpd-php .php</strong></em>); as well as the other settings for PHP (check install.txt file in your PHP directory)</p>
<p>c) Look for the <em><strong>short_open_tag</strong></em> directive in your <strong>php.ini</strong> file and set it to On if you want to be able to use <strong>&lt;?</strong> instead of only <strong>&lt;?php</strong></p>
<p>d) Make sure the <strong><em>display_startup_errors</em></strong> directive is set to <strong>On</strong></p>
<p>The culprit in my case was item c). I don&#8217;t have the patience of typing the 3 extra characters to open my PHP code, and PHP was simply ignoring it all.</p>
<p>Hope this helps.</p>
<p>[ad#middle_end] </p>
]]></content:encoded>
			<wfw:commentRss>http://usestrict.net/2009/01/phpapache-quick-troubleshooting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

