<?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>Because staying sane is a full time job</description>
	<lastBuildDate>Wed, 16 Jun 2010 19:56:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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 not STDOUT. I have used dos/windows for years and never had cause to know or use this but simply doing.
httpd.exe [...]]]></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>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/&amp;title=Redirecting+apache+command+line+output+on+Windows" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/&amp;title=Redirecting+apache+command+line+output+on+Windows" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/&amp;title=Redirecting+apache+command+line+output+on+Windows&amp;desc=So%2C%20you%20want%20to%20run%0D%0A%0D%0Ahttpd.exe%20-tS%0D%0A%0D%0Ato%20syntax%20check%20your%20conf%20file%20and%20view%20all%20virtual%20hosts.%20You%20need%20the%20virtual%20hosts%20info%20in%20a%20file%20but%0D%0A%0D%0Ahttpd.exe%20-tS%20%26gt%3Bfile.txt%0D%0A%0D%0Adoesn%27t%20work.%0D%0A%0D%0AThat%27s%20because%20apache%20output%20goes%20to%20STDERR%20not%20STDOUT.%20I%20have%20used%20dos%2Fwindows%20for%20years%20and%20never%20had%20c" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/&amp;bm_description=Redirecting+apache+command+line+output+on+Windows&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/&amp;title=Redirecting+apache+command+line+output+on+Windows" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/&amp;title=Redirecting+apache+command+line+output+on+Windows" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/&amp;title=Redirecting+apache+command+line+output+on+Windows" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://blog.lesgray.co.uk/2008/11/redirecting-apache-command-line-output-on-windows/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Redirecting+apache+command+line+output+on+Windows+-+http://b2l.me/efxx&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></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 a mysql localhost with the error &#8220;Can&#8217;t create TCP/IP socket (10106)&#8221;
After much googling and little answers (though [...]]]></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>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/&amp;title=Can%27t+create+TCP%2FIP+socket+%2810106%29+" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/&amp;title=Can%27t+create+TCP%2FIP+socket+%2810106%29+" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/&amp;title=Can%27t+create+TCP%2FIP+socket+%2810106%29+&amp;desc=This%20post%20may%20help%20some%20other%20Windows%2FApache%2FMod-fcgid%20users%20out.%0D%0A%0D%0AWe%20recently%20migrated%20a%20windows%202000%20Apache%20install%20to%20a%20Windows%20Server%202003%20box.%0D%0A%0D%0ADespite%20having%20all%20the%20mysql%20libs%2C%20the%20pho_sockets%20module%20etc%20configured%20php%20kept%20failing%20to%20connect%20to%20a%20mysql%20localhost%20with%20the%20error%20%22Can%27t%20cre" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/&amp;bm_description=Can%27t+create+TCP%2FIP+socket+%2810106%29+&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/&amp;title=Can%27t+create+TCP%2FIP+socket+%2810106%29+" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/&amp;title=Can%27t+create+TCP%2FIP+socket+%2810106%29+" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/&amp;title=Can%27t+create+TCP%2FIP+socket+%2810106%29+" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://blog.lesgray.co.uk/2008/11/cant-create-tcpip-socket-10106/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Can%27t+create+TCP%2FIP+socket+%2810106%29++-+http://b2l.me/efxz&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></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>
