PHP init script to go with nginx?
Phillip B Oldham
phill at theactivitypeople.co.uk
Fri Jun 13 11:47:47 MSD 2008
Hi all
I'm running PHP5 & nginx on a number of servers now, and I'm really
happy with everything... except one item which is starting to bug me.
Basically, on all the servers I run PHP5 by issuing the following
command from a shell script:
sudo -u nginx sh -c 'PHP_FCGI_MAX_REQUESTS=50 PHP_FCGI_CHILDREN=4
/usr/local/bin/php-cgi -b 10005 &'
Which works fine, other than it doen't start php on boot. Its getting
annoying because if the server reboots I have to manually start PHP.
Has anyone got a happy php-fastcgi install which doesn't use spawn-fcgi?
--
*Phillip B Oldham*
The Activity People
phill at theactivitypeople.co.uk <mailto:phill at theactivitypeople.co.uk>
------------------------------------------------------------------------
*Policies*
This e-mail and its attachments are intended for the above named
recipient(s) only and may be confidential. If they have come to you in
error, please reply to this e-mail and highlight the error. No action
should be taken regarding content, nor must you copy or show them to anyone.
This e-mail has been created in the knowledge that Internet e-mail is
not a 100% secure communications medium, and we have taken steps to
ensure that this e-mail and attachments are free from any virus. We must
advise that in keeping with good computing practice the recipient should
ensure they are completely virus free, and that you understand and
observe the lack of security when e-mailing us.
------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phill.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx/attachments/20080613/893b4646/attachment.vcf>
More information about the nginx
mailing list