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'...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |