<?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>Stuff and Nonsense &#187; Windows Apache MySQL PHP</title>
	<atom:link href="http://blog.lesgray.co.uk/categories/windows-apache-mysql-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lesgray.co.uk</link>
	<description>Observations, rants and raves.</description>
	<lastBuildDate>Sat, 30 Jul 2011 20:39:51 +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>Redirecting apache command line output on Windows</title>
		<link>http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/</link>
		<comments>http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 10:13:46 +0000</pubDate>
		<dc:creator>Les</dc:creator>
				<category><![CDATA[Windows Apache MySQL PHP]]></category>

		<guid isPermaLink="false">http://blog.lesgray.co.uk/?p=106</guid>
		<description><![CDATA[So, you want to run httpd.exe -tS to syntax check your conf file and view all virtual hosts. You need the virtual hosts info in a file but httpd.exe -tS &#62;file.txt doesn&#8217;t work. That&#8217;s because apache output goes to STDERR &#8230; <a href="http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So, you want to run</p>
<p>httpd.exe -tS</p>
<p>to syntax check your conf file and view all virtual hosts. You need the virtual hosts info in a file but</p>
<p>httpd.exe -tS &gt;file.txt</p>
<p>doesn&#8217;t work.</p>
<p>That&#8217;s because apache output goes to STDERR not STDOUT. I have used dos/windows for years and never had cause to know or use this but simply doing.</p>
<p>httpd.exe -tS 2&gt;file.txt</p>
<p>Will work as it sends the STDERR output to the file you specify.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t create TCP/IP socket (10106)</title>
		<link>http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/</link>
		<comments>http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 11:53:29 +0000</pubDate>
		<dc:creator>Les</dc:creator>
				<category><![CDATA[Windows Apache MySQL PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server 2003]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.lesgray.co.uk/?p=80</guid>
		<description><![CDATA[This post may help some other Windows/Apache/Mod-fcgid users out. We recently migrated a windows 2000 Apache install to a Windows Server 2003 box. Despite having all the mysql libs, the pho_sockets module etc configured php kept failing to connect to &#8230; <a href="http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This post may help some other Windows/Apache/Mod-fcgid users out.</p>
<p>We recently migrated a windows 2000 Apache install to a Windows Server 2003 box.</p>
<p>Despite having all the mysql libs, the pho_sockets module etc configured php kept failing to connect to a mysql localhost with the error &#8220;<strong>Can&#8217;t</strong> <strong>create</strong> <strong>TCP/IP</strong> <strong>socket</strong> <strong>(10106)</strong>&#8221;</p>
<p>After much googling and little answers (though many others having the same problem) I realised that in my httpd.conf in the section where we set runtime values for the PHP (such as PHP_RC, TEMP FOLDER etc.) included the path C:\WINNT which of course was fine on windows 200 but on Server 2003 should have been C:\WINDOWS.</p>
<p>Once all these paths were changed and apache started, all was well.</p>
<p>My guess is that php_sockets is dependent upon windows winsock implementation and with duff paths being passed to php-cgi.exe the winsock library could not be loaded and hence all socket stuff failed.</p>
<p>I&#8217;m only guessing though. Whatever the reason it&#8217;s unimportant since there was a clear problem with the paths.</p>
<p>Hope this saves someone else a couple of hours!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
