0 0

Apache2 mod_fcgid 问题10

今天想试用一下python fcgid 装好以后发现
执行cgi脚本无效,错误日志如下:
编译fcgid的时候参考 http://blog.brandonking.net/?p=34
在Makefile 中添加了
CFLAGS = -arch ppc -arch ppc64 -arch i386 -arch x86_64

[Wed Oct 29 10:17:03 2008] [emerg] (13)Permission denied: mod_fcgid: can't get lock, pid: 15556
[Wed Oct 29 10:17:03 2008] [emerg] (13)Permission denied: mod_fcgid: can't get lock, pid: 15555
[Wed Oct 29 10:17:04 2008] [error] mod_fcgid: fcgid process manager died, restarting the server
向各位英雄请教,小弟先行谢过~

Apache config:

LoadModule fcgid_module modules/mod_fcgid.so

<IfModule mod_fcgid.c>
  AddHandler fcgid-script .fcgi .fpy .fcg
  SocketPath /Applications/xampp/xamppfiles/temp/fcgid_sock
  SharememPath  /Applications/xampp/xamppfiles/temp/fcgid_shm
  IPCConnectTimeout 20
Alias /fcgi /Applications/xampp/xamppfiles/fcgi-bin/
<Directory "/Applications/xampp/xamppfiles/fcgi-bin">
	SetHandler fcgid-script
	# FCGIWrapper "/usr/bin/env python2.5" .py 
	DirectoryIndex index.html index.py index.pl index.php
    Options +ExecCGI +FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>
</IfModule>


test.fcgi 脚本内容如下,已经装好flup包了
#!/usr/bin/env python2.5
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

2008年10月29日 10:30
目前还没有答案

相关推荐

    mod_fcgid-2.3.9.tar.bz2

    Apache mod_fcgid 用于 Apache HTTP Server 的 FastCGI 模块作为 2.3.9 发布。

    mod_fcgid-2.3.9.tar.gz

    Apache mod_fcgid 用于 Apache HTTP Server 的 FastCGI 模块作为 2.3.9 发布

    mod_fcgid-2.3.9_windows_x64

    mod_fcgid-2.3.9 x64 适用于Windows平台Apache 2.4 亲测可用

    Apache2.4 Win64位

    LoadModule fcgid_module modules/mod_fcgid.so &lt;IfModule mod_fcgid.c&gt; FcgidMaxRequestsPerProcess 1000 FcgidMaxProcesses 15 FcgidIOTimeout 600 FcgidIdleTimeout 600 MaxRequestLen 104857600 #-------------...

    mod_fcgid-2.3.9_x86

    32位Apache FCGID模块,已确认切实可用,验证Apache版本:2.4

    mod_fcgid-2.3.6-win32-x86.zip

    windows 下 apache 开启fcgid模式 的mod_fastcgi.dll

    mod_fcgid.so

    win10下编译 apache2.4的fcgid模块,X64平台。 用于window下多个虚拟主机配置不同php版本等情景 注意:PHP的地址不能包含空格,比如Program Files这样的路径,不然有问题,至于为什么,我也不知道

    mod_fcgid-开源

    它是Apache模块mod_fastcgi的二进制兼容性替代方案。 mod_fcgid具有新的进程管理策略,该策略专注于减少fastcgi服务器的数量,并尽快踢出损坏的fastcgi服务器。

    apache和C++实现fastcgi时Apache中httpd.conf的配置

    apache和C++实现fastcgi时Apache中httpd.conf的配置

    Apache FastCGI 配置过程小记

    对于配置过程其实比较简单只是纠结于在win32环境下apache 模块 mod_fcgid由于管道问题无法达成,而mod_fastcgi模块则可以达成

    Apache 2.4.39 Win64

    Windows 环境 Apache 最新下载 Apache 2.4.39 Win64 httpd-2.4.39-win64-VC15

    Apache 2.4 modules VS16.zip

    Apache 2.4 modules VS16模块(dbd_modules,mod_bw,mod_evasive,mod_fcgid,mod_jk,mod_log_rotate,mod_security,mod_view,mod_watch,mod_xsendfile),从官网下载的全部模块,包含X86和X64,仅做搬运工!

    由Apache 500错误引出的临时文件问题分析解决

    查看apache日志,发觉是mod_fcgid模块异常,提示”Connection reset by peer:mod_fcgid:error reading data from FastCGI server”、”Premature end of script headers:index.php”、”process /usr/… apache/cgi-...

    chrome_render_service:轻量级,Chrome通过HTTP API作为服务

    只需使用mod_fcgid和mod_proxy安装Apache,将两个文件放... 安装Apache 2.x和 (顺便说一句,我是这个模块的创建者) 我在用百胜,所以sudo yum install httpd mod_fcgid 安装这些Node.js模块 export PUPPETEER_SKIP_CH

    Apache2.2 + FastCGI + gSOAP搭建 WebService工具

    Apache2.2 + FastCGI + gSOAP搭建 WebService工具,内含: 1、fcgi-2.4.1-SNAP-0910052249.tar.gz 2、mod_fcgid-2.3.9-crlf.zip 3、httpd-2.2.25-win32-x86-openssl-0.9.8y.msi

    apache安装依赖包

    apr-1.6.3.tar.gz;apr-util-1.6.0.tar.bz2;httpd-2.4.29.tar.gz;mod_fcgid-2.3.9.tar.gz;pcre2-10.30.zip;五合一

    detectem:detectem-在网站上检测软件及其版本

    $ det http://domain.tld[{ ' name ' : ' phusion-passenger ' , ' version ' : ' 4.0.10 ' }, { ' name ' : ' apache-mod_bwlimited ' , ' version ' : ' 1.4 ' }, { ' name ' : ' apache-mod_fcgid ' , ' version...

    multiple-php-version-with-xampp

    原因 ... 我们不想使用不同的端口运行多个XAMPP。...它是如何工作的? XAMPP使用mod_php运行php,这意味着您只能在xampp上使用1... 解压缩mod_fcgid-2.3.9-win32-VC15.zip并将文件mod_fcgid.so复制到C:/xampp/apache/modules

Global site tag (gtag.js) - Google Analytics