apacheは
http://httpd.apache.org/
から最新をダウンロードする。
現在は、2.2.11
以前からapacheを使っている場合は、config.niceを見て、オプションを決定する。
今回は、rewriteを追加したかった。
./configure --with-apxs2=/usr/local/apache2/bin/apxs --without-mysql --with-mysqli --enable-mbstring --enable-mbstr-enc-trans --with-dom=/usr/local/include/libxml2 --enable-xslt --with-xslt-sablot --with-zlib --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-gd --enable-rewrite
make
make install
/usr/local/apache2/bin/apachectl stop
/usr/local/apache2/bin/apachectl start
(restart だと、PHPが新しくなったって認識しない。PHPは基本分かりません。)
特に支障なくバージョンアップと機能追加完了。