# PHP-FPM and nginx upstart scripts for Ubuntu 10.04

**URL:** <https://www.ruby-forum.com/t/php-fpm-and-nginx-upstart-scripts-for-ubuntu-10-04/188980>\
**Category:** NGINX\
**Created:** [May 21, 2010, 11:24am UTC](https://www.ruby-forum.com/t/php-fpm-and-nginx-upstart-scripts-for-ubuntu-10-04/188980 "2010-05-21T11:24:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [May 21, 2010, 11:24am UTC](https://www.ruby-forum.com/t/php-fpm-and-nginx-upstart-scripts-for-ubuntu-10-04/188980/1 "2010-05-21T11:24:39Z")

</div>

Works with PHP 5.2.x + the patch.  
[http://michaelshadle.com/2010/05/21/php-fpm-and-nginx-upstart-scripts/](http://michaelshadle.com/2010/05/21/php-fpm-and-nginx-upstart-scripts/)

(No clue how to startup PHP 5.3 w/ SVN, may wind up being the same…  
haven’t had a chance to run it yet.)

Replaces the need for all the /etc/init.d and /etc/rc?.d scripts and  
symlinks that may have had to be manually created. Also doesn’t rely  
on the php-fpm script usually installed in /usr/local/sbin/php-fpm.

That may come in handy still for log rotation - it looks like it still  
drops a .pid file properly in the pid\_file location (typically  
/var/run/php-fpm.pid)

Enjoy. Feel free to enhance it. It’s very basic right now 🙂

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [May 27, 2010, 9:59pm UTC](https://www.ruby-forum.com/t/php-fpm-and-nginx-upstart-scripts-for-ubuntu-10-04/188980/2 "2010-05-27T21:59:47Z")

</div>

Thanks Michael, I shall be testing it on 5.3.2 with the FPM patch some  
time  
later this week. If I have the time I’ll consider adding a bit more  
functionality.
