Is it possible to make a PHP's built-in web server instance send the errors and access log (only for that specific process) to /dev/stderr
, /dev/stdout
or a file, as in python's built-in web server?
Achieved this by doing php -S 127.0.0.1:80 2>&1 >/dev/null > ./my-log-file.log
php -S 127.0.0.1:80 2>&1 >/dev/null | grep blablabla
also works