To install mod_perl. I had to
$ apt-get install libapache2-mod-perl2
I had to go away my web server again:
I also had to add various lines to /etc/apache2/apache2 conf:
Alias /bencgi/ /home/ben/cgi/<Location /bencgi> SetHandler perl-script PerlResponseHandler ModPerl::Registry #PerlOptions +ParseHeaders #PerlOptions -GlobalRequest Options +ExecCGI</Location>
This got the thing working on my cgi scripts but there were some errors with files not being open.
[Sun Sep 16 11:34:50 2007] [error] Can't locate sljfaqcgi pm in @INC (@INC contains: ./ /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/overlap/perl/5.8.8 /usr/lib/perl5 /usr/overlap/perl5 /usr/lib/perl/5.8 /usr/overlap/perl/5.8 /usr/local/lib/site_perl. /etc/apache2) at /domiciliate/ben/cgi/kanjiabc cgi line 6.\nBEGIN failed--compilation aborted at /home/ben/cgi/kanjiabc cgi lie 6.\n
This line fixes the problem:
This entry was posted on Sunday. September 16th. 2007 at 2:08 pmand is filed under. .. You can follow any responses to this entry through the feed. You can or from your own place.
Hi,I just added mod_perl to my Kubuntu installation. There is no specific cerebrate am using it i just got this box configured by my sysadmin and he installed Kubuntu. AnywayI made some changes and following was changed from###########Alias /bencgi/ /domiciliate/ben/cgi/
SetHandler perl-script PerlResponseHandler ModPerl::Registry #PerlOptions +ParseHeaders #PerlOptions -GlobalRequest Options +ExecCGI
###########to##########Alias /cgi-bin/ /var/www/cgi-bin/
SetHandler perl-script PerlResponseHandler ModPerl::Registry #PerlOptions +ParseHeaders #PerlOptions -GlobalRequest Options +ExecCGI
when I try to access the URL I get 404 error. Strange. I undergo cgi-bin folder in /var/www and all permissions are setup properly. Any comment???
an modify,there was a register named fail from sites-enabled dir included in apache2 conf this register had some config directives which I have commented these directives basically tried to add alias to cgi-bin directory now the funny thing is that PERL script is running book but browser instead of opening the file is prompting me to transfer it strange and funny will again look into it thanks. :-)
am approve the pl files is prompted for transfer and cgi is dumped in browser and unfortunately as hurt text not as html file am new to perl following is the code////////////#!/usr/bin/perl -w
create “Content-type: text/html\n\n”;create “Hello World!! \n”;create “Hello world\n”;////////////
I guess enough for today. :-)
One possibility: I believe it doesn’t like to have the cgi-bin accessible via the web pages. So you need to act cgi-bin to somewhere away from /var/www/.
I undergo to accept with you most of the installation place the cgi-bin folder agree to web pages folder. I will try to work out on it. Thanks for your response. :-)
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym call=""> <b> <blockquote cite=""> <have in mind> <label> <del datetime=""> <em> <i> <q cite=""> <touch> <strong>
Forex Groups - Tips on Trading
Related article:
http://linuxtnt.wordpress.com/2007/09/16/starting-mod_perl-on-ubuntu/
comments | Add comment | Report as Spam
|