<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>lighty's life: lighttpd on cygwin</title>
    <link>http://blog.lighttpd.net/articles/2005/05/07/lighttpd-on-cygwin</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>lighttpd on cygwin</title>
      <description>&lt;p&gt;I spent some hours in the airport of Hong-Kong and wanted to get the &lt;a href="http://trac.lighttpd.net/trac/browser/branches/lighttpd-1.3.x/"&gt;1.3.x branch&lt;/a&gt;  running on &lt;a href="http://www.cygwin.com/"&gt;cygwin&lt;/a&gt; in combination with &lt;a href="http://www.php.net/"&gt;&lt;span class="caps"&gt;PHP&lt;/span&gt;&lt;/a&gt; via FastCGI. On the road I most often work under Windows on my Laptop and being able to really test it under every platform, even cygwin is a nice to have.&lt;/p&gt;


	&lt;p&gt;It was already spawned automaticly by the internal spawner after I had compiled &lt;span class="caps"&gt;PHP&lt;/span&gt; in cygwin myself with FastCGI support. The only thing missing was a working FastCGI handler. Debugging in cygwin is a lot harder than doing the same under Linux as the strace is tracing the emulated environment and not the native system calls:&lt;/p&gt;


	&lt;p&gt;$ strace&amp;#8212;mask=syscall .libs/lighttpd.exe -D -f ./lighttpd.conf&lt;/p&gt;


	&lt;p&gt;Adding a bunch of log_error_write() statements in the mod_fastcgi.c code somewhen revealed what is really going on. I still wonder why it ever worked at all :)&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://trac.lighttpd.net/trac/changeset/343"&gt;changeset 343&lt;/a&gt; is the final result of this debug session and will be part of 1.3.14 moving the &amp;#8216;please send me &lt;span class="caps"&gt;FDEVENT&lt;/span&gt;_IN&amp;#8217; before we return with &lt;span class="caps"&gt;WAIT&lt;/span&gt;_FOR_EVENT. This also removes the &amp;#8216;I got &lt;span class="caps"&gt;FDEVENT&lt;/span&gt;_OUT and don&amp;#8217;t know way&amp;#8217; messages than sometimes appeared.&lt;/p&gt;
</description>
      <pubDate>Sat, 07 May 2005 09:22:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:ed62a4180a9473756e331968caedc5c5</guid>
      <author>jan</author>
      <link>http://blog.lighttpd.net/articles/2005/05/07/lighttpd-on-cygwin</link>
      <category>lighttpd</category>
      <trackback:ping>http://blog.lighttpd.net/articles/trackback/2</trackback:ping>
    </item>
    <item>
      <title>"lighttpd on cygwin" by free ringtone for sprint phone</title>
      <description>Don't buy new phone - download new ringtone!</description>
      <pubDate>Sun, 18 Jun 2006 15:52:53 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:95047d7f-4dc8-4663-a35f-1d19d8190874</guid>
      <link>http://blog.lighttpd.net/articles/2005/05/07/lighttpd-on-cygwin#comment-1590</link>
    </item>
  </channel>
</rss>
