# Current recommended /state of the art PHP + Nginx stack?

**URL:** <https://www.ruby-forum.com/t/current-recommended-state-of-the-art-php-nginx-stack/186177>\
**Category:** NGINX\
**Created:** [April 1, 2010, 5:12pm UTC](https://www.ruby-forum.com/t/current-recommended-state-of-the-art-php-nginx-stack/186177 "2010-04-01T17:12:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoastedPeanut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f1d935/32.png) [@RoastedPeanut](https://www.ruby-forum.com/u/RoastedPeanut)\
**Post date:** [April 1, 2010, 5:12pm UTC](https://www.ruby-forum.com/t/current-recommended-state-of-the-art-php-nginx-stack/186177/1 "2010-04-01T17:12:25Z")

</div>

Hi there and thanks for the great forum and software 🙂

I’ve been running lighttpd for a while but it’s giving me too much  
downtime with spawn-fcgi and the frequent 500 server errors…so I’d  
like to move over to nginx

What’s the current recommended stack/setup to run Nginx? it’s for a  
webserver with a community application similar to a forum, so not too  
much static content, lots of php and lots of mysql

For example, nginx + php-fpm all under supervisord?

Up to now I’ve been using monit + lighttpd + spawn-fcgi but I’m not  
completely happy with that…

If any of you have found a stack they’re completely happy wight, I’d  
like to hear it 🙂

Posted at Nginx Forum:

> **[Current recommended /state of the art PHP + Nginx stack?](https://forum.nginx.org/read.php?2,70225,70225#msg-70225)**
>
> Hi there and thanks for the great forum and software :) I've been running lighttpd for a while but it's giving me too much downtime with spawn-fcgi and the frequent 500 server errors..so I'd like to move over to nginx What's the current recommended...

---

<div class="post-metadata">

**Author:** ![RoastedPeanut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f1d935/32.png) [@RoastedPeanut](https://www.ruby-forum.com/u/RoastedPeanut)\
**Post date:** [April 1, 2010, 8:15pm UTC](https://www.ruby-forum.com/t/current-recommended-state-of-the-art-php-nginx-stack/186177/2 "2010-04-01T20:15:37Z")

</div>

On Thu, Apr 1, 2010 at 8:11 AM, RoastedPeanut [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> For example, nginx + php-fpm all under supervisord?

i use nginx 0.8.x and php 5.2.13 w/ php-fpm patch + suhosin patch and  
it’s rock solid. no supervisord or anything

---

<div class="post-metadata">

**Author:** ![RoastedPeanut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f1d935/32.png) [@RoastedPeanut](https://www.ruby-forum.com/u/RoastedPeanut)\
**Post date:** [April 1, 2010, 9:00pm UTC](https://www.ruby-forum.com/t/current-recommended-state-of-the-art-php-nginx-stack/186177/3 "2010-04-01T21:00:41Z")

</div>

## RoastedPeanut Wrote:

> If any of you have found a stack they’re  
> completely happy wight, I’d like to hear it 🙂

If you’re using debian/ubuntu then [dotdeb.org](http://dotdeb.org) has PHP 5.3.2 in their  
repository based on the [php.net](http://php.net) svn with php-fpm already compiled in.  
No compiling required, just apt-get. (and a couple manual packages for  
ubuntu because of naming differences from debian) It’s been working  
well, though some Drupal contrib modules needed some minor PHP 5.3  
compatibility patches.

> **[PHP 5.3.2 is available too!](https://www.dotdeb.org/2010/03/08/php-5-3-2-is-available-too/)**
>
> A few days ago, the PHP Group released PHP 5.3.2. It fixes severe security issues and some other bugs :
> The PHP development team is proud to announce the immediate release of PHP 5.3.2. This is a maintenance release in the 5.3 series, which includes...

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,70225,70337#msg-70337](http://forum.nginx.org/read.php?2,70225,70337#msg-70337)

---

<div class="post-metadata">

**Author:** ![RoastedPeanut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f1d935/32.png) [@RoastedPeanut](https://www.ruby-forum.com/u/RoastedPeanut)\
**Post date:** [April 1, 2010, 10:25pm UTC](https://www.ruby-forum.com/t/current-recommended-state-of-the-art-php-nginx-stack/186177/4 "2010-04-01T22:25:34Z")

</div>

On Thu, 2010-04-01 at 15:44 -0400, RoastedPeanut wrote:

> I’m actually using centos since it’s well supported by virtualmin,  
> I’ve found a “rusia repo” (search it on google) that lets you install  
> nginx + php-fpm automatically..

For the lazy:

[http://centos.alt.ru/](http://centos.alt.ru/)

> **[installing nginx + php-fpm using centos.alt.ru & EPEL repo in CentOS](https://adityo.blog.binusian.org/?p=654)**

Cliff

---

<div class="post-metadata">

**Author:** ![RoastedPeanut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f1d935/32.png) [@RoastedPeanut](https://www.ruby-forum.com/u/RoastedPeanut)\
**Post date:** [April 1, 2010, 9:45pm UTC](https://www.ruby-forum.com/t/current-recommended-state-of-the-art-php-nginx-stack/186177/5 "2010-04-01T21:45:46Z")

</div>

I’m actually using centos since it’s well supported by virtualmin, I’ve  
found a “rusia repo” (search it on google) that lets you install nginx +  
php-fpm automatically…  
So what are you using to keep it up in case nginx or php-fpm goes down?  
monit or supervisord? 🙂

Posted at Nginx Forum:

> **[Re: Current recommended /state of the art PHP + Nginx stack?](https://forum.nginx.org/read.php?2,70225,70352#msg-70352)**
>
> Hi there and thanks for the great forum and software :) I've been running lighttpd for a while but it's giving me too much downtime with spawn-fcgi and the frequent 500 server errors..so I'd like to move over to nginx What's the current recommended...
