I recently moved from apache to a Nginx/fastcgi solution, I had it running on a Fedora system and had no problems, but, since i moved all to Gentoo , the Spawn-fCGI / fastcgi php daemon dies, and i can't find out any errors reports on /var/log/messages , so i don't know why this happens.
I've seen that fastcgi is somehow different from the fedora distro, on gentoo as it has different conf files and init.d startup scripts, Can someone help me make it more stable?
The number of requests that i had isn't any different from the ones I had on fedora,
so i use the default conf that comes with the distro..and in about some hours it simply dies…
Thank you very much
Best Answer
Here is the content of my
/etc/conf.d/php-cgi
file (it's a modified copy of the original spawn-fcgi conf.d file) :Then to create the init.d file, just make a symlink to the original spawn-fcgi init.d file with the name of your conf.d file (php-cgi in my case) :
Then you can start it with :
and add it to the default boot level
The only degree of freedom you have is by tweaking these two values :
More children can handle more requests at the same time, but it consumes more memory.
Depending on your hardware configuration, adapt these two settings.