RIGHT:[[フリーソフトウェアのコンパイル]]
//-------------
//  apache+ PHP
//-------------
*コンパイル環境 [#qbccdb59]
**マシン [#u70c4720]
--Sun Fire v480 -> Sun Fire 280R
--Solaris 8 07/03 -> Solaris 10/01
--gcc 3.4

コンパイルはすべて, 以下の環境変数を設定して行う.

(LD_LIBRARY_PATH, LD_RUN_PATH の値は結果的に
 LD_RUN_PATH=/usr/local/lib:/usr/local/ssl/lib
 PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin:/usr/ucb
となってる.)

*zlib-1.2.1 -> 1.2.3 [#pa9b61aa]
 % ./configure --shared
 % make 
 # make install
 # mkdir /opt/local/man/man3
 # cp zlib.3 /opt/local/man/man3

*openssl-0.9.7c -> 0.9.7i [#ge685053]
 % ./config shared zlib-dynamic
 % make
 % make test
 # make install

*apache(httpd-2.0.48 -> 2.0.55) [#mc3b7fbb]
**コンパイルとインストール [#y8290ced]
 % ./configure --enable-so --enable-mods-shared=all \
   --enable-ssl=shared --with-mpm=prefork --with-z=/usr/local \
   --with-ssl
 % make
 # make install

**apache ユーザ作成 [#p7912b36]
 # groupadd -g 80 apache
 # useradd -d /dev/null -u 80 -g apache -s /bin/false apache

**SSL 自己認証キー作成 [#aeecca93]
 # /usr/local/ssl/bin/openssl  genrsa -des3 1024 > ssl.key
 # /usr/local/ssl/bin/openssl req -new -key ssl.key -out ssl.csr
 # /usr/local/ssl/bin/openssl req -new -key ssl.key -x509 -days 365 -out ssl.crt
 # /usr/local/ssl/bin/openssl rsa -in ssl.key -out ssl.key.nopass
 
 # mkdir /usr/local/apache2/conf/ssl.key
 # mkdir /usr/local/apache2/conf/ssl.crt
 # cp ssl.key /usr/local/apache2/conf/ssl.key/
 # cp ssl.key.nopass /usr/local/apache2/conf/ssl.key/
 # chmod 400 /usr/local/apache2/conf/ssl.key/*
 # cp ssl.crt /opt/apache/conf/ssl.crt/

*PHP [#q6c86e0b]
 % ./configure  --with-apxs2=/usr/local/apache2/bin/apxs \
  --enable-mbstring --enable-mbregex \
  --with-openssl=/usr/local/ssl --with-zlib=/usr/local --with-xml
 % make
 # make install

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS