Hello!

The following code doesn't work. I think that child_init_handler is
never called. But there are no errors in the error log.

What goes wrong here?

---------[/home/nikratio/cvs/tsession-perl/Apache/foo.pm]------------
#!/usr/bin/perl -w

package Apache::foo;

use Apache::Cookie ();
use Apache::Constants ':response';
use Apache::Util qw(:all);
use Apache::Log;
use strict;

sub child_init_handler($$)
{
    my($this,$r) = @_;
    $r->log_error("Session Manager initialized");
    return OK;
}

sub child_exit_handler($$)
{
    my($this,$r) = @_;
    $r->log_error("Session Manager initialized");
    return OK;
}

1;

----------[apache config]-----------
<Perl>
BEGIN {
   push @INC, "/home/nikratio/cvs/tsession-perl";
}
</Perl>

PerlModule Apache::TSession
PerlModule Apache::foo

PerlChildInitHandler  Apache::foo->child_init_handler()
PerlChildExitHandler  Apache::foo->child_exit_handler()

...
----------[error log]-------------
[Fri Mar 30 15:23:30 2001] [notice] SIGUSR1 received.  Doing graceful restart
[Fri Mar 30 15:23:31 2001] [notice] FastCGI: wrapper mechanism enabled (wrapper: 
/usr/lib/apache/suexec)
[Fri Mar 30 15:23:31 2001] [notice] FastCGI: process manager initialized (pid 19827)
[Fri Mar 30 15:23:32 2001] [notice] Apache/1.3.14 (Unix) Debian/GNU mod_fastcgi/2.2.10 
mod_ssl/2.7.1 OpenSSL/0.9.6 mod_perl/1.24_01 PHP/4.0.4pl1 configured -- resuming 
normal operations
[Fri Mar 30 15:23:32 2001] [notice] suEXEC mechanism enabled (wrapper: 
/usr/lib/apache/suexec)
[Fri Mar 30 15:23:54 2001] [error] [client 127.0.1.1] client denied by server 
configuration: /home/nikratio/Projekte/net-control.org/public/..
EOF

Thanks in advance,
  - Nikolaus

-- 
"de.alt.comp.kde    Dumm und trotzdem UNIX verwenden? KDE ist die Loesung."
                    Sven Paulus in <67hu21$43r$[EMAIL PROTECTED]>

Reply via email to