Apache1.3.20 + PHP3.0.18 + OpenSSL0.9.6 + mod-SSL2.8.4 インストール |
HTTPD Installation Last modified : 2001/07/03 |
* | 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.20.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.4-1.3.20.tar.gz | |
OpenSSL | ftp://ftp.openssl.org/source/ | openssl-0.9.6a.tar.gz |
# cd /usr/local/src # tar zxvf apache_1.3.20.tar.gz # tar zxvf php-3.0.18-i18n-ja-2.tar.gz # tar zxvf mod_ssl-2.8.4-1.3.20.tar.gz # tar zxvf openssl-0.9.6a.tar.gz |
$ cd openssl-0.9.6a $ ./config --openssldir=/usr/local/openssl ← 指定したフォルダに全てインストール $ make clean ← 前に作成した際のゴミを削除 $ make ← オブジェクト生成 $ make test ← 自己テスト # make install ← インストール |
# cd /usr/local/src/mod_ssl-2.8.4-1.3.20 # ./configure --with-apache=../apache_1.3.20 |
# cd ../apache_1.3.20 # ./configure --prefix=/usr/local/www |
# cd ../php-3.0.18-i18n-ja-2 # CFLAGS='-O2 -I/usr/local/openssl/include' ./configure --with-apache=../apache_1.3.20 \ --with-pgsql=/usr/local/pgsql --enable-memory-limit=yes --enable-debug=no \ --enable-track-vars --enable-i18n --enable-mbregex # gmake # gmake install |
# cd ../apache_1.3.20 # SSL_BASE=/usr/local/openssl ./configure --prefix=/usr/local/www --enable-module=ssl \ --activate-module=src/modules/php3/libphp3.a --enable-module=php3 # make # make install |
+--------------------------------------------------------+ | 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: Mon, 02 Jul 2001 01:20:48 GMT Server: Apache/1.3.20 (Unix) PHP/3.0.18-i18n-ja-2 mod_ssl/2.8.4 OpenSSL/0.9.6a Content-Location: index.html.en Vary: negotiate,accept-language,accept-charset TCN: choice Last-Modified: Fri, 29 Jun 2001 11:26:39 GMT ETag: "1cf21a-a71-3b3c65ef;3b3c797d" Accept-Ranges: bytes Content-Length: 2673 Connection: close Content-Type: text/html Content-Language: en Expires: Mon, 02 Jul 2001 01:20:48 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 |