Apache1.3.17 + PHP3.0.18-i18n-ja-2 + mod_ssl-2.8.0-1.3.17 + OpenSSL-0.9.5a インストール | HTTPD Installation Last modified : 2001/02/26 |
* | Apache1.3.17には、mod_rewriteバグが見つかっています。パッチを当てるか最新のものをお勧めします http://httpd.apache.org/dist/apache_1.3.17-fix.diff |
* | PHP3.0.18-i18n-ja-2では、変数名"$sect"の値が、文字列が§(section mark)に自動変換される場合があります。 http://sidecar.ics.es.osaka-u.ac.jp/php-jp/archives/msg04863.html |
Type | Download Site | Name | |
---|---|---|---|
Apache | http://www.apache.org/dist/ | apache_1.3.17.tar.gz | 対応するmod_sslがあるバージョンを選択 |
PHP | ftp://ftp.happysize.co.jp/php-ja-jp/ | php-3.0.18-i18n-ja-2.tar.gz | PostgreSQL mailing list in Japanでオーサライズされていそうなものを選択 |
mod_ssl | ftp://ftp.modssl.org/source/ | mod_ssl-2.8.0-1.3.17.tar.gz | |
OpenSSL | ftp://ftp.openssl.org/source/ | openssl-0.9.5a.tar.gz |
# cd /usr/local/src # tar zxvf apache_1.3.17.tar.gz # tar zxvf php-3.0.18-i18n-ja-2.tar.gz # tar zxvf mod_ssl-2.8.0-1.3.17.tar.gz # tar zxvf openssl-0.9.5a.tar.gz |
$ cd openssl-0.9.5a $ ./config --openssldir=/usr/local/openssl ← 指定したフォルダに全てインストール $ make clean ← 前に作成した際のゴミを削除 $ make ← オブジェクト生成 $ make test ← 自己テスト # make install ← インストール |
# cd /usr/local/src/mod_ssl-2.8.0-1.3.17 # ./configure --with-apache=../apache_1.3.17 --with-ssl=../openssl-0.9.5a +---------------------------------------------------------------------- |Configuring mod_ssl/2.8.0 for Apache/1.3.17 | + Apache location: ../apache_1.3.17 (Version 1.3.17) | + OpenSSL location: ../openssl-0.9.5a | + Auxiliary patch tool: ./etc/patch/patch (local) | + Applying packages to Apache source tree: | o Extended API (EAPI) | o Distribution Documents | o SSL Module Source | o SSL Support | o SSL Configuration Additions | o SSL Module Documentation | o Addons |Done: source extension and patches successfully applied. | |Configuring for Apache, Version 1.3.17 | + using installation path layout: Apache (config.layout) |Creating Makefile |Creating Configuration.apaci in src |Creating Makefile in src | + configured for FreeBSD 3.2 platform | + setting C compiler to gcc | + setting C pre-processor to gcc -E | + checking for system header files | + adding selected modules | o ssl_module uses ConfigStart/End | + SSL interface: mod_ssl/2.8.0 | + SSL interface build type: OBJ | + SSL interface compatibility: enabled | + SSL interface experimental code: disabled | + SSL interface conservative code: disabled | + SSL interface vendor extensions: disabled | + SSL interface plugin: Vendor DBM (libc) | + SSL library path: /usr/local/src/openssl-0.9.5a | + SSL library version: OpenSSL 0.9.5a 1 Apr 2000 | + SSL library type: source tree only (stand-alone) | + enabling Extended API (EAPI) | + checking sizeof various data types | + doing sanity check on compiler and options |Creating Makefile in src/support |Creating Makefile in src/os/unix |Creating Makefile in src/ap |Creating Makefile in src/main |Creating Makefile in src/lib/expat-lite |Creating Makefile in src/modules/standard |Creating Makefile in src/modules/ssl | |Now proceed with the following commands: | $ cd ../apache_1.3.17 | $ make | $ make certificate | $ make install +---------------------------------------------------------------------- |
# cd /usr/local/src/apache_1.3.17 # ./configure --prefix=/usr/local/www |
# cd /usr/local/src/php-3.0.18-i18n-ja-2 # CFLAGS='-O2 -I/usr/local/openssl/include' ./configure --with-apache=../apache_1.3.17 --with-pgsql=/usr/local/pgsql --enable-memory-limit=yes --enable-debug=no --enable-track-vars --enable-i18n --enable-mbregex # gmake # gmake install |
# export LD_LIBRARY_PATH=/usr/local/pgsql/lib |
# cd /usr/local/src/apache_1.3.17 # SSL_BASE=/usr/local/openssl ./configure --prefix=/usr/local/www --enable-module=ssl --activate-module=src/modules/php3/libphp3.a --enable-module=php3 |
# cd /usr/local/src/apache_1.3.17 # make # make install |
# make ... <=== src/modules/ssl ===> src/modules/php3 make: don't know how to make ../../include/alloc.h. Stop *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. |
# cd /usr/local/src/apache_1.3.17/src/include # ln -s ap_alloc.h alloc.h |
+--------------------------------------------------------+ | You now have successfully built and installed the | Apache 1.3 HTTP server. To verify that Apache actually | works correctly you now should first check the | (initially created or preserved) configuration files | | /usr/local/www/conf/httpd.conf | | and then you should be able to immediately fire up | Apache the first time by running: | | /usr/local/www/bin/apachectl start | | Or when you want to run it with SSL enabled use: | | /usr/local/www/bin/apachectl startssl | | Thanks for using Apache. The Apache Group | http://www.apache.org/ +--------------------------------------------------------+ |
# /usr/local/www/bin/apachectl start apachectl start: httpd started |
# telnet localhost http Trying 127.0.0.1... Connected to localhost.xxx.co.jp. Escape character is '^]'. HEAD / HTTP/1.0 ← 入力 ← 改行のみ HTTP/1.1 200 OK Date: Tue, 20 Feb 2001 04:18:51 GMT Server: Apache/1.3.17 (Unix) PHP/3.0.18-i18n-ja-2 mod_ssl/2.8.0 OpenSSL/0.9.5a Content-Location: index.html.en Vary: negotiate,accept-language,accept-charset TCN: choice Last-Modified: Tue, 20 Feb 2001 04:04:59 GMT ETag: "1b0235-a71-3a91eceb;3a91ef55" Accept-Ranges: bytes Content-Length: 2673 Connection: close Content-Type: text/html Content-Language: en Expires: Tue, 20 Feb 2001 04:18:51 GMT Connection closed by foreign host. |
文字化けなどの問題を安易に解決 | 推奨値? |
---|---|
i18n.http_output = pass i18n.internal_encoding = EUC-JP i18n.script_encoding = pass i18n.http_input = pass i18n.http_input_default = pass |
i18n.http_output = SJIS i18n.internal_encoding = EUC-JP i18n.script_encoding = auto i18n.http_input = auto i18n.http_input_default = SJIS |
#!/bin/sh ←−− Linuxでは必要ありません /usr/local/www/bin/apachectl start |
# /usr/local/www/bin/apachectl stop # /usr/local/www/bin/apachectl startssl |
# ps -xa |
/usr/local/www/bin/apachectl start ↓ /usr/local/www/bin/apachectl startssl |
・UNIX MAGAZINE 2000年1月号 ・UNIX USER 2000年2月号 ・日経インターネットテクノロジー1998年1月号 --- http://neal.nikkeibp.co.jp/download/9801/index.html (素晴らしきフリー・ソフトの世界) ・CA鍵とサーバ鍵の作成時ログ --- http://goro.denshi.numazu-ct.ac.jp/SSL/log2.html ・Apache-SSLのインストール --- http://www.pixy.ne.jp/~miyamae/tech/linux/apache_ssl_132.html |