perl script not working receiving error messages

Avatar
  • Answered
I have been trying to run perl scripts that work just fine in strawberry perl, but I cannot figure out why they won't work on my web site, and have been stuck ever since. I don't know what I am doing wrong. I am unable to run a simple .pl file. This is the script: #!/usr/bin/perl print "Content-type: text/html\n"; print "\n"; print ""; print ""; print "

Hello World!

"; print ""; print ""; This is the error message: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache Server at sotd.us Port 80 I even tried to solve the issue through my InMotion Hosting account and received a different error message from them: Error 500 - Internal Server Error An error was encountered while processing your request. Typically this is a temporary condition. Please contact the web site owner for further assistance. Please help. I don't feel comfortable continuing on until I know what I am doing wrong. I cannot get any scripts to work.
Avatar
anonymous
Hello,

It seems that your file permissions may be wrong. Please be sure you are using 755 as the file permissions on your account. I copied and pasted your code onto a server and it pulled up in the browser just fine.

Best Regards,
TJ Edens