RE: BerkeleyDB error

"Peram, Sudhakara" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <1AB4528DFFE18144962BB7139C3357C30400170D@ndhamrexm51.amer.pfizer.com>
Thanks Jim.

 

I am bit novice to mod_perl and apache, below is my httpd.conf
configuration. Can you please let me know how to use Apache::ChildExit
module if you have free time.

 

 

<Location />

PerlFixupHandler Apache::Resource

</Location>

 

PerlModule Apache::Filter

# Actual mod_perl setting.

<Files *.pl>

  Options ExecCGI

  SetHandler perl-script

#  PerlHandler Apache::PerlRun

  PerlSetVar Filter On

  PerlHandler Apache::RegistryFilter Apache::Compress

  PerlSendHeader On

  PerlInitHandler CDARSLog

</Files>

 

<Files *top.pl>

  Options ExecCGI

  SetHandler perl-script

  PerlHandler Apache::PerlRun

  PerlSendHeader On

  PerlInitHandler CDARSLog

</Files>

 

# Actual mod_perl setting.

<Files *.mpl>

  Options +ExecCGI

  SetHandler perl-script

  PerlHandler Apache::Registry

  PerlSendHeader On

</Files>

 

<Files *.xpl>

  Options +ExecCGI

  SetHandler perl-script

  PerlHandler Refresh

  PerlSendHeader On

</Files>

 

# watch what mod_perl is doing...

<Location /perl-status>

  SetHandler perl-script

  PerlHandler Apache::Status

  order deny,allow

  deny from all

  allow from all

</Location>

 

<Location /xxxx/gui/>

         # This is the standard authentication stuff

         AuthName "CDARS Authentication"

         AuthType Basic

 

         PerlAuthenHandler xxxx_Access

 

         require valid-user

</Location>

 

 

Where xxxx is our application name.

 

Thank you once again for your help!

 

 

 

--Sudhakar

 

-----Original Message-----
From: Jim Schueler [mailto:[email protected]] 
Sent: Sunday, January 02, 2011 7:35 PM
To: Peram, Sudhakara
Cc: [email protected]; Perrin Harkins
Subject: Re: BerkeleyDB error

 

I wrote the module Apache::ChildExit specifically to resolve the 

incompatibility between BerkeleyDB and Apache::Registry

 

  http://search.cpan.org/~tqisjim/ChildExit_0-1/

 

 -Jim

 

> Subject: Re: BerkeleyDB error

> From: Perrin Harkins <[email protected]>

> To: "Peram, Sudhakara" <[email protected]>

> Cc: [email protected]

> Content-Type: text/plain; charset=ISO-8859-1

> 

> Hi,

> 

> > I am able to execute that perl script

> > successfully few times (less than 5 times) after every restart of
Apache web

> > server. After that I am getting following BerkeleyDB error message
in log

> > file of that script (i.e., run_command).

> 

> Are you using Apache::Registry for this?

> 

> It sounds as if your requests fail on the second attempt to run the

> script in a process.  If you start apache with the -X option, do they

> fail on the second request?

> 

> - Perrin

>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.