From greg.denton at gmail.com Fri Jan 2 14:14:18 2009 From: greg.denton at gmail.com (Greg Denton) Date: Fri, 2 Jan 2009 11:14:18 -0800 Subject: [FASTCGI] fcgi_i/ostream - deprecated? In-Reply-To: <1230675266.6229.12.camel@localhost> References: <1230578586.5995.0.camel@localhost> <1230579501.6106.5.camel@localhost> <1230675266.6229.12.camel@localhost> Message-ID: Ooops....apologies, looks like this problem has something to do with my libcurl-based load test app and not the fcgi_streambuf peek(). Thanks for the tips, though, I did switch to mod_fastcgi. On Tue, Dec 30, 2008 at 2:14 PM, Eddie wrote: > On Tue, 2008-12-30 at 13:59 -0800, Greg Denton wrote: >> Anyone have a guess at whether it's mod_fcgid or fcgi_streambuf (or >> the combination), before I start diving into code? Thanks. > > I would guess it is fcgi_streambuf. I have run none-fcgi_streambuf code > through some pretty rigorous tests without any issues. I would still > recommend testing it out with mod_fastcgi anyway though. I have noticed > while analyzing fcgid vs. fastcgi a few minor differences in the way > data is communicated. Those differences however seem to be more due to > vague parts of the FastCGI specification. > -- > Eddie > > > From dekimsey at ufl.edu Mon Jan 12 17:45:50 2009 From: dekimsey at ufl.edu (Danny Kimsey) Date: Mon, 12 Jan 2009 17:45:50 -0500 Subject: [FASTCGI] Missing env variable using cgi-fcgi standalone In-Reply-To: <31a769aa0901121444i6297621cs4f9ffcb0167ae114@mail.gmail.com> References: <31a769aa0901121444i6297621cs4f9ffcb0167ae114@mail.gmail.com> Message-ID: <31a769aa0901121445l13f594e2t1636d0df4724e25f@mail.gmail.com> I am testing the my application using cgi-fcgi as a standalone, and although the application runs some enviromental variables are missing in the context of the application. Specifically, REMOTE_USER, which comes from Apache's Auth* configuration. Any ideas what might be causing this? (The application itself is perl) -- Danny. The mind of the believer stagnates. It fails to grow outward into an unlimited, infinite universe. -Frank Herbert From simon at optinet.com Mon Jan 12 19:28:46 2009 From: simon at optinet.com (Simon) Date: Mon, 12 Jan 2009 19:28:46 -0500 Subject: [FASTCGI] Missing env variable using cgi-fcgi standalone In-Reply-To: <31a769aa0901121445l13f594e2t1636d0df4724e25f@mail.gmail.com> Message-ID: <20090113002851.A34A84934@smtp.chelsea.net> Is your script behind a wrapper? If so, make sure the wrapper isn't filtering the ENV out. Apache's default suexec does this, although REMOTE_USER should not be filtered by default. Also check your log to make sure when you are accessing the script the user is logged, otherwise your authentication is misconfigured. -Simon On Mon, 12 Jan 2009 17:45:50 -0500, Danny Kimsey wrote: >I am testing the my application using cgi-fcgi as a standalone, and >although the application runs some enviromental variables are missing >in the context of the application. >Specifically, REMOTE_USER, which comes from Apache's Auth* >configuration. Any ideas what might be causing this? (The application >itself is perl) >-- >Danny. >The mind of the believer stagnates. It fails to grow outward into an >unlimited, infinite universe. > -Frank Herbert >_______________________________________________ >FastCGI-developers mailing list >FastCGI-developers at mailman.fastcgi.com >http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers -------------- next part -------------- An HTML attachment was scrubbed... URL: From dekimsey at ufl.edu Sat Jan 17 12:59:41 2009 From: dekimsey at ufl.edu (Danny Kimsey) Date: Sat, 17 Jan 2009 12:59:41 -0500 Subject: [FASTCGI] Missing env variable using cgi-fcgi standalone In-Reply-To: <20090113002851.A34A84934@smtp.chelsea.net> References: <31a769aa0901121445l13f594e2t1636d0df4724e25f@mail.gmail.com> <20090113002851.A34A84934@smtp.chelsea.net> Message-ID: <31a769aa0901170959i55c0020fsedf33a1110ec473f@mail.gmail.com> We wrapped it in a bash script to test it, I'll check but I'm uncertain as of yet what the problem is. On Mon, Jan 12, 2009 at 7:28 PM, Simon wrote: > > Is your script behind a wrapper? If so, make sure the wrapper isn't > filtering the > ENV out. Apache's default suexec does this, although REMOTE_USER > should not be filtered by default. > > Also check your log to make sure when you are accessing the script the > user is logged, otherwise your authentication is misconfigured. > > -Simon > > On Mon, 12 Jan 2009 17:45:50 -0500, Danny Kimsey wrote: > >>I am testing the my application using cgi-fcgi as a standalone, and >>although the application runs some enviromental variables are missing >>in the context of the application. >>Specifically, REMOTE_USER, which comes from Apache's Auth* >>configuration. Any ideas what might be causing this? (The application >>itself is perl) >> >> >>-- >>Danny. >> >>The mind of the believer stagnates. It fails to grow outward into an >>unlimited, infinite universe. >> -Frank Herbert >>_______________________________________________ >>FastCGI-developers mailing list >>FastCGI-developers at mailman.fastcgi.com >>http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers >> > > > _______________________________________________ > FastCGI-developers mailing list > FastCGI-developers at mailman.fastcgi.com > http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers > > -- Danny. The mind of the believer stagnates. It fails to grow outward into an unlimited, infinite universe. -Frank Herbert From helo23.5 at gmail.com Sun Jan 18 02:49:10 2009 From: helo23.5 at gmail.com (asdasd asdasd) Date: Sun, 18 Jan 2009 08:49:10 +0100 Subject: [FASTCGI] apache+php+fastcgi+suexec Message-ID: <5ddc32f90901172349m5b5b45fcj6f73f321052c0375@mail.gmail.com> Hi. I'm new user of fastcgi but it seems i noticed a bug in it. FastCgiIpcDir /usr/aa AddHandler fastcgi-script .fcgi FastCgiSuexec /usr/h2/bin/suexec FastCgiConfig -killInterval 30 -pass-header HTTP_AUTHORIZATION -startDelay 3 Options ExecCGI SetHandler fastcgi-script ServerAlias adres.strony.pl DocumentRoot /home/user/public_html/ SuexecUserGroup user user ScriptAlias /php-fastcgi/ /usr/suexec/ AddType application/x-httpd-fastphp .php Action application/x-httpd-fastphp /php-fastcgi/fcgi Everything works fine with this configuration but there is a huge problem. If I run script that will execute for 23s new fcgi childs will spawn every 3 seconds (as set in startDelay), even thou those new childs will be free. Spawning will continue until maxClassProcessess is reached. Its like fastcgi check only if first handler is available and will continue spawning new halders every if they will be not busy. This is very bad because this equals to staticly settings number of handlers. Simultaniously I can run scripts that will execute in 1 seconds, because there are many free handlers, but if scripts continue for more than 3 seconds new handlers are always spawned until maxClassProcessess is reached. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rasmus at flajm.com Sat Jan 24 12:36:06 2009 From: rasmus at flajm.com (Rasmus Andersson) Date: Sat, 24 Jan 2009 18:36:06 +0100 Subject: [FASTCGI] Patch for "Symbol not found: _environ" on Mac OS X Message-ID: Hello all, First off: I'm new on this list but have been developing with libfcgi for about four years now. Recently a bug was discovered when Python 2.5.4 was updated in MacPorts ? libfcgi relies on extern char **environ on Mac OS X, which does not exist. I know, it's really sick Apple does not export it POSIX-style. However, the ugly bug fully correct fix is to #define environ (*_NSGetEnviron()). -- Rasmus Andersson -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-cgi-fcgi-cgi-fcgi.c.diff Type: application/octet-stream Size: 355 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-libfcgi-fcgi_stdio.c.diff Type: application/octet-stream Size: 371 bytes Desc: not available URL: From dj__manu at hotmail.fr Wed Jan 28 17:44:21 2009 From: dj__manu at hotmail.fr (dj__manu at hotmail.fr) Date: Wed, 28 Jan 2009 23:44:21 +0100 Subject: [FASTCGI] FastCGI: comm with server "... /test.pl" aborted: GetOverlappedResult() failed Message-ID: Hi all, Can't make apache2.2.11+FCGI+windows (vista) work and google didn't help Using the simple synopsis code of FCGI (which works fine as a standalone script): ------------------------------------------ use FCGI; my $count = 0; my $request = FCGI::Request(); while($request->Accept() >= 0) { print("Content-type: text/html\r\n\r\n", ++$count); } --------------------------------------------- I keep getting this error : [Wed Jan 28 22:39:53 2009] [warn] FastCGI: (dynamic) server "D:/Apache/fcgi-bin/test2.pl" restarted (pid 4316) [Wed Jan 28 22:39:53 2009] [error] [client 127.0.0.1] (OS 109)Le canal de communication a été fermé. : FastCGI: comm with server "D:/Apache/fcgi-bin/test2.pl" aborted: GetOverlappedResult() failed [Wed Jan 28 22:39:53 2009] [error] [client 127.0.0.1] FastCGI: incomplete headers (0 bytes) received from server "D:/Apache/fcgi-bin/test2.pl" Any idea ? ------------------------------------------------- Extracted from my httpd.conf file: LoadModule fastcgi_module modules/mod_fastcgi-2.4.6-AP22.dll SetHandler fastcgi-script Options +ExecCGI AllowOverride None Options None Order allow,deny Allow from all -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 253 bytes Desc: not available URL: From webmaster at cosmicperl.com Wed Jan 28 22:57:00 2009 From: webmaster at cosmicperl.com (Lyle) Date: Thu, 29 Jan 2009 03:57:00 +0000 Subject: [FASTCGI] FastCGI: comm with server "... /test.pl" aborted: GetOverlappedResult() failed In-Reply-To: References: Message-ID: <4981290C.4010102@cosmicperl.com> dj__manu at hotmail.fr wrote: > Hi all, > > Can't make apache2.2.11+FCGI+windows (vista) work and google didn't > help Triste émoticône > > Using the simple synopsis code of FCGI (which works fine as a > standalone script): I've only tested FCGI on Windows/IIS, but have you tried getting FCGI::IIS to run? I has a test mode which should work on Apache as well. Also it might be worth trying CGI::Fast Lyle From root at menkisys.net Thu Jan 29 03:50:48 2009 From: root at menkisys.net (root at menkisys.net) Date: Thu, 29 Jan 2009 09:50:48 +0100 Subject: [FASTCGI] (4)Interrupted system call: Message-ID: <9DA70D3062854EF491DA4C93433A28AA@econ.eu> Hello I have a problem with fastcgi with Interrupted system calls in my error log. My config: Debian Etch 64bit 4GB Ram Apache/2.2.0 (Debian) mod_fastcgi/2.4.2 PHP Version 5.2.0-8+etch13 Zend Engine v2.2.0 fastcgi conf: export PHPRC PHP_FCGI_CHILDREN=2 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=1000 export PHP_FCGI_MAX_REQUESTS I have this errors on my server in the error logs: [Thu Jan 29 08:56:18 2009] [error] [client 91.112.236.*] (4)Interrupted system call: FastCGI: comm with server "/var/www/fcgi/master/php5-fcgi-starter" aborted: select() failed, referer: http://admin.menkisys.de/reseller/orders.php [Thu Jan 29 08:56:18 2009] [error] [client 91.112.236.*] FastCGI: incomplete headers (0 bytes) received from server "/var/www/fcgi/master/php5-fcgi-starter", referer: http://admin.menkisys.de/reseller/orders.php I have a ispCP webhosting spoftware installed and i have about 1100 domains on this server. This error comes often when i want do access the reseller page. The reseller page shows about 800 domains on one webpage. The problem persist since 3-4 weeks! In former time i have 500 domains and this problem does not exist. What i can do to solve the problem. I want to host about 2000 Domains on this Server. Maybe i must increase some settings on my fastcgi configuration??? Or update fastcgi o solve the problem?? Thanky you for your help. Fastcgi is a very good application. MENKI -------------- next part -------------- An HTML attachment was scrubbed... URL: From arturz at ownmail.net Thu Jan 29 04:15:26 2009 From: arturz at ownmail.net (=?UTF-8?B?QXJ0dXIgWmFwcnphxYJh?=) Date: Thu, 29 Jan 2009 10:15:26 +0100 Subject: [FASTCGI] (4)Interrupted system call: In-Reply-To: <9DA70D3062854EF491DA4C93433A28AA@econ.eu> References: <9DA70D3062854EF491DA4C93433A28AA@econ.eu> Message-ID: <498173AE.6050503@ownmail.net> Try upgrading to the latest snapshot of 2.4.7 at http://www.fastcgi.com/dist/mod_fastcgi-SNAP-0811090952.tar.gz. I have had these problems too. They are fixed now. Artur root at menkisys.net wrote: > Hello > > I have a problem with fastcgi with Interrupted system calls in my > error log. > My config: > > *Debian Etch 64bit* > *4GB Ram* > *Apache/2.2.0 (Debian) mod_fastcgi/2.4.2* > *PHP Version 5.2.0-8+etch13* > *Zend Engine v2.2.0* > > fastcgi conf: > > *export PHPRC > PHP_FCGI_CHILDREN=2 > export PHP_FCGI_CHILDREN > PHP_FCGI_MAX_REQUESTS=1000 > export PHP_FCGI_MAX_REQUESTS* > ** > I have this errors on my server in the error logs: > ** > [Thu Jan 29 08:56:18 2009] [error] [client 91.112.236.*] > (4)Interrupted system call: FastCGI: comm with server > "/var/www/fcgi/master/php5-fcgi-starter" aborted: select() failed, > referer: http://admin.menkisys.de/reseller/orders.php > [Thu Jan 29 08:56:18 2009] [error] [client 91.112.236.*] FastCGI: > incomplete headers (0 bytes) received from server > "/var/www/fcgi/master/php5-fcgi-starter", referer: > http://admin.menkisys.de/reseller/orders.php > I have a ispCP webhosting spoftware installed and i have about 1100 > domains on this server. This error comes often when i want do access > the reseller page. The reseller page shows about 800 domains on one > webpage. The problem persist since 3-4 weeks! > In former time i have 500 domains and this problem does not exist. > > What i can do to solve the problem. I want to host about 2000 Domains > on this Server. Maybe i must increase some settings on my fastcgi > configuration??? Or update fastcgi o solve the problem?? > > Thanky you for your help. Fastcgi is a very good application. > > MENKI From dj__manu at hotmail.fr Thu Jan 29 06:58:37 2009 From: dj__manu at hotmail.fr (dj__manu at hotmail.fr) Date: Thu, 29 Jan 2009 12:58:37 +0100 Subject: [FASTCGI] FastCGI: comm with server "... /test.pl" aborted: GetOverlappedResult() failed In-Reply-To: <4980F1F7.2020800@cosmicperl.com> References: <4980F1F7.2020800@cosmicperl.com> Message-ID: > dj__manu at hotmail.fr wrote: >> Hi all, >> Can't make apache2.2.11+FCGI+windows (vista) work and google didn't help >> Triste émoticône >> Using the simple synopsis code of FCGI (which works fine as a standalone >> script): > > I've only tested FCGI on Windows/IIS, but have you tried getting FCGI::IIS > to run? I has a test mode which should work on Apache as well. Thanks for the answer but : I run Vista Home Basic edition where IIS is not really supported by MS :-( The goal is just to have a simple dev platform. On production it will run on linux and hopefully work! > > Also it might be worth trying CGI::Fast Same error So to sum up : - mod_fastcgi w apache2.2 not working on windows (everyone complains about same errors like me and I didnt see any good solution given by anyone to fix it) - IIS + fastcgi not possible on vista basic edition Any advice : lighttpd or thttpd ? Manu From webmaster at cosmicperl.com Thu Jan 29 07:23:13 2009 From: webmaster at cosmicperl.com (Lyle) Date: Thu, 29 Jan 2009 12:23:13 +0000 Subject: [FASTCGI] FastCGI: comm with server "... /test.pl" aborted: GetOverlappedResult() failed In-Reply-To: References: <4980F1F7.2020800@cosmicperl.com> Message-ID: <49819FB1.9060005@cosmicperl.com> dj__manu at hotmail.fr wrote: >> dj__manu at hotmail.fr wrote: >>> Hi all, >>> Can't make apache2.2.11+FCGI+windows (vista) work and google didn't >>> help Triste émoticône >>> Using the simple synopsis code of FCGI (which works fine as a >>> standalone script): >> >> I've only tested FCGI on Windows/IIS, but have you tried getting >> FCGI::IIS to run? I has a test mode which should work on Apache as well. > > Thanks for the answer but : > > I run Vista Home Basic edition where IIS is not really supported by MS > :-( > The goal is just to have a simple dev platform. > On production it will run on linux and hopefully work! > >> >> Also it might be worth trying CGI::Fast > > Same error > > So to sum up : > - mod_fastcgi w apache2.2 not working on windows (everyone complains > about same errors like me and I didnt see > any good solution given by anyone to fix it) > - IIS + fastcgi not possible on vista basic edition > > Any advice : lighttpd or thttpd ? Manu, Unfortunately at this point I haven't had change to work through all the fcgi setups, and write guides like I've been planning. I'm held back on a very large project and having to pay bills :( Hopefully I've have chance in the next couple of months, but I can understand that's far off for you :( I'd give lighttpd a go. Let us know if you manage to get a solution. If the worst come to the worst you could always dual boot Linux, or try cygwin. Lyle From yazicivo at ttmail.com Fri Jan 30 07:27:19 2009 From: yazicivo at ttmail.com (Volkan YAZICI) Date: Fri, 30 Jan 2009 14:27:19 +0200 Subject: [FASTCGI] Length Incosistency Between FCGI_RECORD and FCGI_PARAMS Message-ID: <87d4e5c72w.fsf@alamut.mobiliz.com.tr> Hi, AFAIU, FCGI_PARAMS are wrapped in FCGI_RECORD data types. (Please correct me if I am wrong.) And there are four types of FCGI_PARAMS message formats with variable length headers: 1. {KEY-LEN[1], VAL-LEN[1], KEY[KEY-LEN], VAL[VAL-LEN]} 2. {KEY-LEN[1], VAL-LEN[4], KEY[KEY-LEN], VAL[VAL-LEN]} 3. {KEY-LEN[4], VAL-LEN[1], KEY[KEY-LEN], VAL[VAL-LEN]} 4. {KEY-LEN[4], VAL-LEN[4], KEY[KEY-LEN], VAL[VAL-LEN]} But an FCGI_RECORD message header format is of fixed length. Now consider below message: {VERSION [1], TYPE[1], // FCGI_PARAMS Type REQUEST-ID [2], CONTENT-LEN[2], PADDING-LEN[1], RESERVED [1], CONTENT [CONTENT-LEN], // {KEY-LEN[4], // VAL-LEN[4], // KEY [KEY-LEN], // VAL [VAL-LEN]} PADDING [PADDING-LEN]} Whole record length is represented by 2 bytes (maximum 2^(2*8) bytes), but a key+value length might be representing a block of 8 bytes (maximum 2^(4*8) bytes) in size. +-----------------------------+ | ### FCGI_RECORD ########### | | +----------------------------------------------+ | | ### FCGI_PARAMS ############################ | | +----------------------------------------------+ +-----------------------------+ ^ ^ ^ |---- 2^(2*8)=65536 bytes ----| | |--------------- 2^(4*8)=4294967296 -------------| How can this be possible? I have read FastCGI specification[1] over and over again but couldn't find a clue. Would you mind helping me to clarify this point please? Regards. [1] http://www.fastcgi.com/devkit/doc/fcgi-spec.html From jon+fastcgi-developers at unequivocal.co.uk Fri Jan 30 08:01:20 2009 From: jon+fastcgi-developers at unequivocal.co.uk (Jon Ribbens) Date: Fri, 30 Jan 2009 13:01:20 +0000 Subject: [FASTCGI] Length Incosistency Between FCGI_RECORD and FCGI_PARAMS In-Reply-To: <87d4e5c72w.fsf@alamut.mobiliz.com.tr> References: <87d4e5c72w.fsf@alamut.mobiliz.com.tr> Message-ID: <20090130130120.GB19225@snowy.squish.net> On Fri, Jan 30, 2009 at 02:27:19PM +0200, Volkan YAZICI wrote: > Whole record length is represented by 2 bytes (maximum 2^(2*8) bytes), > but a key+value length might be representing a block of 8 bytes (maximum > 2^(4*8) bytes) in size. > > +-----------------------------+ > | ### FCGI_RECORD ########### | > | +----------------------------------------------+ > | | ### FCGI_PARAMS ############################ | > | +----------------------------------------------+ > +-----------------------------+ > > ^ ^ ^ > |---- 2^(2*8)=65536 bytes ----| | > |--------------- 2^(4*8)=4294967296 -------------| > > How can this be possible? I have read FastCGI specification[1] over and > over again but couldn't find a clue. Would you mind helping me to > clarify this point please? Sorry, but in what way is "so don't do that then" not an answer to your question? From rasmus at macports.org Fri Jan 30 09:31:07 2009 From: rasmus at macports.org (Rasmus Andersson) Date: Fri, 30 Jan 2009 15:31:07 +0100 Subject: [FASTCGI] Patch for "Symbol not found: _environ" on Mac OS X In-Reply-To: References: Message-ID: We are going to put this patch into MacPorts. However it would be even better to get these fixes into upstream. Please let me know what you think. Thank you. On Sat, Jan 24, 2009 at 18:36, Rasmus Andersson wrote: > Hello all, > > First off: I'm new on this list but have been developing with libfcgi > for about four years now. > > Recently a bug was discovered when Python 2.5.4 was updated in > MacPorts ? libfcgi relies on extern char **environ on Mac OS X, which > does not exist. I know, it's really sick Apple does not export it > POSIX-style. However, the ugly bug fully correct fix is to #define > environ (*_NSGetEnviron()). > > -- > Rasmus Andersson > -- Rasmus Andersson