I am a Linux newbie, but I have quite a bit of experience running PHP on Windows.
I have installed RedHat 7.1 and had the install program install Apache and PHP.
When I try to create a PHP file in the default html directory (/var/www/html), it just displays the code in the browser. Ie:
<?
echo "test";
?>
When I try to create a PHP file in the cgi-bin directory (/var/www/cgi-bin), I get this error: 500 Internal Server Error.
I've tried CHMOD 755 and putting the #!/usr/bin/php as the first line, but it doesn't work. Am I missing something?