running php as cgi

sde

Verified User
Joined
Sep 11, 2004
Messages
213
Location
Temecula, CA
theoretically, shouldn't i be able to run a php script in the cgi-bin?

i.e.
Code:
#!/usr/local/php
<?
// /cgi-bin/test.cgi
echo "hello world";
?>
Code:
$ chmod 755 test.cgi

i get error 500 with that. when i execute the script from the cl, it runs perfect. i just can't display it in the browser.
 
Back
Top