Jump to content

Perl : Internal Server Error


dyskiver

Recommended Posts

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: 755
  • public_html/cgi-bin/test.pl: 755

Am 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

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...