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.

Perl isn't working!!!

Discussion in 'General Discussion' started by gemby, Mar 5, 2002.

  1. gemby

    gemby Well-Known Member
    PartnerNOC

    Joined:
    Feb 16, 2002
    Messages:
    182
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Pula, Croatia
    cPanel Access Level:
    DataCenter Provider
    After I upgraded apache (buildapache.sea) due to php security hole, and fp extensions, perl scripts on user accounts aren't working anymore! This includes mailman! So please if somebody have some idea.....i upgraded perl too (to ver 5.6.....)
     
  2. kosmo

    kosmo Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    403
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    All over Europe
    do you get any specific error? is perl not working or you get an error when calling perl scripts over the web?
     
  3. gemby

    gemby Well-Known Member
    PartnerNOC

    Joined:
    Feb 16, 2002
    Messages:
    182
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Pula, Croatia
    cPanel Access Level:
    DataCenter Provider
    I have error 500, and in log says: Premature end of script headers /home/......./adv.pl

    Don't know what could be reason :-(((
     
  4. kosmo

    kosmo Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    403
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    All over Europe
    can you run the scripts via telnet?

    perl -w /home/user/public_html/cgi-bin/scriptname.cgi
     
  5. TRAIN YARD SOFTWARE

    TRAIN YARD SOFTWARE Well-Known Member

    Joined:
    Dec 20, 2001
    Messages:
    224
    Likes Received:
    0
    Trophy Points:
    16
    I have same problem

    root@tys: perl -w install.cgi

    install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at (eval 1) line 3.
    Perhaps the DBD::mysql perl module hasn't been fully installed,
    or perhaps the capitalisation of 'mysql' isn't right.
    Available drivers: ADO, ExampleP, Multiplex, Proxy.
    at install.cgi line 32

    Trying to install PerlDesk

    Ed
     
  6. bdraco

    bdraco Guest

    /scripts/installdbi
     
  7. teck

    teck Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    164
    Likes Received:
    0
    Trophy Points:
    16
    You're gonna need more than DBI for perldesk. This really isnt a cpanel related issue. Check the perldesk forums for more ponters. They also have a script that lets you know what other modules are still needed.
     
  8. gemby

    gemby Well-Known Member
    PartnerNOC

    Joined:
    Feb 16, 2002
    Messages:
    182
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Pula, Croatia
    cPanel Access Level:
    DataCenter Provider
    There is news, perl scripts with .cgi on end - works, but with .pl isn't working!!! This afected mailman, and some our custom made scripts, i check in httpd.conf, looks good, maybe some perl configuration file.....So please if you have ideas where to look.....

    btw, what works thru apache(.cgi), works in telnet too, but .pl don't

    Thanks
     
  9. H2Hosting.com

    H2Hosting.com Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    Yes, today 3 customers reported the problem with DBD
    Was it another CPANEL UPDATE?
    =========


    install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC
    contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
    /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
    /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
    /usr/lib/perl5/site_perl .) at (eval 4) line 3.
    Perhaps the DBD::mysql perl module hasn't been fully installed,
    or perhaps the capitalisation of 'mysql' isn't right.
    Available drivers: ExampleP, Proxy.
     
  10. Craig

    Craig Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    171
    Likes Received:
    0
    Trophy Points:
    16
    Install the perl module its talking about, DBI::MYSQL this will fix the issue. We just had it happen to us.

    You can do this from WHM, Installl perl module.

    Craig
     
  11. Craig

    Craig Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    171
    Likes Received:
    0
    Trophy Points:
    16
    or just run /scripts/installdbi
    as nick said =] (as root from shell)

    Craig
     
  12. H2Hosting.com

    H2Hosting.com Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    Yes, Craig
    I know. I did it just after receiving reports from my customers.

    My question - was it Cpanel update(?) results?

    BTW, This error appeared only today.
     
  13. Craig

    Craig Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    171
    Likes Received:
    0
    Trophy Points:
    16
    Im not sure, but we havent changed anything, i woke up to a few angry customers.

    Nick, was it last nights upgrade?


    Craig.
     
  14. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    16
    Indeed. It must have been a cpanel upgrade :(

    We have not changed anything at all and also woke up to a few angry customers.

    I like all the improvements and feature enhancements that are being made on Cpanel, however Cpanel was becoming very stable, and now it is kind of like the same as in the old days :(
     
  15. ahwheelock

    ahwheelock Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Our servers also lost the DB_file.pm and DBmysql module functionality last night. What did you guys do! lol
     
  16. ahwheelock

    ahwheelock Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    I should note that reinstalling those two fixed everything, in case others are still struggling.
     
  17. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    dbi??? whats dbi???

    /scripts/installdbi

    dbi? what is dbi?
     
Loading...

Share This Page