oge Posted March 21, 2013 Posted March 21, 2013 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/perlprint "Content-Type: text/html \n\n";print "Hello World";
bayparkm Posted March 22, 2013 Posted March 22, 2013 (edited) According to this page:http://www.heliohost.org/home/features/languages/perlYou 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 March 22, 2013 by bayparkm
oge Posted March 23, 2013 Author Posted March 23, 2013 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now