首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

windows + apache2.26 + mod_fcgid + python有哪位高手弄成功过

2012-06-03 
windows + apache2.26 + mod_fcgid + python有谁弄成功过?本人在FreeBSD中调试安装Python + mod_fcgid 是

windows + apache2.26 + mod_fcgid + python有谁弄成功过?
本人在FreeBSD中调试安装Python + mod_fcgid 是弄好了,可是在Windows下就是不行,应该是那个python或flup的问题,总是出现请求错误,查看错误文档为:
[Thu Dec 06 16:33:27 2007] [notice] mod_fcgid: call C:/Server/Apache2.2/fastcgi/index.py with wrapper C:/DevTools/Python25/python.exe
[Thu Dec 06 16:33:27 2007] [warn] (OS 109)管道已结束。 : mod_fcgid: get overlap result error
[Thu Dec 06 16:33:27 2007] [error] [client 127.0.0.1] Premature end of script headers: index.py

但是我用网络上C写的fastcgi库SkyCGI测试可以正常运行。

哪位大虾指点一下。

我的配置为:
ScriptAlias /fastcgi/ "C:/Server/Apache2.2/fastcgi/"

<Directory "C:/Server/Apache2.2/fastcgi">
  SetHandler fcgid-script
  AllowOverride None
  Options +FollowSymLinks +ExecCGI
  Order allow,deny
  Allow from all
   
  FCGIWrapper "C:/DevTools/Python25/python.exe" .py
</Directory>

测试代码为:
#! python.exe路径
# 以上的一行应为我的实际python的实际路径

try:
  from flup.server.fcgi import WSGIServer

  def myapp(environ, start_response):
  start_response('200 OK', [('Content-Type', 'text/plain')])
  return ['Hello World!\n']

  WSGIServer(myapp).run()

except Exception, e:
  print 'Content-Type: text/plain\r\n\r\n',
  print 'Oops...'
  print
  print 'Trac detected an internal error:'
  print
  print e
  print
 

[解决办法]
windows + apache + fastcgi + python

其中python指的是什麼,是CGI嗎~~還是Django/Karrigell/web.py.....
[解决办法]
没这么用过,只用过apache + mod_python
不过python在WINDOWS下的管道操作似乎很成问题,经常遇到LINUX下常,windows下却提示“管道已结束”或“管道不存在”的现象
[解决办法]
49167832,可以去这群,希望和大家一起交流,顺便接分.
[解决办法]
我也遇到这样的问题,谁帮给解决下。

热点排行