Welcome! Log In Create A New Profile

Advanced

PHP-FPM and nginx upstart scripts for Ubuntu 10.04

Posted by mike 
PHP-FPM and nginx upstart scripts for Ubuntu 10.04
May 21, 2010 05:26AM
Works with PHP 5.2.x + the patch.
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 :)
you may want to take a look at
http://php53.dotdeb.org/dists/stable/php5/binary-i386/php5-fpm_5.3.2-0.dotdeb.2_i386.deb
for logrorate.

$ dpkg -L php5-fpm
/.
/etc
/etc/php5
/etc/php5/fpm
/etc/php5/fpm/nginx-site-conf.sample
/etc/php5/fpm/php5-fpm.conf
/etc/init.d
/etc/init.d/php5-fpm
/etc/logrotate.d
/etc/logrotate.d/php5-fpm
/usr
/usr/bin
/usr/bin/php5-fpm
/usr/share
/usr/share/doc
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/php5-fpm.1.gz
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/php5-fpm
/etc/php5/fpm/conf.d
/usr/share/doc/php5-fpm

On May 21, 2:23 am, Michael Shadle <mike...@gmail.com> wrote:
> Works with PHP 5.2.x + the patch.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 :)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready