I have the following version being installed :
Apache::SmallProf - 0.09 Apache::Registry - 2.01 Devel::SmallProf - 2.02
And I try to add the following settings in my apache config file (/usr/local/apache_modperl/conf/httpd.conf)
<Perl> require Apache::DB; Apache::DB->init; </Perl> <Directory /home/website/www/cgi-m> SetHandler perl-script PerlSetVar Filter on PerlSetVar CleanLevel 5 PerlAddVar CleanOption whitespace PerlHandler Apache::Registry PerlFixupHandler Apache::SmallProf Options ExecCGI </Directory>
When I first run by request a CGI through web browser, here is the error message I get :
[doraemon] [modperl] [Mon Jun 22 07:20:39 2009] [error] /usr/local +/apache_modperl//logs/smallprof does not exist: No such file or direc +tory at /usr/local/lib/perl/5.8.8/Apache/SmallProf.pm line 46.\n [fai +led] [Connection refused]
OK. At least I know smallprof is trying to run. Hence, I manually create directory /usr/local/apache_modperl/logs/smallprof and ensure it is writable by anyone. I try again :
[doraemon] [modperl] Attempt to free unreferenced scalar: SV 0x11a +9ac78, Perl interpreter: 0x9e6ba80 at (null) line 236. [failed] [Conn +ection refused] [doraemon] [modperl] [Mon Jun 22 07:22:22 2009] [notice] child pid + 10203 exit signal Segmentation fault (11) [success]
Any advice will be much appreciated. Thanks.

In reply to Problem In Configure SmallProf to work with mod_perl by yccheok

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.