Re:Web server in one line of bash
by adduc on Friday August 16, 2013 @02:23AM
(#6222463)
Similarly, if PHP 5.4 (or greater) is installed:
[ Parent
| on HN ]
Re:Web server in one line of bash
by DarkStar851 on Friday August 16, 2013 @02:45AM
(#6222526)
This my defacto, PHP is installed on all the Linux servers I manage, mostly Debian/Ubuntu with DotDeb repos. You could probably get nc to pipe the output of php-cli for older PHP installs.
http://stackoverflow.com/questions/3940046/can-i-use-netcat-... seems to have a basic example.