Gossamer Forum
Home : General : Perl Programming :

Perl 500 Error Questions - Not permission Settings

Quote Reply
Perl 500 Error Questions - Not permission Settings
When executing in a browser, it does not work. I have all permission 755 defined. Syntax check in shell. I have a test.cgi script below:

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello World\n";

-----------

Getting a 500 Error when execute

-----------

Checking error reads:

(2)No such file or directory: exec of /home/admin/public_html/cgi-bin/test.cgi failed

Premature end of script headers: /home/admin/public_html/cgi-bin/test.cgi

PROBLEM:





I noticed if I add "-w" at the end of "#!/usr/bin/perl", it will work. The question is in the other dedicated server, I do not need to add -w. How can I get it to work with out the "-w"? Any suggestions?

Thank you.

Quote Reply
Re: [mrcry11] Perl 500 Error Questions - Not permission Settings In reply to
Have you definatly uploaded it in ASCII mode?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates