Re: [Mod-fcgid-users] 一个关于权限的问题

2009-10-31 Thread 张沈鹏
[Sat Oct 31 20:29:37 2009] [warn] (104)Connection reset by peer:
mod_fcgid: read data from fastcgi server error.
[Sat Oct 31 20:29:37 2009] [error] [client 127.0.0.1] Premature end of
script headers: zpyweb.fcgi

貌似是suexec的问题,一旦加上了suexec就有这问题
怎么解决呢,原来升级前是好的
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users


[Mod-fcgid-users] 一个关于权限的问题

2009-10-30 Thread 张沈鹏
原来用的是debian的state版本,一切正常,然后今天升级到了unstate

Zues:/var/log/apache2# apache2 -v
Server version: Apache/2.2.14 (Debian)
Server built:   Sep 29 2009 19:41:44

Package: libapache2-mod-fcgid
State: installed
Automatically installed: no
Version: 1:2.2-1
Priority: optional
Section: httpd
Maintainer: Tatsuki Sugiura s...@nemui.org
Uncompressed Size: 135k
Depends: libc6 (= 2.6.1-1), apache2.2-common
Description: an alternative module compat with mod_fastcgi
 It is a binary compatibility alternative to Apache module
mod_fastcgi. mod_fcgid has a new process management strategy, which
concentrates on reducing the number of
 fastcgi server, and kick out the corrupt fastcgi server as soon as possible.

我访问的时候总是出现这个错误

[Sat Oct 31 11:40:57 2009] [warn] mod_fcgid: can't apply process slot
for /home/vhost/s6/nttnhj/zpyweb.fcgi

网上google,貌似都是说是log文件夹权限的问题

于是我重写指定了文件夹

IfModule mod_fcgid.c
  SocketPath /var/log/apache2/fcgidsock
  AddHandlerfcgid-script .fcgi
  IdleTimeout 60
  IPCCommTimeout 10
  IPCConnectTimeout 5
/IfModule

。。。

VirtualHost *:81
ServerName nttnhj.cn
SuexecUserGroup s6 vhost
   # SuexecUserGroup www www
MaxClientsVHost 400
NiceValue 5

DocumentRoot /home/vhost/s6/nttnhj/
ErrorLog /maindata/log/vhost_apache/6_nttnhj_err.log
CustomLog /maindata/log/vhost_apache/6_nttnhj_access.log combined
ScriptAlias /nttnhj /home/vhost/s6/nttnhj/zpyweb.fcgi
Directory /home/vhost/s6/nttnhj/
#AddHandler  fcgid-script .fcgi
#RewriteEngine On
#RewriteCond   %{REQUEST_URI}  ^/nttnhj
#RewriteRule ^/nttnhj(.*)$ zpyweb.fcgi/$1 [QSA,L]
/Directory

/VirtualHost


用一个普通用户身份查看
Zues:s6 /var/log/apache2/fcgidsock:pwd
/var/log/apache2/fcgidsock

Zues:s6 /var/log/apache2:ls -alh
drwxr-xr-x 2 www  root 4.0K 2009-10-31 11:43 fcgidsock
-rwxr-xr-x 1 root root  21K 2009-10-31 11:02 other_vhosts
-rwxr-xr-x 1 root www-data   42 2009-10-31 10:25 suexec.log

但是,还是用同样的错误

我很郁闷

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users