fastcgi

Kill a specific PHP script running on FastCGI / IIS?

I'm a PHP developer, but honestly my knowledge of server management is somewhat lacking. I fired off a script today that took a regrettably long time to run, and because it had an embedded call to ignore_user_abort(), pressing "stop" in the browser was obviously futile. There was a time limit of 15 minutes enforced in the FastCGI setting...

Django + FCGID on Fedora Core 9 -- what am I missing?

Fedora Core 9 seems to have FCGID instead of FastCGI as a pre-built, YUM-managed module. [I'd rather not have to maintain a module outside of YUM; so no manual builds for me or my sysadmins.] I'm trying to launch Django through the runfastcgi interface (per the FastCGI deployment docs). What I'm seeing is the resulting page written ...

What does the GDB backtrace message "0x0000000000000000 in ?? ()" mean?

What does it mean when it gives a backtrace with the following output? #0 0x00000008009c991c in pthread_testcancel () from /lib/libpthread.so.2 #1 0x00000008009b8120 in sigaction () from /lib/libpthread.so.2 #2 0x00000008009c211a in pthread_mutexattr_init () from /lib/libpthread.so.2 #3 0x0000000000000000 in ?? () The program has ...

Nginx + fastcgi truncation problem

I'm running a Django site using the fastcgi interface to nginx. However, some pages are being served truncated (i.e. the page source just stops, sometimes in the middle of a tag). How do I fix this (let me know what extra information is needed, and I'll post it) Details: I'm using flup, and spawning the fastcgi server with the followin...

php-cgi runs as root

I run php 5.2.6 as a cgi under lighttpd 1.4 and for some reason it's always running as root. All php-cgi processes in are owned by root and all files written to the file system are owned by root. I've tried setting the user in lighttpd as non privileged, and confirmed, it's running right it's just php that runs as root. How would I s...

Perl & mod_fcgid- how can I be sure it's working?

I have a couple Perl scripts I'm taking public soon, and I want to make sure they'll run under mod fcgid in order to keep the server load as low as possible. Previously, I've only ever run scripts that test FastCGI (ie, while ( my $q = new CGI::Fast ) { $count++; echo $count;}) or taken advantage of larger Perl packages (like MovableTyp...

Reloading a FastCGI app

Hi, I'm using FastCGI to expose a C++ binary (written using the Wt framework) as a web app. However, after I have modified the app and recompiled it, in order for new sessions to see the changes (active sessions keep using the old version until they expire), I have to reload Apache. Is it possible to configure the system in such a way t...

Changing cgi to Fastcgi

How feasible is to change a C/C++ cgi application to Fastcgi? Does this require only change in code? Or will it require a change in the setup of apache server? What will be the obvious benefits of the change? Is the change from cgi to Fastcgi worth the benefits? ...

django,fastcgi: how to manage a long running process?

I have inherited a django+fastcgi application which needs to be modified to perform a lengthy computation (up to half an hour or more). What I want to do is run the computation in the background and return a "your job has been started" -type response. While the process is running, further hits to the url should return "your job is still ...

Running Django with FastCGI or with mod_python

which would you recommend? which is faster, reliable? apache mod_python or nginx/lighttpd FastCGI? ...

Persistent database connections in fastcgi

I'm porting an application from php to fastcgi (c). My host runs apache. Since the fastcgi app would be running in a loop, I could open a mysql connection, and leave it open for all incoming requests. Is this recommended? I think I've read about an equal number of opinions saying the connection is way more expensive than the request an...

Python as FastCGI under windows and apache

I need to run a simple request/response python module under an existing system with windows/apache/FastCGI. All the FastCGI wrappers for python I tried work for Linux only (they use socket.fromfd() and other such shticks). Is there a wrapper that runs under windows? ...

How does one set up multiple accounts with separate databases for Django on one server?

Hi there, What options are there for installing Django such that multiple users (each with an "Account") can each have their own database? The semantics are fairly intuitive. There may be more than one User for an Account. An Account has a unique database (and a database corresponds to an account). Picture WordpressMU. :) I've conside...

Multiple installs of Django - How to configure transparent multiplex through the webserver (Lighttpd)?

Hi Everyone, This question flows from the answer to:How does one set up multiple accounts with separate databases for Django on one server? I haven't seen anything like this on Google or elsewhere (perhaps I have the wrong vocabulary), so I think input could be a valuable addition to the internet discourse. How could one configure a s...

Why does my simple fastCGI Perl script fail?

I'm not of the Perl world, so some of this is new to me. I'm running Ubuntu Hardy LTS with apache2 and mod_fcgid packages installed. I'd like to get MT4 running under fcgid rather than mod-cgi (it seems to run OK with plain-old CGI). I can't seem to get even a simple Perl script to run under fcgid. I created a simple "Hello World" app...

Python FastCGI under IIS - stdout writing problems

Hello all, I'm having a very peculiar problem in my Python FastCGI code - sys.stdout has a file descriptor of '-1', so I can't write to it. I'm checking this at the first line of my program, so I know it's not any of my code changing it. I've tried sys.stdout = os.fdopen(1, 'w'), but anything written there won't get to my browser. The...

Handling termination in Fast CGI on Windows IIS servers

Finding windows FastCGI help is proving very difficult. Any help would be greatly apprciated. The concept of FastCGi is that the process survives a request allowing you to maintain state between calls. This means you do not have the overhead of opening databases etc between calls. Apart from that, FastCGI is fully multiplexed: http://...

How can I run Perl scripts using FastCGI on Nginx?

So I am following this guide: http://technotes.1000lines.net/?p=23 and I am going through the steps. I have a VPN (slicehost.com) with Debian Etch, serving a website (static so far) with nginx. I used wget to download FastCGI and I did the usual make make install routine. So I guess since FastCGI can't normally run CGI scripts you have...

What does FastCGI: comm with server mean?

I'm getting this error in a PHP (Drupal) application: (104)Connection reset by peer: FastCGI: comm with server "/opt/php-5.2.5/bin/php-cgi" aborted: read failed It is often followed by this error: FastCGI: incomplete headers (0 bytes) received from server "/opt/php-5.2.5/bin/php-cgi" The basic Apache configuration for PHP looks li...

Why can't Nginx POST to my Perl backend?

EDIT: So I just found out that GET methods indeed work, but POST methods however do not work! That might be significant. So I am on Debian Etch, running Nginx. Nginx does not normally serve cgi/pl files so I have followed a guide to get my backend working. http://technotes.1000lines.net/?p=23 My backend works fine on Apache but I had ...