pb PERL script with Apache server

N

Nicolas D

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
 
G

gnari

Nicolas D said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,539
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top