mod_perl2で高速化

12:02 pm FreeBSD

mod_perl2でperlの高速化をねらいます。自分は基本的にapahce2.2系を利用しているのでmod_perl2を利用することとなります。では早速始めましょう

今回もportsを有り難く利用させて頂きます。

 

% cd /usr/ports/www/mod_perl2/

% make install clean

 

以上でインストールは終了です。後はインストールされた「mod_perl.so」をロード出来るようにapacheの設定を行います。

 

% vi /usr/local/etc/apache22/httpd.conf

LoadModule perl_module libexec/apache22/mod_perl.so          <- 追加

 

以上でmod_perl2を利用する準備が完了しました。念のため「apachectl configtest」で設定ファイルをチェックして問題ないことを確認、その後apacheの再起動をいます。正常に起動すればperlスプリクトはmod_perl2で実行されるようになります。

Leave a Comment

Your comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.