I would like to run php from a jailed shell (Chroot Shell = Jailkit). For example: PHP: #!/usr/bin/env php <?php // my code ?> Also, I would like enable some other commands like ping and traceroute. How can I do that? How dangerous is it? Thanks for any help.
If a binary is not available in the jail, then you cann add it with the jailkit command jk_cp: http://olivier.sessink.nl/jailkit/jk_cp.8.html