redhat80 中的php咋用啊?

redhat80 中的php咋用啊?

我用新装好的redhat80的Apache
改了httpd.conf中的
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php .php
其他都没改过
我把写好的php文件放在/var/www/cgi-bin/下
然后在游览器中http://localhost/cgi-bin/test.php
然后就是error : The server encountered an internal error and was unable to complete your request
Error message:
Premature end of script headers:test.php
我该如何解决?      
你试一下把如下代码放在/var/www/html/下在浏览器中看一下:
[php]
<?php
phpinfo();
?>
[/php]
输入地址localhost/test.php      
上面的写法是apache 1.3.x的写法,到了apache2.0里面应该是这种形式:

#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

LoadModule php4_module modules/libphp4.so

#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 524288
</Files>