The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

easy perl ?

Discussion in 'General Discussion' started by fixed, Jul 25, 2007.

  1. fixed

    fixed Registered

    Joined:
    Jul 25, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Good morning

    1) http://1.org/cgi-bin/1.pl

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@1.org 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

    2)
    fix# ll
    total 1
    -rwxr-xr-x 1 fix fix 83 Jul 24 10:38 1.pl
    fix#

    3) error_log
    /libexec/ld-elf.so.1: /lib/libcrypto.so.4: mmap of entire address space failed: Cannot allocate memory
    [Thu Jul 26 04:07:14 2007] [error] [client 89.109.48.132] Premature end of script headers: /home/fix/public_html/cgi-bin/1.pl
    [Thu Jul 26 04:07:14 2007] [error] [client 89.109.48.132] File does not exist: /home/fix/public_html/500.shtml

    4)
    fix# ./1.pl
    Content-type: text/plain

    Hello, world!
    fix#

    :(
     
    #1 fixed, Jul 25, 2007
    Last edited: Jul 25, 2007
  2. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    Are you asking some kind of question or are you trying to run some kind of perl script a hacker uploaded to your server?.
     
  3. fixed

    fixed Registered

    Joined:
    Jul 25, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    why perl script do not work in server ? =)
     
    #3 fixed, Jul 25, 2007
    Last edited: Jul 26, 2007
  4. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    What does running "perl -V" show you on the screen ?.

    What version of apache are you running ?

    This looks like freebsd, is it and if so what version is it ?
     
    #4 nyjimbo, Jul 25, 2007
    Last edited: Jul 25, 2007
  5. fixed

    fixed Registered

    Joined:
    Jul 25, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    $ perl -v

    This is perl, v5.8.8 built for amd64-freebsd
    (with 1 registered patch, see perl -V for more detail)

    Copyright 1987-2006, Larry Wall

    Perl may be copied only under the terms of either the Artistic License or the
    GNU General Public License, which may be found in the Perl 5 source kit.

    6.1-RELEASE-p17 FreeBSD

    Check/Repair a Perl Script in Cpanel:


    Checking Perl Script

    Method: Perl Expect
    Fetching CPAN timestamp...Done
    Testing connection speed...(this could take a while)...Done
    Ping:1.605 Testing connection speed to cpan.glines.org using pureperl...(175775.44 bytes/s)...Done
    Ping:2.329 Testing connection speed to cpan.belfry.net using pureperl...(176785.96 bytes/s)...Done
    Three usable mirrors located
    Mirror Check passed for cpan.belfry.net (/index.html)
    Unknown config variable 'less'
    commit: wrote '/usr/local/lib/perl5/5.8.8/CPAN/Config.pm'
    perlmod--Install done

    Check Complete
     
Loading...

Share This Page