You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Giorgio D'Anna <ca...@concento.it> on 2001/11/27 02:34:45 UTC

Problem with asp module and apache on win98

Hi,

I have installed apache server on windows98 with modperl
and apache::asp module, but I can't make it working.

I have put this in httpd.conf:

<Files *.asp>
   SetHandler perl-script
   PerlHandler Apache::ASP
   PerlSetVar Global C:/Windows/temp
   PerlSetVar CookiePath /
   PerlSetVar AllowSessionState 1
   PerlSetVar SessionTimeout 20
   PerlSetVar Debug 2
   PerlSetVar BufferingOn 1
   PerlSetVar StatINC 1
   PerlSetVar SessionSerialize 0
   PerlSetVar SoftRedirect 0
   PerlSetVar NoState 0
   PerlSetVar StateDir ./.state
   PerlSetVar StateManager 10
</Files>


When I try to run in my browser an ASP page I
get an internal error (500) and this is the error.log:


[Mon Nov 26 03:39:00 2001] [error] Can't call method "FETCH" on an undefined
value at /apache/lib/perl/MLDBM/Sync.pm line 86.
 MLDBM::Sync::AUTOLOAD('MLDBM::Sync=HASH(0x114a1f8)', 'application') called
at D:/Perl/site/lib/Apache/ASP.pm line 5221
 Apache::ASP::State::FETCH('Apache::ASP::State=HASH(0x114b36c)',
'application') called at D:/Perl/site/lib/Apache/ASP.pm line 4954
 Apache::ASP::State::new('Apache::ASP=HASH(0x114bf48)', 'application',
'server') called at D:/Perl/site/lib/Apache/ASP.pm line 5208
 Apache::ASP::State::TIEHASH('Apache::ASP::State',
'Apache::ASP=HASH(0x114bf48)', 'application', 'server') called at
D:/Perl/site/lib/Apache/ASP.pm line 4530
 Apache::ASP::Application::new('Apache::ASP=HASH(0x114bf48)') called at
D:/Perl/site/lib/Apache/ASP.pm line 563
 Apache::ASP::new('Apache::ASP', 'Apache=SCALAR(0x140e638)') called at
D:/Perl/site/lib/Apache/ASP.pm line 148
 Apache::ASP::handler('Apache=SCALAR(0x140e638)') called at nul line 0
 eval {...} called at nul line 0



Could anyone help me?

Thanks in advance.


--
G.d'A.



P.S.:
before I got another error too:
"flock() unimplemented on this platform at /apache/lib/perl/
MLDBM/Sync.pm line xxx"
but I commented out some lines in sync.pm and so I fixed that.
Anyway, since I have read on the documentation that it is possible to
"disable use of flock() on Win95/98 where it is unimplemented"
I'd want to know how I can do this (instead of commenting out).




Re: Problem with asp module and apache on win98

Posted by Joshua Chamas <jo...@chamas.com>.
[[ repost from Apache::ASP list ]]

Giorgio D'Anna wrote:
> 
> before I got another error too:
> "flock() unimplemented on this platform at /apache/lib/perl/
> MLDBM/Sync.pm line xxx"
> but I commented out some lines in sync.pm and so I fixed that.
> Anyway, since I have read on the documentation that it is possible to
> "disable use of flock() on Win95/98 where it is unimplemented"
> I'd want to know how I can do this (instead of commenting out).
> 

Install a fresh MLDBM::Sync, and then add this to your
httpd.conf file:

<Perl>
*CORE::GLOBAL::flock = sub { 1 };
</Perl>

This is to define a flock to effectively nothing, which will be
fine on win98 for now since mod_perl is serialized on this platform.
I believe this will only work with perl 5.6, but when working things 
out with someone else recently, this seems to do the trick.

If you plan any network communications on win32 apache/mod_perl
via perl I would also recommend that you set MaxThreadsPerChild to 1
which will get rid of odd socket problems.

--Josh
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051