The error log for Apache on Elvis is in the file /usr/local/apache/logs/error_log. Running "tail -f" on that file and accessing your web page is the best way to catch error messages output by CGI scripts and the like.
PHP scripts require the opening tag <?php
or <script language="php">
older-style
script tags (such as <? without the php) don't work anymore.