pb PERL script with Apache server

Discussion in 'Perl Misc' started by Nicolas D, May 6, 2004.

  1. Nicolas D

    Nicolas D Guest

    Hello,

    My perl program doesn't work.
    In my error.log i have:
    [error] 27979: ModPerl::Registry: Can't locate CGI_Lite.pm in @INC
    (@INC... contains: /var/www/perl

    In my httpd2.conf i have:
    Alias /perl/ /var/www/perl/
    <Location /perl>
    SetHandler perl-script
    PerlResponseHandler ModPerl::Registry
    Options +ExecCGI
    </Location>

    and my perl script :
    #!/usr/bin/perl

    use CGI_Lite;
    $cgi=new CGI_Lite;

    #!/usr/bin/perl

    use CGI_Lite;
    $cgi=new CGI_Lite;
    %in = $cgi->parse_form_data;
    print "Content-type: text/html\n\n\";

    print "<h1>Bonjour $in{'nom'} !</h1>";

    so, where is the problem ?

    Thanks
     
    Nicolas D, May 6, 2004
    #1
    1. Advertising

  2. Nicolas D

    gnari Guest

    "Nicolas D" <> wrote in message
    news:...
    > Hello,
    >
    > My perl program doesn't work.
    > In my error.log i have:
    > [error] 27979: ModPerl::Registry: Can't locate CGI_Lite.pm in @INC
    > (@INC... contains: /var/www/perl
    >


    > so, where is the problem ?


    and where is CGI_Lite.pm ?

    gnari
     
    gnari, May 6, 2004
    #2
    1. Advertising

  3. Nicolas D

    Nicolas D Guest

    "gnari" <> wrote in message news:<c7e8nm$dh8$>...
    > "Nicolas D" <> wrote in message
    > news:...
    > > Hello,
    > >
    > > My perl program doesn't work.
    > > In my error.log i have:
    > > [error] 27979: ModPerl::Registry: Can't locate CGI_Lite.pm in @INC
    > > (@INC... contains: /var/www/perl
    > >

    >
    > > so, where is the problem ?

    >
    > and where is CGI_Lite.pm ?
    >
    > gnari


    ok i m stupid,
    thanks
     
    Nicolas D, May 7, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dpackwood
    Replies:
    3
    Views:
    1,816
  2. tanmoy.b81
    Replies:
    0
    Views:
    898
    tanmoy.b81
    Feb 4, 2009
  3. The Poor
    Replies:
    2
    Views:
    238
    Gregory Toomey
    Sep 27, 2003
  4. pj
    Replies:
    3
    Views:
    295
  5. kath
    Replies:
    4
    Views:
    654
    J. Gleixner
    Apr 9, 2007
Loading...

Share This Page