I just install PHP CGI on Linux. I put the excutetable in /usr/local/bin. Then, I make a script in /usr/local/apache/cgi-bin something like this
test.php
#!/usr/local/bin/php
<? phpinfo(); ?>
And Netscape give me a 500 Internal Server Error. The log says premature end of script. Then I look throught the whole PHP mailing list and it seems a lot of people having the same problem, but there are no solution to that. Anyone have a solution for this?
The following is my httpd.conf setting
AddType application/x-httpd-php .php
Action applcation/x-httpd-php /usr/local/bin/php
scriptalias /cgi-bin/ /usr/local/apache/cgi-bin/
Please HELP!
rgd,
Derek