From gordon at group309.com Wed Mar 3 10:34:28 2010 From: gordon at group309.com (Gordon) Date: Wed, 3 Mar 2010 10:34:28 -0500 Subject: [FASTCGI] FastCGI requests timing out prematurely Message-ID: <000d01cabae7$043da140$0138a8c0@mozart> I am using a static fastcgi server with mod_fastcgi and an apache web server, and my requests are timing out prematurely. My idle-timeout is set to 30 seconds. For some reason, requests are being timed out after only about 11 seconds (I measured this at the http client, from the time the request was submitted until the time that apache responded with an error). When this happens, I get the following message in the apache log: [Wed Mar 03 10:06:35 2010] [error] [client 10.28.98.252] FastCGI: comm with server "/var/www/fcgi-bin/myserver2" aborted: idle timeout (30 sec) I tried setting idle_timeout to 60 seconds but doing so had no affect; requests still timed out after approximately 11 seconds. Here is my fastCgiServer directive from my httpd.conf file: FastCgiServer /var/www/fcgi-bin/myserver2 -initial-env 'CONFIG_FILENAME=/var/myserver2/config/config.properties' -idle-timeout 30 -processes 20 -flush Has anyone else seen this behavior? Any ideas how to fix it? Thanks, Gordon -------------- next part -------------- An HTML attachment was scrubbed... URL: From gordon at group309.com Wed Mar 3 15:53:56 2010 From: gordon at group309.com (Gordon) Date: Wed, 3 Mar 2010 15:53:56 -0500 Subject: [FASTCGI] FastCGI requests timing out prematurely In-Reply-To: <000d01cabae7$043da140$0138a8c0@mozart> References: <000d01cabae7$043da140$0138a8c0@mozart> Message-ID: <002801cabb13$a5b22a10$0138a8c0@mozart> I neglected to include some potentially useful information: I'm using Apache httpd 2.2.3 on Red Hat Enterprise Linux and mod_fastcgi-2.4.6. Regards, Gordon _____ From: fastcgi-developers-bounces+gordon=group309.com at mailman.fastcgi.com [mailto:fastcgi-developers-bounces+gordon=group309.com at mailman.fastcgi.com] On Behalf Of Gordon Sent: Wednesday, March 03, 2010 10:34 AM To: fastcgi-developers at mailman.fastcgi.com Subject: [FASTCGI] FastCGI requests timing out prematurely I am using a static fastcgi server with mod_fastcgi and an apache web server, and my requests are timing out prematurely. My idle-timeout is set to 30 seconds. For some reason, requests are being timed out after only about 11 seconds (I measured this at the http client, from the time the request was submitted until the time that apache responded with an error). When this happens, I get the following message in the apache log: [Wed Mar 03 10:06:35 2010] [error] [client 10.28.98.252] FastCGI: comm with server "/var/www/fcgi-bin/myserver2" aborted: idle timeout (30 sec) I tried setting idle_timeout to 60 seconds but doing so had no affect; requests still timed out after approximately 11 seconds. Here is my fastCgiServer directive from my httpd.conf file: FastCgiServer /var/www/fcgi-bin/myserver2 -initial-env 'CONFIG_FILENAME=/var/myserver2/config/config.properties' -idle-timeout 30 -processes 20 -flush Has anyone else seen this behavior? Any ideas how to fix it? Thanks, Gordon -------------- next part -------------- An HTML attachment was scrubbed... URL: From gc at falconpl.org Wed Mar 3 17:35:53 2010 From: gc at falconpl.org (Giancarlo Niccolai) Date: Wed, 3 Mar 2010 23:35:53 +0100 Subject: [FASTCGI] FastCGI support for the Falcon Programming Language Message-ID: <201003032335.53302.gc@falconpl.org> Hello, I'd like to notify to the kind developers and users of FastCGI that the Falcon Programming Language is currently implementing FastCGI as a part of the WOPI (Web Oriented Programming Interface) project. WOPI is a web-oriented common architecture that allows web-based script applications to run just the same under different web service providers. Currently we support: - Apache2 direct integration - Standard CGI (standalone application and script module) - FastCGI - Dedicated mini web server Release is imminent; we're cross-building and refining docs (the ones you can find are based on the Apache2 module, whose interface for scripts has ben maintained mostly unhaletered in the WOPI project). If you may kindly cross-link us back, we'd be delighted: http://www.falconpl.org/index.ftd?page_id=prjs&prj_id=wopi&sid=main Best regards, Giancarlo Niccolai The Falcon Programming Language. From geronimox at gmail.com Thu Mar 4 22:00:03 2010 From: geronimox at gmail.com (=?UTF-8?B?R2VybyBPw7FhdGl2aWEg4oCizKril48=?=) Date: Fri, 5 Mar 2010 00:00:03 -0300 Subject: [FASTCGI] Is dissasembly of fcgi files possible? Message-ID: Hi list, i've purchased a NAS, and it can be administrated via web. All configurations are done sending Get and Post requests to fcgi files in cgi-bin folder. Ive detected that the web administration GUI is incomplete, because many options that are not present at the gui can be set manipulating the get and post requests. To enhace te features of my nas, im writing a php class to comunicate with cgi files of the nas. Bu i think that there are more options to access via POST/GET than i can reverse engeneer from the web admin gui. So the question is. Is there a way to dissasemble or decompile a fcgi file? Ive tryed opening the fcgi files but thay are not readable. Thanks a lot! .::Gero::. .:DivideAndConquer.com.ar:. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kaustubh000 at gmail.com Tue Mar 9 13:27:01 2010 From: kaustubh000 at gmail.com (kaustubh) Date: Tue, 9 Mar 2010 13:27:01 -0500 Subject: [FASTCGI] Help Building a C application with FastCGI (and lighttpd) Message-ID: Aloha Developers !! I am a fastCGI newbie stuck on a problem for 3 days now. Its high time I ask for expert advice. Here goes:- Platform details: Operating System: Ubuntu 8.04 Hardy Heron (I know this is not the latest distribution, I have to use 8.04 due to some other restrictions) FCGI kit version : fcgi-2.4.0 Goal: To setup the Lighttpd Web server with FastCGI and C application support to serve dynamic content (final target for the web server: an embedded device) Steps Taken / Succeeded : Installing Lighttpd and configuring FastCGI for PHP support (runs perfectly with any content type) To Do: replace PHP (very large footprint) with a FastCGI C application (good for small memory devices). Problem: The FastCGI documentation for C development suggests that the FastCGI development kit be downloaded. It gives a makefile for all applications present but no clear instructions how to make changes to the makefile for any new C applications. I cannot make head or tail of the makefile so am unable to modify it for my new application. (I tried and failed numerous times) alternately: When I try and compile using gcc instead: gcc -I/home/owner/fcgi-2.4.0/libfcgi/ hello.c -o hello lfcgi I get : lfcgi: No such file or directory If i do gcc -I/home/owner/fcgi-2.4.0/libfcgi/ hello.c -o hello (same result for gcc hello.c -o hello ) I get: /tmp/ccmPV0on.o: In function `main': hello.c:(.text+0x57): undefined reference to `FCGI_printf' hello.c:(.text+0x5c): undefined reference to `FCGI_Accept' collect2: ld returned 1 exit status (By my understanding this is a linker problem) The FastCGI document says that if configure and then make are executed in the fcgi toolkit directory, a library file called libfcgi.a is supposed to be created in $toolkit/libfcgi/ which is to be linked for building any new C project applications. This never happens, I cannot find this library file for the linker to find even after configuring and making the toolkit No idea what is wrong here. (I have copied all header files from the toolkit include folder to /usr/include/ for the C preprocessor to find. ) There was a similar problem earlier found here: http://trac.osgeo.org/mapserver/ticket/2355 It would be a huge help if you could help me figure out what is going on with the building process. Any help with either how to use the fastCGI development toolkit to build my C application OR with how to use gcc to complie it would be greatly appreciated. thanks and pardon my long post. Kaustubh -- "All you need is ignorance and confidence and success is sure." - Mark Twain -------------- next part -------------- An HTML attachment was scrubbed... URL: From silverburgh.meryl at gmail.com Tue Mar 9 13:41:51 2010 From: silverburgh.meryl at gmail.com (silverburgh) Date: Tue, 9 Mar 2010 10:41:51 -0800 Subject: [FASTCGI] Question about using a C application with FastCGI Message-ID: <701fce31003091041y34ac25dfta0de1d3e98b948ca@mail.gmail.com> Hi, I am new to FastCGI, i would like to know if I use a C application with FastCGI, my understanding is FastCGI will spawn a process running my C application for each request it gets. Is that correct? If yes, how can I make FastCGI to use the same instance of my C application for all the subsequence requests from the same user? Thank you. From jsprenkle at gmail.com Tue Mar 9 13:41:55 2010 From: jsprenkle at gmail.com (Jay Sprenkle) Date: Tue, 9 Mar 2010 12:41:55 -0600 Subject: [FASTCGI] Help Building a C application with FastCGI (and lighttpd) In-Reply-To: References: <1b5f39a11003091032p2764b7f3ma5aa3b8c8bfe4748@mail.gmail.com> Message-ID: <1b5f39a11003091041o2a7b46afqfb69936522616c20@mail.gmail.com> If you get this error "I get : lfcgi: No such file or directory" That means it can't find the fcgi library. Which explains the missing references error. Search for the file libfcgi.* and try putting the full path on the library directory specification. You might look at the gcc man page and see the difference between providing the path to the library and the library name on the command line. On Tue, Mar 9, 2010 at 12:35 PM, kaustubh wrote: > oops typo !!! (i did include the '-') > Sorry about that ! > > > On Tue, Mar 9, 2010 at 1:32 PM, Jay Sprenkle wrote: > >> >> >>> Problem: >>> The FastCGI documentation for C development suggests that the FastCGI >>> development kit be downloaded. It gives a makefile for all applications >>> present but no clear instructions how to make changes to the makefile for >>> any new C applications. I cannot make head or tail of the makefile so am >>> unable to modify it for my new application. (I tried and failed numerous >>> times) >>> >>> alternately: When I try and compile using gcc instead: >>> gcc -I/home/owner/fcgi-2.4.0/libfcgi/ hello.c -o hello lfcgi >>> I get : lfcgi: No such file or directory >>> >> >> I think you want "-lfcgi" (<---NOTE THE DASH) >> >> >>> >>> If i do gcc -I/home/owner/fcgi-2.4.0/libfcgi/ hello.c -o hello (same >>> result for gcc hello.c -o hello ) >>> I get: >>> /tmp/ccmPV0on.o: In function `main': >>> hello.c:(.text+0x57): undefined reference to `FCGI_printf' >>> hello.c:(.text+0x5c): undefined reference to `FCGI_Accept' >>> collect2: ld returned 1 exit status >>> >>> (By my understanding this is a linker problem) >>> >> >> The dash above should fix this >> >> >> > > > -- > "All you need is ignorance and confidence and success is sure." - Mark > Twain > -- Cause united breaks guitars http://www.youtube.com/watch?v=5YGc4zOqozo -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bhaskar.Patil at uk.tiscali.com Thu Mar 11 06:43:54 2010 From: Bhaskar.Patil at uk.tiscali.com (Bhaskar Patil) Date: Thu, 11 Mar 2010 11:43:54 -0000 Subject: [FASTCGI] fastcgi installation issues. Message-ID: <7C48C9F4EC20164EBC235E2080D816A4F72F8D@MK-MSX3-VS3.uk.tiscali.intl> Hi, I am looking to develop a fastcgi application in c/c++ on a CentOS 5 server (32-bit). So, as far as I have understood I will need to install the 2 tar balls below: mod_fastcgi-SNAP-0910052141.tar.tar fcgi-2.4.1-SNAP-0910052249.tar.tar and I think mod_fastcgi should be installed first so that fcgi_devkit can be installed. Is there any dependency like what I have assumed is my first question. The second is, I am not able to compile mod_fastcgi. Apache version is 2.2.3 and I am following the procedure in INSTALL.AP2. After copying Makefile.AP2 to Makefile, I run (running this as root): make top_dir=/etc/httpd # make top_dir=/etc/httpd Makefile:12: /etc/httpd/build/special.mk: No such file or directory make: *** No rule to make target `/etc/httpd/build/special.mk'. Stop. # Please advise. Regards, --- Bhaskar Patil Software Engineer tel: +44 (0)1438 363728 fax: +44 (0)1438 363710 Bhaskar.Patil at uk.tiscali.com The Icon, Lytton Way, Stevenage, Hertfordshire SG1 1AL Tiscali.co.uk --- -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicktook at gmail.com Thu Mar 11 13:27:03 2010 From: nicktook at gmail.com (Bryan White) Date: Thu, 11 Mar 2010 13:27:03 -0500 Subject: [FASTCGI] fastcgi installation issues. In-Reply-To: <7C48C9F4EC20164EBC235E2080D816A4F72F8D@MK-MSX3-VS3.uk.tiscali.intl> References: <7C48C9F4EC20164EBC235E2080D816A4F72F8D@MK-MSX3-VS3.uk.tiscali.intl> Message-ID: <649cb4eb1003111027o65bbe131if0720944b2aeb26b@mail.gmail.com> > mod_fastcgi-SNAP-0910052141.tar.tar > > fcgi-2.4.1-SNAP-0910052249.tar.tar mod_fastcgi is an Apache module. The other is I believe the library of application functions you need to turn your program into a fastcgi application. (I am a little fuzzy on that last point because I long ago wrote my own version of the application side code). As such the order of installation should not matter. > Makefile:12: /etc/httpd/build/special.mk: No such file or directory > > make: *** No rule to make target `/etc/httpd/build/special.mk'.  Stop. Not sure about that one. -- Bryan White From nicktook at gmail.com Thu Mar 11 13:28:45 2010 From: nicktook at gmail.com (Bryan White) Date: Thu, 11 Mar 2010 13:28:45 -0500 Subject: [FASTCGI] Question about using a C application with FastCGI In-Reply-To: <701fce31003091041y34ac25dfta0de1d3e98b948ca@mail.gmail.com> References: <701fce31003091041y34ac25dfta0de1d3e98b948ca@mail.gmail.com> Message-ID: <649cb4eb1003111028g5f8391beo326ba0dd0941637c@mail.gmail.com> On Tue, Mar 9, 2010 at 1:41 PM, silverburgh wrote: > Hi, > > I am new to FastCGI, i would like to know if I use a C application > with FastCGI,  my understanding is FastCGI will spawn a process > running my C application for each request it gets. Is that correct? Incorrect. > If yes, how can I make FastCGI to use the same instance of my C > application for all the subsequence requests from the same user? That is is general how FastCGI does work. -- Bryan White From nicktook at gmail.com Thu Mar 11 13:34:39 2010 From: nicktook at gmail.com (Bryan White) Date: Thu, 11 Mar 2010 13:34:39 -0500 Subject: [FASTCGI] Is dissasembly of fcgi files possible? In-Reply-To: References: Message-ID: <649cb4eb1003111034j159f5676p754db81481c26c8a@mail.gmail.com> On Thu, Mar 4, 2010 at 10:00 PM, Gero Oņativia ??? wrote: > Hi list, i've purchased a NAS, and it can be administrated via web. > All configurations are done sending Get and Post requests to fcgi files in > cgi-bin folder. > Ive detected that the web administration GUI is incomplete, because many > options that are not present at the gui can be set manipulating the get and > post requests. > > To enhace te features of my nas, im writing a php class to comunicate with > cgi files of the nas. > Bu i think that there are more options to access via POST/GET than i can > reverse engeneer from the web admin gui. > > So the question is. > Is there a way to dissasemble or decompile a fcgi file? > Ive tryed opening the fcgi files but thay are not readable. FastCGI apps are just programs, they may have been written in a lot of different languages. Your ability to disassemble them is more or less tied to the authors chosen language. Note: the web interface will most likely not give you access to the executable. For that you will need some other type of access to the box such as an SSH login. -- Bryan White From geronimox at gmail.com Fri Mar 12 04:08:26 2010 From: geronimox at gmail.com (=?UTF-8?B?R2VybyBPw7FhdGl2aWEg4oCizKril48=?=) Date: Fri, 12 Mar 2010 06:08:26 -0300 Subject: [FASTCGI] Is dissasembly of fcgi files possible? In-Reply-To: <649cb4eb1003111034j159f5676p754db81481c26c8a@mail.gmail.com> References: <649cb4eb1003111034j159f5676p754db81481c26c8a@mail.gmail.com> Message-ID: Hi Bryan! The fcgi file is executed by lighthttp server on the box, and i also have acces via ssh so i downloaded the executable. Ill keep reading and searching about dissasemble, i think this is the correct way to keep going. Thanks! .::Gero::. .:DivideAndConquer.com.ar:. 2010/3/11 Bryan White > On Thu, Mar 4, 2010 at 10:00 PM, Gero Oņativia ??? > wrote: > > Hi list, i've purchased a NAS, and it can be administrated via web. > > All configurations are done sending Get and Post requests to fcgi files > in > > cgi-bin folder. > > Ive detected that the web administration GUI is incomplete, because many > > options that are not present at the gui can be set manipulating the get > and > > post requests. > > > > To enhace te features of my nas, im writing a php class to comunicate > with > > cgi files of the nas. > > Bu i think that there are more options to access via POST/GET than i can > > reverse engeneer from the web admin gui. > > > > So the question is. > > Is there a way to dissasemble or decompile a fcgi file? > > Ive tryed opening the fcgi files but thay are not readable. > > FastCGI apps are just programs, they may have been written in a lot of > different languages. Your ability to disassemble them is more or less > tied to the authors chosen language. Note: the web interface will > most likely not give you access to the executable. For that you will > need some other type of access to the box such as an SSH login. > > -- > Bryan White > _______________________________________________ > 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 jlsandell at gmail.com Fri Mar 12 11:14:52 2010 From: jlsandell at gmail.com (Jeremy Sandell) Date: Fri, 12 Mar 2010 11:14:52 -0500 Subject: [FASTCGI] fastcgi installation issues. In-Reply-To: <7C48C9F4EC20164EBC235E2080D816A4F72F8D@MK-MSX3-VS3.uk.tiscali.intl> References: <7C48C9F4EC20164EBC235E2080D816A4F72F8D@MK-MSX3-VS3.uk.tiscali.intl> Message-ID: <83eb81501003120814o750eab19h148698a7a7508984@mail.gmail.com> On Thu, Mar 11, 2010 at 6:43 AM, Bhaskar Patil wrote: > The second is, I am not able to compile mod_fastcgi. Apache version is > 2.2.3 and I am following the procedure in INSTALL.AP2. > > After copying Makefile.AP2 to Makefile, I run (running this as root): > > make top_dir=/etc/httpd > > # make top_dir=/etc/httpd > > Makefile:12: /etc/httpd/build/special.mk: No such file or directory > > make: *** No rule to make target `/etc/httpd/build/special.mk'. Stop. > > > > Please advise. > > > > Regards, > > *---* > > *Bhaskar Patil* > Software Engineer > > *tel: *+44 (0)1438 363728 > *fax: * +44 (0)1438 363710 > Bhaskar.Patil at uk.tiscali.com > > The Icon, Lytton Way, Stevenage, Hertfordshire SG1 1AL > > > Tiscali.co.uk > > *---* > I recently had to do this for CentOS 5.4 (64 bit); I used make top_dir=/usr/lib64/httpd So, in your case it would probably be: make top_dir=/usr/lib/httpd This is, of course, assuming that you have the apache development libraries installed. (: This is because the build command (make top_dir=...) needs the path to the build environment; /etc/httpd only has the runtime configuration. You can determine this by doing 'ls /usr/lib/httpd/build', for example, mine shows: config_vars.mk instdso.sh library.mk ltlib.mk mkdir.sh program.mk rules.mk special.mk HTH, Jeremy Sandell -------------- next part -------------- An HTML attachment was scrubbed... URL: From olexiyb at gmail.com Fri Mar 12 17:06:52 2010 From: olexiyb at gmail.com (Olexiy Buyanskyy) Date: Fri, 12 Mar 2010 17:06:52 -0500 Subject: [FASTCGI] Very confusing error in cgi-fcgi "Line to long" Message-ID: Hello, Code below http://www.fastcgi.com/cvs/fcgi2/cgi-fcgi/cgi-fcgi.c if((tp1 = (char *) strrchr(line,'\n')) != NULL) { *tp1-- = 0; while(*tp1 == ' ' || *tp1 =='\t') { *tp1-- = 0; } } else { fprintf(stderr, "Line to long\n"); return 1; } Requires carriage return. I used example from man page http://www.fastcgi.com/devkit/doc/cgi-fcgi.1 #! /bin/cgi-fcgi -f -connect /httpd/root/sock/app /httpd/root/bin/app I think code has to be fixed or documentation updated, because without example does not work. -- Olexiy -------------- next part -------------- An HTML attachment was scrubbed... URL: From gc at falconpl.org Thu Mar 18 12:52:43 2010 From: gc at falconpl.org (Giancarlo Niccolai) Date: Thu, 18 Mar 2010 17:52:43 +0100 Subject: [FASTCGI] FastCGI support for the Falcon Programming Language Message-ID: <4BA25A5B.5020201@falconpl.org> Hello, I'd like to notify to the kind developers and users of FastCGI that the Falcon Programming Language is currently implementing FastCGI as a part of the WOPI (Web Oriented Programming Interface) project. WOPI is a web-oriented common architecture that allows web-based script applications to run just the same under different web service providers. Currently we support: - Apache2 direct integration - Standard CGI (standalone application and script module) - FastCGI - Dedicated mini web server Release is imminent; we're cross-building and refining docs (the ones you can find are based on the Apache2 module, whose interface for scripts has ben maintained mostly unhaletered in the WOPI project). If you may kindly cross-link us back, we'd be delighted: http://www.falconpl.org/index.ftd?page_id=prjs&prj_id=wopi&sid=main Best regards, Giancarlo Niccolai The Falcon Programming Language.