+ Reply to Thread
Results 1 to 2 of 2

Thread: How to execute perl scripts

  1. #1
    shain is offline x10Hosting Member shain is an unknown quantity at this point
    Join Date
    Feb 2009
    Posts
    1

    How to execute perl scripts

    Hey Guys!

    I've been trying to write a perl CGI script but I end up getting a 500 Internal Server Error. Please Help.

    My index.pl
    =====================
    #!/usr/bin/perl
    print "Content-type: text/html\r\n\r\n";
    print "Hello, World.";
    =====================

    My .htaccess
    =====================
    Options +ExecCGI
    AddHandler cgi-script .cgi .pl
    DirectoryIndex index.pl
    =====================

    All files including the directory in which the files reside in has 644 permissions. And I still get a 500 Internal Server Error.

    Please let me know what I have to do get the perl script working.

    Regards,
    Shain

  2. #2
    pknibbe is offline x10Hosting Member pknibbe is an unknown quantity at this point
    Join Date
    Jan 2009
    Posts
    1

    Re: How to execute perl scripts

    Hi Shain,

    your perl file must have execution permission.

    set the permission to 744 with the filemanager.

    Regards,

    Peter

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 08-19-2008, 07:56 AM
  2. Internal Server Error FOR Perl script
    By radofeya in forum Free Hosting
    Replies: 0
    Last Post: 04-14-2008, 01:06 PM
  3. To all those using Perl and CGI
    By DefecTalisman in forum Free Hosting
    Replies: 0
    Last Post: 09-16-2007, 03:56 AM
  4. Access problems with CGI Perl scripts
    By alcramer in forum Free Hosting
    Replies: 2
    Last Post: 08-26-2007, 12:28 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers