Re: FCGI app reloading on every request

2007-09-05 Thread Michael Ströder
John Nagle wrote: >This is running on a dedicated server at APlus.net, > running Red Hat Fedora Core 6, Python 2.5, and managed with Plesk 8.2. > I just turned on fcgid from the Plesk control panel ("Physical hosting > setup page for domain", checked "FastCGI"), and enabled the standard > FCGI

Re: FCGI app reloading on every request

2007-09-05 Thread Michael Ströder
John Nagle wrote: > >Tried putting this in the .htaccess file: > > > SetHandler fcgid-script > Options ExecCGI > allow from all > > > > ErrorDocument 403 "File type not supported." > > > Even with that, a ".foo" file gets executed as a CGI script, > and so does a ".fcgi" file. It's

Re: FCGI app reloading on every request - solved

2007-09-05 Thread John Nagle
Sion Arrowsmith wrote: > John Nagle <[EMAIL PROTECTED]> wrote: > >> Tried putting this in the .htaccess file: >> >> >>SetHandler fcgid-script >>Options ExecCGI >>allow from all >> >> >> >>ErrorDocument 403 "File type not supported." >> >> >>Even with that, a ".foo" file gets executed as a C

Re: FCGI app reloading on every request

2007-09-05 Thread Sion Arrowsmith
John Nagle <[EMAIL PROTECTED]> wrote: >Tried putting this in the .htaccess file: > > >SetHandler fcgid-script >Options ExecCGI >allow from all > > > >ErrorDocument 403 "File type not supported." > > > Even with that, a ".foo" file gets executed as a CGI script, >and so does a ".fcgi" file.

Re: FCGI app reloading on every request

2007-09-04 Thread Martin v. Löwis
>Anything executable in the > cgi-bin directory is being launched as a CGI program. A file > named "example.foo", if executable, will launch as a CGI program. > Nothing launches with FCGI. Perhaps you have a SetHandler declaration somewhere that makes all files CGI by default? I would advise

Re: FCGI app reloading on every request

2007-09-04 Thread John Nagle
Thorsten Kampe wrote: > * John Nagle (Mon, 03 Sep 2007 21:26:01 -0700) > >>I'm converting a web app from CGI to FCGI. The application works fine >>under FCGI, but it's being reloaded for every request, which makes FCGI >>kind of pointless. I wrote a little FCGI app which prints when the prog

Re: FCGI app reloading on every request

2007-09-04 Thread Thorsten Kampe
* John Nagle (Mon, 03 Sep 2007 21:26:01 -0700) > I'm converting a web app from CGI to FCGI. The application works fine > under FCGI, but it's being reloaded for every request, which makes FCGI > kind of pointless. I wrote a little FCGI app which prints when the program > is > loaded and whe

Re: FCGI app reloading on every request

2007-09-04 Thread John Nagle
Michael Ströder wrote: > John Nagle wrote: > >>What's actually happening is that FCGI isn't running at all. >>My .fcgi file is being executed by Apache's CGI handler, and >>"fcgi.py" recognizes this, then reads the parameters as if >>a CGI program. So it works just like a CGI program: one >>l

Re: FCGI app reloading on every request

2007-09-04 Thread Michael Ströder
John Nagle wrote: > > What's actually happening is that FCGI isn't running at all. > My .fcgi file is being executed by Apache's CGI handler, and > "fcgi.py" recognizes this, then reads the parameters as if > a CGI program. So it works just like a CGI program: one > load per request. Not sur

Re: FCGI app reloading on every request

2007-09-03 Thread John Nagle
Martin v. Löwis wrote: > John Nagle schrieb: > >> I'm converting a web app from CGI to FCGI. The application works fine >>under FCGI, but it's being reloaded for every request, which makes FCGI >>kind of pointless. I wrote a little FCGI app which prints when the >>program is loaded and when it

Re: FCGI app reloading on every request

2007-09-03 Thread Martin v. Löwis
John Nagle schrieb: >I'm converting a web app from CGI to FCGI. The application works fine > under FCGI, but it's being reloaded for every request, which makes FCGI > kind of pointless. I wrote a little FCGI app which prints when the > program is loaded and when it gets a request. And indeed