I have both CGI and module versions installed on Apache/FreeBSD virtual server from Iservers.com
If I'm at a command prompt and type du, I can see disk usage
I've a php script called du.php, that simply says
<?
exec(du);
?>
I just get a blank screen. Same thing if I use passthru(du); instead.
If I try
#! /usr/local/bin/php -q
<?
passthru(du);
?>
I see the shebang line (it didn't quiet) and a blank screen. I've confirmed my PHP CGI is at /usr/local/bin/php