I believe something is missing with the configuration of Apache and PHP. I the expected output when running the PHP from the termainal, but get the 500 Internal Server error when running them from a browser.
The following messages appears in the error Log.
[error] (8)Exec format error: exec of /var/www/cgi-bin/test.php filed
[error] [client .........] Premature end of script headers: /var/www/cgi-bin/test/php/
Does anyone have any ideas as to what may be missed?
Thanks