1

次のバージョンがインストールされています。

Apache::SmallProf - 0.09 
Apache::Registry - 2.01
Devel::SmallProf - 2.02

そして、Apache 構成ファイル (/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>

Web ブラウザーから CGI を要求して初めて実行したときに、次のようなエラー メッセージが表示されます。

[doraemon] [modperl] [Mon Jun 22 07:20:39 2009] [error] /usr/local/apache_modperl//logs/smallprof does not exist: No such file or directory at /usr/local/lib/perl/5.8.8/Apache/SmallProf.pm line 46.\n [failed] [Connection refused]

わかった。少なくとも、smallprof が実行しようとしていることは知っています。したがって、ディレクトリ /usr/local/apache_modperl/logs/smallprof を手動で作成し、誰でも書き込みできるようにします。

私はもう一度やり直します:

[doraemon] [modperl] Attempt to free unreferenced scalar: SV 0x11a9ac78, Perl interpreter: 0x9e6ba80 at (null) line 236. [failed] [Connection refused]
[doraemon] [modperl] [Mon Jun 22 07:22:22 2009] [notice] child pid 10203 exit signal Segmentation fault (11) [success]

どんなアドバイスでも大歓迎です。

ありがとう。

4

1 に答える 1

2

Devel::NYTProf::Apacheを使用すると、実際にはより簡単に過ごせる場合があります。

# in your Apache config file with mod_perl installed
PerlPassEnv NYTPROF
PerlModule Devel::NYTProf::Apache
于 2009-08-28T03:46:55.630 に答える