I'm trying to get a script to run but it refuses to cooperate.
I have the public_html directory chmod 777. The file is chmod 755 and owned by the user. I have an .htaccess file with Options +ExecCGI so I can run outside of the cgi-bin.
If I run it via ssh as "perl filename.cgi" it outputs the correct html. But when I view it in my browser I get a 500 internal server error. The error log only contains a "Premature end of script headers".
Any ideas what could be causing this? It's frustrating.
I have the public_html directory chmod 777. The file is chmod 755 and owned by the user. I have an .htaccess file with Options +ExecCGI so I can run outside of the cgi-bin.
If I run it via ssh as "perl filename.cgi" it outputs the correct html. But when I view it in my browser I get a 500 internal server error. The error log only contains a "Premature end of script headers".
Any ideas what could be causing this? It's frustrating.