Forum

Multiple FastCGI spawns

Freddie
26 February 2011, 21:49
Hello,

Im having some problem spawning more than one php-fcgi instance. I had a search of the forums, and saw a link (http://www.hiawatha-webserver.org/php-fcgi.c) which doesn't work any longer.

My php-fcgi.conf is as follows:

PidFile = /var/run/php-fcgi.pid

Forks = 4

MaxRequests = 100

Server = /usr/bin/php5-cgi ; 127.0.0.1:9000 ; www-data:www-data ; /etc/php5/cgi/php.ini
Server = /usr/local/bin/php5s-cgi ; 127.0.0.1:9001 ; www-data:www-data ; /etc/php5/cgi/php.ini


Only the first instance spawns (127.0.0.1:9000). How would I get the other to spawn upon running /etc/init.d/php-fcgi?

Kind Regards,
~ Freddie

Hiawatha version: 7.4
Operating System: Ubuntu 10.10
Hugo Leisink
27 February 2011, 17:18
I have no idea what php5s-cgi is. What's the difference with php5-cgi?

Where in the forum did you find that link? The correct link is http://www.hiawatha-webserver.org/files/fastcgi/fastcgi.c.txt.
Freddie
28 February 2011, 11:22
php5s-cgi is just a shell script executing "php5-cgi -s $@"

The link came from your last post in this thread: http://www.hiawatha-webserver.org/forum/topic/219
Hugo Leisink
28 February 2011, 11:50
You can forget the link. It pointed to php-cgi.c, which is also present in the source tarball.

If you run your script manually (like './your_script -b 2000' for example), what happens then?
This topic has been closed.