I'm trying to run php4 cgi script that only contains:
It runs fine when I call it from terminal or command line... no errors. However, when I call it from the browser I get the following error:
Apache info that may be relevent:
Any thoughts/experience would greatly be appreciated!
Thanks,
X
Code:
<?php
phpinfo();
?>
It runs fine when I call it from terminal or command line... no errors. However, when I call it from the browser I get the following error:
Warning: Unexpected character in input: " (ASCII=19) state=1 in /usr/bin/php4-cgi on line 2353
Parse error: parse error, unexpected '*' in /usr/bin/php4-cgi on line 2353
Apache info that may be relevent:
Code:
AddHandler php-script .php
ScriptAlias /cgi-bin/ /usr/bin/
Action php-script /cgi-bin/php4-cgi
Any thoughts/experience would greatly be appreciated!
Thanks,
X