20081106 - Script to spawn php5-cgi enabling Nginx to serve PHP code/pages
Mark Alan
varia at e-healthexpert.org
Thu Nov 6 17:14:49 MSK 2008
Volodymyr Kostyrko wrote:
> Note that /bin/sh in all Linux'es is symlinked to bash
Not always. In Ubuntu (and all our servers work over Ubuntu) it is a
link to some form of ash:
ls -lia /bin/sh # shows: /bin/sh -> /bin/dash
> while /bin/ash is what you really want to use here. It's stripped down to include only
> 'sh' support layer.
I agree.
> 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:
> #!/bin/ash -
That is nice.
Regards,
M.
More information about the nginx
mailing list