Jump to content

Hello World Perl Program 500 Error


oge

Recommended Posts

I have written a simple hello world program in perl, I have placed it in the cgi-bin and set a 0777 permission, however i am getting error 500 when I run it, I am new to perl but I think I have everthing correct.

here is the code:

 

#!/usr/bin/perl

print "Content-Type: text/html \n\n";

print "Hello World";

Link to comment
Share on other sites

According to this page:

http://www.heliohost.org/home/features/languages/perl

You should have the permissions set as 755

 

Did you save it as a .cgi file or as a .pl file? (Not sure if it matters as long as it's in cgi-bin)

 

500 error codes mean 'Internal Server Error', it may not be anything wrong with your script.

Have you tried running it on a different server or computer?

Edited by bayparkm
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...