Questions tagged [spawn-fcgi]

24 questions
1
vote
2 answers

Is there any equivalent to php5-cgi for python?

nginx doesn't allow to directly execute external programs, so to run CGIs you need to run an standalone fcgi backend and connect to it with the fastcgi_pass directive. For php it's easy, e.g. using spawn-fcgi and php5-cgi, but I haven't found…
Jaime Soriano
  • 308
  • 3
  • 15
1
vote
1 answer

Multiple spawn-fcgi instances in rc.conf

I need to run two instances of spawn-fcgi on my FreeBSD 8.2 box - one for PHP and one for Python scripts. I can run them manually like this: /usr/local/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -- /usr/local/bin/php5-cgi /usr/local/bin/spawn-fcgi -a…
Dyppl
  • 131
  • 4
1
vote
2 answers

How to restart php-cgi automatically with spawn-fcgi

I'm running nginx with php as fcgi. It's working just fine, however, php-cgi keeps on exit()ing after serving 500 requests. I tried increasing that value (PHP_FCGI_MAX_REQUESTS), and that worked, but that seems to be a workaround. Then I set it to…
mrm8
  • 65
  • 2
  • 4
1
vote
3 answers

Run a shellscript if nginx encounter an error?

can I config my nginx to run some shell command/script if encounter 5xx error? My spawn-fcgi crashes often, I have a cronjob restart it periodically, but I think the best solution would be if nginx fail to reach spawn-fcgi then restart it via…
est
  • 181
  • 1
  • 8
0
votes
1 answer

FastCGI NGINX permission denied error

Having trouble understanding how to correctly use FastCGI processes with NGINX. Unlike Apache, NGINX does not automatically spawn FCGI processes. So I first apt-get fcgiwrap spawn-fcgi. I spawned a fcgi process by using the command sudo spawn-fcgi…
pairwiseseq
  • 173
  • 1
  • 1
  • 8
0
votes
1 answer

What tools available for Ubuntu are best suited for starting a FastCGI application, monitoring, and restarting if it stops?

Note: This is not in regards to PHP; Language is C++ I will be using spawn-fcgi to launch the FastCGI application. I've already found the supervise tool (http://manpages.ubuntu.com/manpages/precise/man8/supervise.8.html) provided by the…
Coder
  • 101
  • 1
0
votes
1 answer

How to spawn-fcgi multiple fcgi processes?

We have nginx installed and would like to spawn-fcgi multiple ".fcgi" files. The programs were written in C. How do we spawn all the files at one go ? Edit This is the scenario : I have 3 different programs to serve. Lets say, I've search results…
Shrinath
  • 297
  • 1
  • 3
  • 18
0
votes
1 answer

How to restart spawn-fcgi which is returning Socket is already in use?

I have done ps -aux | grep spawn-fcgi found the pid and killed it by kill -9 pid but still when i rerun spawn-fcgi,it still returns Socket is already in use. I am using spawn-fcgi for a qgis server and I need to export some env variables before I…
watkib
  • 101
  • 1
-2
votes
1 answer

nginx (latest) is not working together with spawn-fcgi

My OS: Debian 7 (latest) x64 My Domain: www.DeadalusHD.com My nginx-vhost: server { listen 80; ## listen for ipv4; this line is default and implied listen [::]:80 default_server ipv6only=on; ## listen for ipv6 root /online/www/dead-page/; …
Aebian
  • 23
  • 6
1
2