Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Fred Moyer
I use it every day and it works great for me. If you could post the relevant section of httpd.conf where you configure Apache2::Reload ( in addition to the lines above), I'm sure we could help you out. I don't have any other entries in my httpd.conf file for Apache2::Reload. As I read the doc

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
> I also had to make the follow addition to my config file: > >PerlInitHandler Apache2::Reload >PerlSetVar ReloadAll Off > > I never figured out how to check if it was actually picking up changes > on its own. > > For now, I have reverted to not using Apache2::Reload, which is kind

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
> Do you import OK from Apache2::Const in your script? If you don't > return OK, do you still have that message? > - Perrin I do import the constants: use Apache2::Const qw( OK FORBIDDEN REDIRECT :log ); When I don't return OK, I got an error as well but not from the handler (i.e. no

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Jonathan Vanasco
On Oct 18, 2006, at 3:17 PM, Michael Greenish wrote: For now, I have reverted to not using Apache2::Reload, which is kind of a shame since I am still in the development stages of my application. Just have your handler call another sub, and do everything in there. Apache2::Reload will def

Re: Reading PerlSetVar in mod_perl2

2006-10-18 Thread Perrin Harkins
On Wed, 2006-10-18 at 15:30 +0530, [EMAIL PROTECTED] wrote: > > SSLRequireSSL > SetHandlerperl-script > PerlHandler Apache::Hello > PerlSetVarsomevar1 1 > PerlSetVarsomevar2 2 > PerlSetVarsomevar3 3 > PerlSetVarso

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Fred Moyer
On Wed, 18 Oct 2006, Michael Greenish wrote: I also had to make the follow addition to my config file: PerlInitHandler Apache2::Reload PerlSetVar ReloadAll Off I never figured out how to check if it was actually picking up changes on its own. For now, I have reverted to not us

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Perrin Harkins
On Wed, 2006-10-18 at 07:59 -0700, Michael Greenish wrote: > I just added apache2::reload to config & handlers, classes, packages > for my application. However, everywhere I have "return OK", I get an > error: > > "Not a CODE reference at /http/greanie/IndexHandler.pm on ..." Do you import OK fr

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
I also had to make the follow addition to my config file: PerlInitHandler Apache2::Reload PerlSetVar ReloadAll Off I never figured out how to check if it was actually picking up changes on its own. For now, I have reverted to not using Apache2::Reload, which is kind of a shame

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Jonathan Vanasco
On Oct 18, 2006, at 10:59 AM, Michael Greenish wrote: Hello, I just added apache2::reload to config & handlers, classes, packages for my application. However, everywhere I have "return OK", I get an error: "Not a CODE reference at /http/greanie/IndexHandler.pm on ..." and request retur

Re: child pid 28464 exit signal Segmentation fault (11)

2006-10-18 Thread Fred Moyer
Cyril SCETBON wrote: Cyril SCETBON wrote: Hi people, I get this error message int error.log when I try to access a perl script which exists or not. I've turned on trace messages in mod_perl and here is my error.log : [Sun Oct 08 17:19:39 2006] [notice] Apache/2.0.55 (Ubuntu) mod_ssl/2.0.55

Re: child pid 28464 exit signal Segmentation fault (11)

2006-10-18 Thread Cyril SCETBON
Cyril SCETBON wrote: Hi people, I get this error message int error.log when I try to access a perl script which exists or not. I've turned on trace messages in mod_perl and here is my error.log : [Sun Oct 08 17:19:39 2006] [notice] Apache/2.0.55 (Ubuntu) mod_ssl/2.0.55 OpenSSL/0.9.8a mod_pe

Re: AW: Cannot restart or stop Apache after several days of running

2006-10-18 Thread Malcolm J Harwood
On Wednesday 18 October 2006 02:14, Henrik Steffen wrote: > > Are you running with ssl enabled? > no Then ssl isn't the problem. > > One thing I've noticed (at least on linux) is that if your system is low > > on entropy random number generator is low on randomness > > ('cat /proc/sys/kernel/ran

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Tom Schindl
Morad IGMIR schrieb: > Hello, > > Perhaps you could paste us some of the code in IndexHandler.pm, > what does it do ? > is it a PerlResponseHandler ? (just trying to guess by the name) > In which case, wouldn't Apache2::Const::HTTP_OK be more appropriate ? > No. No. No. Handlers always return A

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Morad IGMIR
Hello, Perhaps you could paste us some of the code in IndexHandler.pm, what does it do ? is it a PerlResponseHandler ? (just trying to guess by the name) In which case, wouldn't Apache2::Const::HTTP_OK be more appropriate ? Le 18 oct. 06 à 16:59, Michael Greenish a écrit : Hello, I just add

apache2::reload causing 500 errors on return statement

2006-10-18 Thread Michael Greenish
Hello, I just added apache2::reload to config & handlers, classes, packages for my application. However, everywhere I have "return OK", I get an error: "Not a CODE reference at /http/greanie/IndexHandler.pm on ..." and request returns the page and a 500 error (in browser, I see rendered page

Reading PerlSetVar in mod_perl2

2006-10-18 Thread khan.sajid
Hi All,   I asked the same question before but with not much help so I am asking it again, The below configuration is added to a configuration file and that is included in httpd.conf     SSLRequireSSL  SetHandler    perl-script  PerlHandler   Apache::Hello  PerlSetVar