2007-11-01から1ヶ月間の記事一覧

mod_ssl の設定

割愛。

mod_encoding 準備

取ってきて、展開して、コピーして、パッチあてる # cd ../ # wget http://webdav.todo.gr.jp/download/mod_encoding-20021209.tar.gz # wget http://webdav.todo.gr.jp/download/experimental/mod_encoding.c.apache2.20040616 # wget http://www.aconus.co…

mod_encoding の設定

ネットに転がってる例をそのまま拝借 EncodingEngine on SetServerEncoding UTF-8 DefaultClientEncoding UTF-8 CP932 EUCJP-MS AddClientEncoding "Microsoft .* DAV 1.1" ASCII CP932 UTF-8 AddClientEncoding "Microsoft .* DAV" UTF-8 CP932 AddClientEn…

mod_encoding 作成

configure の後に Makefile をちょいちょいいじる。 # cd ../ # ./configure --with-apxs=/usr/local/apache2/bin/apxs \ --with-iconv-hook=/usr/local/include # vi Makefile LIBS に -L/usr/local/lib -liconv_hook をくわえて install-exec-local: の箇…

mod_encoding を作るための iconv_hook 作成

mod_encoding のtarballに同梱されてるので、それをつくる。 最後に ldconfig を忘れずに。 # cd lib # ./configure # make # make install # vi /etc/ld.so.conf.d/local.conf /usr/local/lib を記述 # ldconfig

本体作成

mod_ssl は指定しないと作られないのでそこだけ注意。 # tar -jxpf httpd-2.2.6.tar.bz2 # cd httpd-2.2.6 # ./configure --prefix=/usr/local/apache2 \ --with-mpm=prefork \ --with-ssl \ --enable-modules=all \ --enable-mods-shared=all \ --enable-ss…

前提条件

OpenSSL は入ってる。 なかったら取ってきてインスコしとけー

必要なもの

本体 httpd-2.2.6.tar.bz2 mod_encoding 本体 http://webdav.todo.gr.jp/download/mod_encoding-20021209.tar.gz mod_encoding Apache2.0 用 http://webdav.todo.gr.jp/download/experimental/mod_encoding.c.apache2.20040616 mod_encoding Apache2.2 用パ…

httpd を作る

apr と apr-util を見つつ作る感じ # cd ../../ # ./configure --prefix=/usr/local/apache2 \ --with-apr=/usr/local/apache2 \ --with-apr-util=/usr/local/apache2 \ --with-mpm=prefork \ --enable-modules=all \ --enable-mods-shared=all \ --enable-d…

apr-util を作る

apr を指定しつつ mysql を見つつ作る感じ。 configure オプションはテキツー # cd ../apr-util # ./configure --prefix=/usr/local/apache2 \ --with-mysql=/usr/local/mysql \ --with-apr=/usr/local/apache2 # vi Makefile INCLUDES に -I/usr/local/mysql/in…

apr を作る

apr-util を作る前に apr を作る。 configure オプションはテキツー # cd ../apr # ./configure --prefix=/usr/local/apache2 --with-mysql=/usr/local/mysql # make # make install

apr_dbd_mysql

apache2 のアーカイブにはバンドルされてないので自分で取りにいく。 所定の場所に置きつつ変更を加える。 # cd httpd-2.2.6/srclib/apr-util/dbd # wget http://apache.webthing.com/database/apr_dbd_mysql.c # vi apr_dbd_mysql.c #include <mysql.h> #include <errmsg.h> とか #in</errmsg.h></mysql.h>…

httpd アーカイブ展開

# tar -jxpf httpd-2.2.6.tar.bz2