Summary: | www-apache/mod_fcgid communication error | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Evert <evert.gentoo> |
Component: | [OLD] Server | Assignee: | Apache Team - Bugzilla Reports <apache-bugs> |
Status: | RESOLVED CANTFIX | ||
Severity: | normal | CC: | devnull, ramereth |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Evert
2007-03-16 10:50:03 UTC
Please, try w/ 2.1; 1.10 is way too old to be worth fixing. Fortunately, both mod_fastcgi and mod_fcgid can be installed at the same time and it's easy to switch using -D FASTCGI or -D FCGID in /etc/conf.d/apache2. Anyway, it doesn't look better using mod_fcgid-2.1: [Fri Mar 16 12:09:57 2007] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Fri Mar 16 12:09:57 2007] [error] [client XX.MY.IP.XX] Premature end of script headers: ocas.fcgi [Fri Mar 16 12:10:00 2007] [notice] mod_fcgid: process /data/ocal/server10g/ocas/bin/ocas.fcgi(1132) exit(communication error), get unexpected signal 11 Forgot to click "Reopen bug"... i also had some problems getting mod_fcgid to work last week. one problem was that the fcgid-socket was in a directory /var/log/apache2 which was not readable by the apacheusere adding these lines to /etc/apache2/modules.d/20_mod_fcgid.conf help me: SocketPath /var/run/fcgidsock.d SharememPath /var/run/fcgid_shm and created the direcotry /var/run7fcgidsock.d L(In reply to comment #4) > i also had some problems getting mod_fcgid to work last week. > > one problem was that the fcgid-socket was in a directory /var/log/apache2 which > was not readable by the apacheusere The problem you are talking about was fixed this week (bug 178407). Any better with 2.2? Well, since mod_fcgid does not work with Oracle Calendar I still need to use mod_fastcgi. And since mod_fastcgi is removed from portage, I had to put it into local/portage. And since mod_fastcgi does not work with apache 2.2, I had to mask >=apache-2.2. And since mod_fcgid-2.2 now seems to need apache 2.2, I can't simply try mod_fcgid-2.2! Also, I found out that I have some apache statements which I need to rewrite for mod_fcgid, but I have no idea how to rewrite those statements, so before I'm gonna try mod_fcgid-2.2 including installing apache-2.2, can you please tell me how the following apache statements should be rewritten for use with mod_fcgid? <IfModule mod_fastcgi.c> <Directory "/data/ocal/server10g/ocas/bin/"> SetHandler fastcgi-script AllowOverride None Options None Order allow,deny Allow from all <IfModule mod_ossl.c> SSLOptions +StdEnvVars </IfModule> </Directory> FastCgiExternalServer /data/ocal/server10g/ocas/bin/ocas.fcgi -appConnTimeout 300 -idle-timeout 300 -pass-header REMOTE_USER -host localhost:8010 FastCgiExternalServer /data/ocal/server10g/ocas/bin/ochecklet.fcgi -appConnTimeout 300 -idle-timeout 300 -host localhost:8011 </IfModule> FYI, www-apache/mod_fastcgi-2.4.4_pre20070916 is in portage again, bug #133563 Welcome back mod_fastcgi! I already got the patch and ebuild from that bug and that way I got mod_fastcgi working with apache-2.2. But not having to put it in local/portage is of course much better! :) you can use mod_fcgid-2.2 with apache-2.0, you need to copy the ebuild to /usr/local and change need_apache2_2 to need_apache2 works perfectly for me. btw: this is should be fixed anyway, i wanted to fill a bug report for that long time ago... I still need to know how to rewrite those apache statements before I can try mod_fcgid-2.2, especially those FastCgiExternalServer statements and according to https://bugs.gentoo.org/show_bug.cgi?id=133563#c12 that seems to be a real problem... Well, get back to us if 2.2 doesn't work. Noone's gonna fix 1.10 > Well, get back to us if 2.2 doesn't work. Noone's gonna fix 1.10
Well, that's not the issue. I'm willing to try mod_fcgid-2.2 but for that I need to know if and how FastCgiExternalServer is supported.
By the way, my current working configuration is apache-2.2.6 with mod_fastcgi-2.4.4_pre20070916 so it won't be a problem anymore if mod_fcgid-2.2 doesn't support FastCgiExternalServer.
please reopen if there is still an issue Well let me explain the issue because it seems the issue is not very clear: The reason for creating this bugreport in the first place is that gentoo dropped mod_fastcgi from portage in favor of mod_fcgid which didn't work for Oracle Calendar Application System. Now, gentoo re-added mod_fastcgi so in fact the whole reason for trying mod_fcgid has gone... for now... So, if you're not interested in getting Oracle Calendar Application System to work with mod_fcgid, I'll stick with mod_fastcgi until the gentoo team decides to drop mod_fastcgi... again... I see the state of this bug is marked as RESOLVED TEST-REQUEST but for that I still *need input* from gentoo how to rewrite mod_fastcgi's statement FastCgiExternalServer for mod_fcgid. If that's too hard to understand, please leave this bug closed forever and ever! (In reply to comment #14) > please reopen if there is still an issue > apache-2.2.6-r7(the same with 2.2.8) mod_fcgid-2.2 scripts are working ok with apache-2.2.6(on other server), after upgrading i got 500 error ... exit(communication error), get unexpected signal 11 [Wed Feb 27 00:55:10 2008] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. i848 ~ # emerge -pv =www-servers/apache-2.2.6* These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] www-servers/apache-2.2.6-r7 USE="ldap ssl suexec threads -debug -doc (-selinux) -sni -static" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -authn_alias -cern_meta -charset_lite -dumpio -log_forensic -proxy_ftp -version" APACHE2_MPMS="worker -event -itk -peruser -prefork" 0 kB Vhost: <IfDefine FCGID> SuexecUserGroup becha becha <Directory /var/www/denco.ru/html/myshop/admin> AddHandler fcgid-script .php .php3 .php4 .phtml FCGIWrapper /var/www/site/php-fcgi/php5-fcgi .php Options +ExecCGI Allow From All AllowOverride All </Directory> </IfDefine> FCGIWrapper: #!/bin/sh PHPRC="/home/becha/mysites/etc/cgi-php5/" export PHPRC PHP_FCGI_CHILDREN=4 export PHP_FCGI_CHILDREN exec /usr/bin/php-cgi /etc/apache2/modules.d/20_mod_fcgid.conf: <IfDefine FCGID> LoadModule fcgid_module modules/mod_fcgid.so SocketPath /var/run/fcgidsock SharememPath /var/run/fcgid_shm IPCConnectTimeout 30 # IPCCommTimeout 120 IPCCommTimeout 200 PHP_Fix_Pathinfo_Enable 1 </IfDefine> reopen, see comment #16 (In reply to comment #15) > I see the state of this bug is marked as RESOLVED TEST-REQUEST but for that I > still *need input* from gentoo how to rewrite mod_fastcgi's statement > FastCgiExternalServer for mod_fcgid. If that's too hard to understand, please > leave this bug closed forever and ever! unfortunately i cannot help you there, but mod_fastcgi will stay in the tree ... mod_fastcgi will stay in the tree so I guess there's no point for this bug to stay open anymore, closing... |