FastCGI spawing with NGiNX

Discussion in 'HOWTO-Related Questions' started by mejason69, Dec 15, 2011.

  1. mejason69

    mejason69 New Member

    Been dabbling with Joomla and followed this guide from how to forge to get my hands dirty. http://www.howtoforge.com/running-joomla-1.7-on-nginx-lemp-on-debian-squeeze-ubuntu-11.10

    Was hoping that someone can help me out with setting up FastCGI spawning. The how to forge article seems to spawn a single instance of FastCGI at boot time. This concerned me since NGiNX can spawn multiple workers depending on what you set in the conf and you may end up with a bottleneck under load if you have a single FastCGI process handling all the requests from those workers. After doing some digging I found the following (http://wiki.nginx.org/PHPFcgiExample). The code is more complex but appears to spawn FastCGI as needed up to the limit that I set.

    Can someone point me as to the "correct" way to do this, I am leaning toward the NGiNX wiki.

    Thanks
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You don't use PHP-FPM, right?
     
  3. mejason69

    mejason69 New Member

    Checked and package not installed.....


     
  4. falko

    falko Super Moderator Howtoforge Staff

    Do you use Debian or Ubuntu? For recent Ubuntu versions, there's a PHP-FPM package, while there isn't for Debian Squeeze.
     
  5. mejason69

    mejason69 New Member

    After your previous post I started to look into php5-fpm and found this and this. I think I am going to try adding the dotdeb repo for squeeze and use their packages for nginx and php5-fpm in a test vm and see how it goes. If that seems flaky then I am going to try the solution from the nginx forums that somehow seems like the next best solution.

    Thanks for your input....
     

Share This Page