Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot locate APACHE::SESSION::FILE

Status
Not open for further replies.

babisa

Technical User
Jul 28, 2006
3
US
Hi,
I am using windows xp. apache 2.2 perl 5.5.5 and modperl
when I run a script I get an error on error.log:

Can't locate Apache/Session/File.pm in @INC (@INC contains: c:/ C:/Perl/lib C:/Perl/site/lib .

I have loaded modperl in the conf file.

What could it be?
 
If that's missing there's probably more ...

Fire up the cpan shell to install modules
Code:
perl -MCPAN -e shell

Set the flag to follow dependencies
HTH

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Thank you for the above information. From your replies I understand that I am in deep waters.
I thought that if Modperl was loaded, Apache::Session module is a part of it.
However I went to cpan and I searched for apache, session etc but I did not find anything to fit the file I need.
Let me, if I may, show you the scripts that cause this Error:

########## index.cgi ######
#!c:/perl/bin/perl
use CGI;
$query = new CGI;
print $query->redirect("rxcsm.cgi");
###########################


######### rxcsm.cgi ########
#!c:/perl/bin/perl
use c:/ # this is where utils.pl resides
use vars qw ($q $dbh $c_session );
use strict;
use HTML::Template;
use utils;
.
.
#############################


######## utils.pl ###########
package utils;

use strict;
use CGI;
use Time::Local;

use Apache::Session::File;
.
.
#############################

The error apparently is comming from this last line.
I don't think I need to add that i am a novice on the subject.

Bob
 
mod_perl, are you sure it's installed at the same path as c:/perl/bin/perl?

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Thanks Paul.
I have made sure that the modperl is in my perl directory.
I now get a new error, perhaps related,which comes from the configuration file.
The Error is:
failed to resolve handler `ModPerl::Registry': Can't load 'C:/Perl/site/lib/auto/Apache2/ServerUtil/ServerUtil.dll' for module Apache2::ServerUtil: load_file:The specified module could not be found at C:/Perl/lib/XSLoader.pm line 70.\n at C:/Perl/site/lib/Apache2/XSLoader.pm line 30\nCompilation failed in require at C:/Perl/site/lib/ModPerl/RegistryCooker.pm line 29.\nBEGIN failed--compilation aborted at C:/Perl/site/lib/ModPerl/RegistryCooker.pm line 29.\nCompilation failed in require at (eval 5) line 3.\n\t...propagated at C:/Perl/lib/base.pm line 85.\nBEGIN failed--compilation aborted at C:/Perl/site/lib/ModPerl/Registry.pm line 25.\nCompilation failed in require at (eval 4) line 3.\n

The file Serverutil.dll is in the correct directory.

The configuration file is:

########## orders.conf ############
<VirtualHost *:80>
DocumentRoot c:/ ErrorLog c:/ CustomLog c:/ common
ScriptAlias /cgi-bin/ c:/ ScriptAlIas /admin-cgi/ c:/ ScriptAlIas /cgi1/ c:/ AlIas /img_store "c:/ AlIas /uploads "c:/ AddHandler server-parsed .htm .html
AddHandler cgi-script .cgi

DirectoryIndex index.html index.cgi

PerlRequire c:/
<Location /cgi-bin/>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Location>
<Location /cgi1/>
Options +ExecCGI
</Location>

<Location /admin-cgi/>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Location>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top