dyskiver Posted April 6, 2012 Posted April 6, 2012 Hi, I'm new on the site and trying to kickstart my first Perl script.It's really basic, just to see that things are working, but I can't get it to work - I keep getting HTML error 500 "Internal Server Error" for about 4 days already. Here's the script (located at public_html/cgi-bin/test.pl): #!/usr/bin/perl print "Hello from test.pl"; Can't get must simpler than this, but it doesn't work..I went over forum messages and tried another version, which also doesn't work: #!/usr/bin/perl print "content-type: text/html\n\n"; print "<html><body>Hello from test.pl</body></html>"; Permissions are set as follows:public_html: 750 (it was setup like this - I didn't change it)public_html/cgi-bin: 755public_html/cgi-bin/test.pl: 755Am I doing something wrong? EDIT:The way I'm trying to access the script from a browser is: http://dyskiver.heliohost.org/cgi-bin/test.pl Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.