Think you need to load in Apache::Registry with : PerlModule Apache::Registry
before the PerlHandler Apache::Registry bit Suggest also that you do all the module loading / startup before specifying any handlers eg . from my mod_perl.conf PerlRequire conf/startup.pl PerlFreshRestart on PerlSetVar StatusOptionsAll On PerlSetVar StatusTerse On PerlSetVar StatusTerseSize On PerlSetVar StatusTerseSizeMainSummary On Alias /perl-bin/ /usr/local/apache/mod_perl/ PerlModule Apache::DProf PerlModule Apache::Registry PerlModule B::TerseSize PerlModule Apache::Status <Location /perl-bin> SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI PerlSendHeader On allow from all </Location> On Wednesday 24 Jul 2002 2:20 pm, Ruslan V. Sulakov wrote: > I have troubles using Apache::DProf > I try to use it as described at: > http://perl.apache.org/docs/1.0/guide/performance.html#Code_Profiling_Techn >i ques > > But when my httpd.conf has a line: > PerlModule Apache::DProf > apache reply with error 500 (Internal Server Error) when I request a perl > script, that runs under mod_perl > > Without this line, all works fine! > > Errorlog shows following message during each request: > [Sat Jul 20 07:34:28 2002] [error] Undefined subroutine > &Apache::Registry::handler called. > > > I have in my httpd.conf > <Files *.pl> > SetHandler perl-script > PerlHandler Apache::Registry > PerlSendHeader On > Options +ExecCGI > PerlModule Apache::DProf > PerlRequire /path/to/my/modules/modperl_startup.pl > </Files> > > Is here something wrong? > How can I have Apache::DProf worked for profiling my code? > > Thanks in advance. > Ruslan