![]() |
spawning multiple php-instances listening on tcp/ip ?
Hi there,
are there some nice and simple command-line options to let litespeed start multiple php-fcgi instances (those are different versions) listening on different ports (needed for multi-server usage) instead of using a socket? I'm currently using spawn-fcgi but that install takes only one php instance either. I might try to experiment with it further if there's no option in lsws to do this ... just wanted to try this route first :). thanks, thomas |
You can let fcgi application started by LSWS using tcp instead of unix socket. but LSWS only start them on demand, so it may not be a good choice for pure fcgi spawner. :-)
Actually, php-fcgi itself has an option "-b" to bind to an address. It hasnot be implemented in earlier release, but seems now it is. |
hmm, good point mistwang.
any good pointers for some standalone fcgi-spawner? I want the two servers being able to use each others php-processes as they will work in a failover environment. |
Only other standalone fcgi-spawner I know of is the "cgi-fcgi" from FCGI SDK. ;-) May not be anything better than fcgi-spawner.
Maybe I can add an option to let LSWS start FCGI at server startup. :-) |
> Maybe I can add an option to let LSWS start FCGI at server startup.
yeah, that would be very cool :D no need for external spawners anymore. |
Release 2.1.15 now has this feature. You can now optionally set configured external applications to start on server start-up versus on-demand. Enjoy.
|
thanks, I'll try it out ASAP.
just another question: with spawn-fcgi I have that option in the config: Code:
## IP adresses where PHP should access server connectionsI think the web is really lacking some description of the php fastcgi setup without using some predefined stuff :(. |
just for the record: it seems like those ENV-variables are in the specs.
I found this http://www.fastcgi.com/devkit/doc/fcgi-spec.html#S2.3 on the fastcgi.com site. |
Thanks for the information. It may not work well when you need to start multiple instances binding to the same address, may got address is already in use error. :)
|
nah, it works fine. just need to use a different port :).
|
| All times are GMT -7. The time now is 08:51 PM. |