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
0
votes
1 answer

How to reload a spawned script for nginx fast cgi

Below is by code for spawing a fcgi script for nginx. spawn-fcgi -d /home/ubuntu/workspace -f /home/ubuntu/workspace/index.py -a 127.0.0.1 -p 9001 Now, lets I want to make changes to the index.py script and reload with out bring down the system. …
Tampa
  • 75,446
  • 119
  • 278
  • 425
0
votes
1 answer

Using boost log with FastCGI

I am trying to use boost log in my FastCGI program, but looks they don't work together. When I execute the program directly, ./sample_log I can see logging messages logged into the file. When I launch the program using spawn-fcgi, sudo…
user2777473
  • 3,736
  • 5
  • 26
  • 39
0
votes
2 answers

spawn-fcgi: child exited with: 13

# spawn-fcgi -s /var/run/munin-fastcgi-html.sock -U nginx -u munin -g munin munin-fastcgi-html spawn-fcgi: child exited with: 13 The .sock is created, but filesize is 0 bytes. What does code 13 stand for?
user2336925
  • 11
  • 1
  • 1
0
votes
3 answers

how to test php file from command line using spawn-fcgi

I have a php script. I am using nginx and spawn-fcgi. spawn-fcgi -n -s /tmp/nginx9010.socket -u www-data -g www-data -f /usr/bin/php5-cgi -C 6 How can I test from the command line that spawn-fcgi is working with the script? e.g. I have a script…
Tampa
  • 75,446
  • 119
  • 278
  • 425
0
votes
1 answer

How to get Hello World to work with Spawn-fcgi and php

I am trying to run a spawn-fcgi script for php but I get the below error. spawn-fcgi -n -d /home/ubuntu/workspace/Gold-Lantern/glPixelServer/php/ -s /tmp/nginx9010.socket -u www-data -f…
Tampa
  • 75,446
  • 119
  • 278
  • 425
-1
votes
1 answer

how to debug the coredump file produced by spawn-fcgi?

my coredump file is produced by the shell command sudo spawn-fcgi fcgi-bin -a 0.0.0.0 -p 8089 &, fcgi-bin is compiled by the c++ command g++ -g fcgiMain.cpp fcgiEnv.cpp -o fcgi-bin etc. to deploy with nginx ,as we know that debug coredump file with…
-1
votes
1 answer

nginx not spawning workers when proxying to FastCGI

I'm having some trouble with nginx and FastCGI. I'm working on Windows 7 and I have successfully compiled/installed/setup the following items: nginx server FastCGI library spawn-fcgi-win32.exe I wrote a simple FastCGI application that just sends a…
Claudi
  • 5,224
  • 17
  • 30
1
2