20081106 - Script to spawn php5-cgi enabling Nginx to serve PHP code/pages
c.kworr at gmail.com
Thu Nov 6 15:50:44 MSK 2008
Mark Alan wrote:
> The php5-cgi (until 5.2.4) package does not include a script to
> automatically start it in external FASTCGI Mode (Daemon mode).
> --- cut here ---
> #! /bin/sh
Note that /bin/sh in all Linux'es is symlinked to bash while /bin/ash is
what you really want to use here. It's stripped down to include only
'sh' support layer.
It's also a good practice when she-banging sh-scripts to add a dash
after handler so no one can pass any arguments to your script:
Sphinx of black quartz judge my vow.
More information about the nginx