Results 1 to 4 of 4

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

  1. #1
    Junior Member
    Join Date
    Mar 2004
    Posts
    26

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

  2. #2
    Senior Member Buddha's Avatar
    Join Date
    Mar 2004
    Location
    Florida USA
    Posts
    825

    Default

    Try renaming the file test.pl and see if that works?

  3. #3
    Junior Member
    Join Date
    Mar 2004
    Location
    Italy
    Posts
    20

    Default

    Quote 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

  4. #4
    Junior Member
    Join Date
    Mar 2005
    Posts
    9

    Default 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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •