当前位置: 首页 > OpenSource > 正文

Windows下安装 Lighttpd php fastcgi mysql环境

 windows下搭建apache+php+mysql环境很简单,不过也总会有一些问题

以下是我搭建过程中的遇到的问题:
Windows + apache2.2.11 + php5.2.9 + mysql5,每个软件安全都很简单,只是apache启动后半分钟就自动关闭。
具体日志如下:
[Mon May 25 23:34:13 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.9-1 configured — resuming normal operations
[Mon May 25 23:34:13 2009] [notice] Server built: Dec 10 2008 00:10:06
[Mon May 25 23:34:13 2009] [notice] Parent: Created child process 2860
[Mon May 25 23:34:14 2009] [notice] Child 2860: Child process is running
[Mon May 25 23:34:14 2009] [notice] Child 2860: Acquired the start mutex.
[Mon May 25 23:34:14 2009] [notice] Child 2860: Starting 64 worker threads.
[Mon May 25 23:34:14 2009] [notice] Child 2860: Starting thread to listen on port 8008.
[Mon May 25 23:35:01 2009] [notice] Parent: Received shutdown signal — Shutting down the server.
[Mon May 25 23:35:01 2009] [notice] Child 2860: Exit event signaled. Child process is ending.
[Mon May 25 23:35:02 2009] [notice] Child 2860: Released the start mutex
[Mon May 25 23:35:03 2009] [notice] Child 2860: All worker threads have exited.
[Mon May 25 23:35:03 2009] [notice] Child 2860: Child process is exiting
[Mon May 25 23:35:03 2009] [notice] Parent: Child process exited successfully.

试过了网上的所有办法:
httpd.conf上增加
MaxRequestsPerChild 0
EnableSendfile off

TCP-IP–高级–wins–启用LMHOSTS查询,禁用TCP/IP上的NetBios
关闭防火墙
都没有彻底解决。

甚至追溯到apache的bug,如下:
http://apache2triad.net/forums/archive/o_t__t_4162__setsockoptso-update-accept-context-failed.html
http://apache2triad.net/forums/viewtopic.php?t=55

郁闷中。。。即便是Linux下也没有如此费事啊!
后来想想http服务器又不只有apache,尝试一下其他的更高效、性能更好的服务器吧,nginx和lighttpd。
windows版lighttpd下载地址
具体配置看lighttpd的文档吧
http://en.wlmp-project.net/downloads.php
http://trac.lighttpd.net/trac/wiki/Docs

只是lighttpd在windows下启动的时候会有一个dos的窗口,大家可以找找RunHiddenConsole.exe这个东东,它可以隐藏dos窗口哩!

本文固定链接: https://www.2hei.net/2009/05/30/windows_lighttpd_php_fastcgi_m/ | 2hei.net

该日志由 u2 于2009年05月30日发表在 OpenSource 分类下,
原创文章转载请注明: Windows下安装 Lighttpd php fastcgi mysql环境 | 2hei.net

报歉!评论已关闭.