Can't get my perl files to work!!! *Frustrated*

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • canstocker
    Junior Member
    • Mar 2004
    • 26

    #1

    Can't get my perl files to work!!! *Frustrated*

    Hello everyone,

    I've written a .cgi file:

    #!/usr/bin/perl
    print "Content-type: text/html\n\n";
    print "<H1>Hello World</H1>\n";

    I've put it in the cgi-bin folder, and chmoded both the folder and the file with 777.

    I try to access it using www.domain.com/cgi-bin/test.cgi - and I get a Internal Server Error...


    Any help would be appreciated... Dan.
  • Buddha
    Senior Member
    • Mar 2004
    • 825

    #2
    Try renaming the file test.pl and see if that works?
    "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

    Comment

    • maskeret
      Junior Member
      • Mar 2004
      • 20

      #3
      Originally posted by canstocker
      Hello everyone,

      I've written a .cgi file:

      #!/usr/bin/perl
      print "Content-type: text/html\n\n";
      print "<H1>Hello World</H1>\n";

      I've put it in the cgi-bin folder, and chmoded both the folder and the file with 777.

      I try to access it using www.domain.com/cgi-bin/test.cgi - and I get a Internal Server Error...


      Any help would be appreciated... Dan.
      Hello,
      change cgi-bin directory and test.cgi with 755 permissions.
      However, probably, the problem occurs during upload: you have to upload
      test.cgi in ASCII mode (*NOT* binary mode).

      Bye
      ----------------------------
      Maurizio Mascheroni - Italy
      http://www.dreamchess.com

      Comment

      • Zalman
        Junior Member
        • Mar 2005
        • 9

        #4
        Look at the error log

        Go to your cpanel, then click on the "Error Log" icon
        The most recent error is usually at the top.

        Hope it helps

        Comment

        Working...