Since mod_fastcgi is masked, I tried mod_fcgid for use with the Oracle Calendar webclient. As it does not work I had to unmask mod_fastcgi and change back to mod_fastcgi.
Steps to Reproduce:
1. /etc/init.d/apache2 stop
2. emerge -C mod_fastcgi
3. emerge -a mod_fcgid
4. replace -D FASTCGI for -D FCGID in /etc/conf.d/apache2
5. add .fcgi in /etc/apache2/modules.d/20_mod_fcgid.conf like this:
AddHandler fcgid-script .fcg .fcgi
6. /etc/init.d/apache2 start
Oracle Calendar webclient does not work.
[Fri Mar 16 10:43:04 2007] [notice] mod_fcgid: server /data/ocal/server10g/ocas/bin/ocas.fcgi(28352) started
[Fri Mar 16 10:43:05 2007] [error] [client XX.MY.IP.XX] Premature end of script headers: ocas.fcgi
[Fri Mar 16 10:43:10 2007] [notice] mod_fcgid: process /data/ocal/server10g/ocas/bin/ocas.fcgi(28352) exit(communication error), get unexpected signal 11
A working Oracle Calendar webclient just like when using mod_fastcgi
# emerge --info
Portage 184.108.40.206 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.3.6-r4, 220.127.116.11 i686)
System uname: 18.104.22.168 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 16 Mar 2007 06:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
CFLAGS="-O2 -mtune=i686 -pipe"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
LINGUAS="de en nl"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
USE="X a52 aac alsa apache2 apm berkdb bitmap-fonts cli cracklib crypt cups dri dvd dvdr dvdread encode esd fortran gdbm gif gnome gpm gstreamer gtk iconv imlib ipv6 isdnlog java jpeg ldap libg++ mad midi mikmod mmx mng mozilla mp3 mpeg mplayer ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spell spl sse ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vcd vorbis wmf x86 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en nl" USERLAND="GNU" VIDEO_CARDS="vesa fbdev i810"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
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:
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?
Allow from all
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
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)
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
SuexecUserGroup becha becha
AddHandler fcgid-script .php .php3 .php4 .phtml
FCGIWrapper /var/www/site/php-fcgi/php5-fcgi .php
Allow From All
LoadModule fcgid_module modules/mod_fcgid.so
# IPCCommTimeout 120
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...