+ Reply to Thread
Results 1 to 4 of 4

Thread: cgi + Perl

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

    cgi + Perl

    :happysad: How to install perl on the server ?
    UNIX or not ?

    Folder is public_html/cgi-bin/perlsoft/ *.cgi

    is this the right path to perl in cgi file #!/usr/bin/perl shebang

    :nuts: after install this message appear
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, webmaster@.x10hosting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: cgi + Perl

    perl is installed
    you have the right path (it is listed on the cPanel, left side, near bottom)
    make sure script has permissions of 0755 (can set them in File Manager)
    make sure script was uploaded in ASCII mode (if it was written on Microsoft and uploaded in binary mode there are usually problems).
    Nothing is always absolutely so.

  3. #3
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: cgi + Perl

    Also, a good habit to get into is to add:

    use CGI::Carp qw(fatalsToBrowser );
    use strict;

    At the top your perl scripts. The first will put out some extra information if there is a problem and the second forces you to 'declare' your variables, catching spelling mistakes.
    Nothing is always absolutely so.

  4. #4
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: cgi + Perl

    I usually also use the pl extension with perl scripts -> http://afrosoft.co.cc/cgi-bin/hello.pl
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

+ Reply to Thread

Similar Threads

  1. Path to Perl on web server?
    By emailtoarpit in forum Scripts & 3rd Party Apps
    Replies: 1
    Last Post: 08-21-2009, 11:02 AM
  2. PERL development setup - beginner
    By gophercg in forum Programming Help
    Replies: 4
    Last Post: 05-20-2009, 01:00 PM
  3. Perl version on free host?
    By jdw999 in forum Programming Help
    Replies: 12
    Last Post: 04-06-2009, 08:40 PM
  4. Internal Server Error FOR Perl script
    By radofeya in forum Free Hosting
    Replies: 0
    Last Post: 04-14-2008, 01:06 PM
  5. To all those using Perl and CGI
    By DefecTalisman in forum Free Hosting
    Replies: 0
    Last Post: 09-16-2007, 03:56 AM

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