Questions tagged [spawn-fcgi]

spawn-fcgi is used to spawn remote and local FastCGI processes.

Reasons why you may want to use spawn-fcgi instead of something else:

  • Privilege separation without needing a suid-binary or running a server as root.
  • You can restart your web server and the FastCGI applications without restarting the others.
  • You can run them in different chroot()s.
  • Running your FastCGI applications doesn't depend on the web server you are running, which allows for easier testing of other web servers.

    Source

22 questions
8
votes
2 answers

How to get perl script errors in nginx error log (Nginx with FCGIwrap)

I just installed fcgiwrap and spawn-fcgi to be able to use perl scripts in nginx. I added something like this in my site config: location ~ \.pl$ { gzip off; fastcgi_pass unix:/var/run/fcgiwrap.socket; include fastcgi_params; …
toktok
  • 279
  • 1
  • 5
  • 13
6
votes
3 answers

upstream prematurely closed connection while reading response header from upstream, client

I'm getting this error from /var/log/messages on my FreeBSD box. I'm using nginx and spawn-fcgi with memcache and apc modules enabled. upstream prematurely closed connection while reading response header from upstream, client HTTP/1.1", upstream:…
Harikrishnan
  • 9,688
  • 11
  • 84
  • 127
3
votes
1 answer

Django manage.py spawning several fcgi processes

Any idea whats the difference between the two commands below? Command: manage.py runfcgi method=threaded host=127.0.0.1 port=3033 labs@li68:/var/www/django_projects/myproject$ ps aux|grep manage.py labs 14558 0.0 2.2 65948 8212 ? Sl …
ismail
  • 3,882
  • 5
  • 36
  • 47
3
votes
1 answer

callgrind with spawn-fcgi not creating profiling data

I need to profile my c++ application which starts with spawn-fcgi. I tried to use callgrind but callgrind output in KCachegrind is not showing any information of my applications. valgrind --tool=callgrind --dump-instr=yes --simulate-cache=yes…
Anurag
  • 117
  • 1
  • 13
3
votes
1 answer

spawn-fcgi dying after a number of connections

I recently setup a new ubuntu machine, with wordpress, spawn-fcgi and nginx. Every morning, I'd try to see my blog and I got a 502 error Bad Gateway error. I tried finding some kind of log of why php-cgi died but couldn't find anything. I run…
Andrei Serdeliuc ॐ
  • 5,828
  • 5
  • 39
  • 66
2
votes
1 answer

I run `"crash_demo.run"` by `spawn-fcgi` . How to collect `core` file

1. Question I run "crash_demo.run" by spawn-fcgi . How to collect core file . 2. Background & Environment I'm exolore C++ Web Programming . web-server : nginx CGI(FastCGI) : fastcgipp 3.0 CGI Wrapper : spawn-fcgi I didn't use FCGI Wrap which…
Tom
  • 333
  • 2
  • 8
2
votes
0 answers

Spawn-fcgi not working on windows

I have build spawn-fcgi for windows using cygwin from source code available here : https://github.com/lighttpd/spawn-fcgi And I'm trying to run mapserver using spawn-fcgi. In log file it gives spawn-fcgi: child spawned successfully: PID: 4920 but…
vinni
  • 306
  • 1
  • 13
2
votes
1 answer

When executing Perl with FastCGI wrapper in nginx, do I actually get a speed benefit?

I'm using nginx with this script as FastCGI wrapper, that I start with: spawn-fcgi -F 3 -u www-data -s /var/run/perl-fcgi.sock -P /var/run/perl-fcgi.pid -- ./perl-fcgi.pl Now, suppose I have a simple script: #!/usr/bin/perl print "Content-type:…
polemon
  • 4,722
  • 3
  • 37
  • 48
1
vote
2 answers

spawn fastcgi apps on windows?

I wrote a toy fastcgi app using the linux example. I'd like to run it on windows now. How do i do it? I know how to spawn the process on linux and connect to it via nginx (or lighttp). I have no idea how to spawn the process on widnows. I build the…
user34537
1
vote
0 answers

How to make fastcgi + nginx + spawn-fcgi work on windows?

I used this tutorial http://chriswu.me/blog/writing-hello-world-in-fcgi-with-c-plus-plus/ to write a c++ server app with nginx + fcgi. The c++ server app is being spawned by spawn-fcgi since nginx doesn't spawn it by itself. Here is the c++…
1
vote
0 answers

Unable to turn off buffering for Perl CGI script on nginx+fcgiwrap

I have a legacy Perl CGI script written with CGI.pm, which replies its progress by printing some lines of text through the CGI interface. Its legacy client would then read the response line by line and do whatever. I'm unable to setup nginx to make…
gigabytes
  • 3,104
  • 19
  • 35
1
vote
0 answers

spawn-fcgi without nginx or it's equivalent, how to get stdout

I've got an installation with nginx and fastcgi. spawn-fcgi has got and argument that points to a C fcgi script spawn-fcgi -p 8000 -n __fastcgi. All this together functions as expected. I want to be able to get the ouput, something like Hello World,…
1
vote
1 answer

How to debug a Fast Common Gateway Interface (FCGI) program?

I encountered a problem that I don't known how to debug a FCGI program which written in C++ and based on fastcgi. The program is managed by Lighttpd spawn-fcgi and called by nginx fastcgi module. I wrote a shell script to restart spawn-cgi: #!…
Micooz
  • 101
  • 1
  • 6
1
vote
1 answer

nginx + spawn-fcgi is serving raw cgi (binary) file content (not executing them)

I'm stumped trying to figure out why my nginx + spawn-fastcgi is serving the raw binary content instead of executing them and serving the result. The goal is to configure Nagios Core 4.x using NginX. There are many great blogs on this; but none have…
Chris
  • 491
  • 7
  • 14
0
votes
1 answer

How to gracefully reload a spawn-fcgi script for nginx

My stack is nginx that runs python web.py fast-cgi scripts using spawn-fcgi. I am using runit to keep the process alive as a Daemon. I am using unix sockets fior the spawed-fcgi. The below is my runit script called myserver in /etc/sv/myserver…
Tampa
  • 75,446
  • 119
  • 278
  • 425
1
2