Installing CGI::Session on Apache 2.0.46

This is a discussion on Installing CGI::Session on Apache 2.0.46 within the Apache Web Server forums, part of the Web Server and Related Forums category; I am trying to get CGI::Session to work, specifically for running Twiki. However, I get this error from Twiki'...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2007
hanxue
 
Posts: n/a
Default Installing CGI::Session on Apache 2.0.46

I am trying to get CGI::Session to work, specifically for running
Twiki. However, I get this error from Twiki's configuration page:

You can use persistent CGI session tracking even if you are not using
login. This allows you to have persistent session variables - for
example, skins. Client sessions are not required for logins to work,
but TWiki will not be able to remember users unless there is some
other mechanism - such as browser cacheing of authentication -
available. # See TWiki.TWikiUserAuthentication for a full discussion
of the pros and cons of using persistent sessions.
Error: The CGI::Session Perl module is required for session support,
but is not available.


These are the relevant packages:

httpd-2.0.46-57.ent
mod_perl-1.99_09-10.ent

And the Perl-related configuration section on httpd.conf

<FilesMatch "(attach|edit|manage|rename|save|upload|view|.*aut h).*">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlSendHeader On
PerlOptions +ParseHeaders
</FilesMatch>


I have installed CGI::Session through CPAN:

cpan[1]> install CGI::Session
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Tue, 20 Feb 2007 14:09:29 GMT
CGI::Session is up to date (4.20).


cpan[2]>



What could be missing?


Many thanks,

Lee Hanxue

  #2 (permalink)  
Old 02-23-2007
hanxue
 
Posts: n/a
Default Re: Installing CGI::Session on Apache 2.0.46

On Feb 22, 6:55 pm, Davide Bianchi <davideyeahs...@onlyforfun.net>
wrote:
> On 2007-02-22, hanxue <leehan...@gmail.com> wrote:
>
> > Error: The CGI::Session Perl module is required for session support,
> > but is not available.
> > What could be missing?

>
> That maybe it got installed in a directory that is not in the
> Perl search path (@INC). This has nothing to do with apache.


Hmm... that should not be the case. I wrote a CGI script to show the
@INC path:

#!/usr/bin/perl

print "Content-type: text/html\n\n";

print "\@INC is @INC\n";


Here's the output:

@INC is /usr/lib64/perl5/5.8.0/x86_64-linux-thread-multi /usr/lib/
perl5/5.8.0 /usr/lib64/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/
5.8.0 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.0/
x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/
perl5/vendor_perl /usr/lib/perl5/5.8.0 .

CGI::Session should be installed:

$ locate Session|grep -i cgi
/usr/lib/perl5/site_perl/5.8.0/CGI/Session/Tutorial.pm
/usr/lib/perl5/site_perl/5.8.0/CGI/Session/ErrorHandler.pm
/usr/lib/perl5/site_perl/5.8.0/CGI/Session/Serialize
/usr/lib/perl5/site_perl/5.8.0/CGI/Session/Serialize/json.pm
/usr/lib/perl5/site_perl/5.8.0/CGI/Session/Serialize/storable.pm
/usr/lib/perl5/site_perl/5.8.0/CGI/Session/Serialize/freezethaw.pm
/usr/lib/perl5/site_perl/5.8.0/CGI/Session/Serialize/yaml.pm
/usr/lib/perl5/site_perl/5.8.0/CGI/Session/Serialize/default.pm



Is there a way for a CGI script to show what Perl modules are
available?


Thank you,

Lee Hanxue

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0