Jump to content

Recommended Posts

Posted

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";

Posted (edited)

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
Posted

Thanks for the response, it seems that the permission has to be 755 and not 777. I finally got it to work but the permission has to be 755

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...