レンタルサーバー
BIG-server.com
簡単・はやい・大容量・どんな目的にもマッチするレンタルサーバー
HOME プライス お見積もり・プラン選択 お申し込み ユーザーサポート お問い合わせ
2010年3月1日の大規模なサーバーテロ攻撃に関するステートメント

■ Apache2.2にmod_SpeedyCGIを組み込むためのパッチの当て方
現在 BIG-server.com が秘かに開発を進めている Apache2.2.10 ウェブサーバー に、 BIG-server.comのオプションサービス「CGI高速化チューニング(perl言語)」のモジュール mod_SpeedyCGI を組み込みました。

Apache2.2でmod_SpeedyCGIが動かない・・・
■ mod_SpeedyCGIとは

mod_SpeedyCGIについての解説は、BIG-server.comのオプションサービス
CGI高速化チューニング(perl言語) を参考にしてください。

■ mod_SpeedyCGIをApache2.2系に組み込む時のエラー

現在配布されているmod_SpeedyCGIをそのままApache2.2に組み込むと、
コンパイルエラーにより組み込むことが出来ません。

# cd /hoge
# wget http://daemoninc.com/SpeedyCGI/CGI-SpeedyCGI-2.22.tar.gz
# tar xzpvf CGI-SpeedyCGI-2.22.tar.gz
# cd /hoge/CGI-SpeedyCGI-2.22/mod_speedycgi2
# perl Makefile.PL
# make install

〜〜〜コンパイル中〜〜〜

: warning: this is the location of the previous definition
mod_speedycgi2.c: In function 'discard_script_output':
mod_speedycgi2.c:343: error: expected ';' before '{' token
mod_speedycgi2.c: In function 'cgi_handler':
mod_speedycgi2.c:383: warning: assignment makes pointer from integer without a cast
mod_speedycgi2.c:468: error: expected ';' before '{' token
apxs:Error: Command failed with rc=65536
.
*** Error code 1

Stop in /tmp/CGI-SpeedyCGI-2.22/mod_speedycgi2.
*** Error code 1

Stop in /tmp/CGI-SpeedyCGI-2.22. #コンパイルエラーによりここで止まります。

#

Apache2.2でmod_SpeedyCGIを動かす
■ mod_SpeedyCGI にパッチをあてる

Apache2.2系にmod_SpeedyCGIを組み込むには、以下のURLで配布されているパッチをあてる必要があります。

CGI::SpeedyCGI with apr-1.0
http://sourceforge.net/tracker/index.php?func=detail&aid=1111235&group_id=2208&atid=302208

※ 上記URLで公開されているパッチファイルはwgetなどで直接サーバーにファイルを持ってくることが出来ませんので、 一度ローカルにダウンロードしてからFTPでサーバーにファイルをアップロードしてください。

# cd /hoge
# wget http://daemoninc.com/SpeedyCGI/CGI-SpeedyCGI-2.22.tar.gz
# tar xzpvf CGI-SpeedyCGI-2.22.tar.gz
ここで CGI::SpeedyCGI with apr-1.0 からダウンロードしたパッチファイルを
/hoge/CGI-SpeedyCGI-2.22/mod_speedycgi2 にアップロードする。
# cd /hoge/CGI-SpeedyCGI-2.22/mod_speedycgi2
# patch -p1 < patch-mod_speedycgi2.c #パッチをあてる
# cd ../
# perl Makefile.PL
# make install

〜〜〜コンパイル中〜〜〜

----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/apache2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/local/apache2/modules/mod_speedycgi.so
[activating module `speedycgi' in /usr/local/apache2/conf/httpd.conf]

#

この内容が表示されたらサーバにmod_SpeedyCGIの組み込みが成功となります。

■ 実際に利用するためには

実際に利用する場合はhttpd.confにmod_speedycgi.soを読み込むよう記述します。

LoadModule speedycgi_module modules/mod_speedycgi.so

BIG-server.com は Apache2.2.10 ウェブサーバー の提供に向けて、今日も秘かに開発を進めています。
ご質問などございましたら、メールにてお気軽にお問い合わせください。




BIG-server.com

Core 2 Duo + SATA 250GB RAID 1 T-Bananaサーバー 完全帯域保証+無制限 わずらわしい設定は一切不要


いま一番お得なページ! 解析
Copyright (C) 1997-2010, BIG-server.com. All Rights Reserved. server@maido3.com
レンタルサーバー BIG-server.com
Powered By Maido3.com