apache2とかphp4とかのインストール

なんだかfedoraにはいってたapacheにイラついたので
心機一転します。

apacheのインストール

cd /usr/local/src
tar -zxvf httpd-2.0.59.tar.gz
cd httpd-2.0.59

ほぼほぼふるふる

./configure \
--with-mpm=prefork \
--prefix=/usr/local/lifeloveregret/apache2 \
--enable-mods-shared=all \
--enable-proxy=shared \
--enable-so

make

make install


php用のモジュールいろいろインストール


opensslのインストール

tar zxvf openssl-0.9.8d.tar.gz
cd openssl-0.9.8d
./config --prefix=/usr/local/lifeloveregret/openssl shared
make
make install


zlibのインストール

tar xvzf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure --shared --prefix=/usr/local/lifeloveregret/zlib
make
make test
make install


libjpegのインストール

tar xvzf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --enable-shared --prefix=/usr/local/lifeloveregret/libjpeg
make
cd /usr/local/cybozu_net/libjpeg/
mkdir include
mkdir lib
mkdir bin
mkdir man
cd man
mkdir man1
cd /usr/local/src/jpeg-6b
make install


libpngのインストール

tar zxvf libpng-1.2.16.tar.gz
cd libpng-1.2.16
cp ./scripts/makefile.linux ./Makefile
vim ./scripts/makefile.linux

以下の場所を

prefix=/usr/local
ZLIBLIB=../zlib
ZLIBINC=../zlib

↓以下のように書き換え

prefix=/usr/local/lifeloveregret/libpng
ZLIBLIB=/usr/local/lifeloveregret/zlib/lib
ZLIBINC=/usr/local/lifeloveregret/zlib/include

そして

make
make install


php4のインストール

tar zxvf php-4.4.6.tar.gz
cd php-4.4.6
./configure \
--with-apxs2=/usr/local/lifeloveregret/apache2/bin/apxs \
--prefix=/usr/local/lifeloveregret/php44 \
--disable-debug \
--with-xml=shared \
--enable-fastcgi \
--with-mysql \
--with-config-file-path=/home/www/conf \
--with-openssl=/usr/local/lifeloveregret/openssl \
--with-openssl-dir=/usr/local/lifeloveregret/openssl \
--with-zlib-dir=/usr/local/lifeloveregret/zlib \
--with-zlib=/usr/local/lifeloveregret/zlib \
--with-jpeg \
--with-jpeg-dir=/usr/local/lifeloveregret/libjpeg \
--with-gd \
--with-png \
--with-png-dir=/usr/local/lifeloveregret/libpng \
--enable-gd-native-ttf \
--with-iconv \
--enable-mbstring \
--enable-mbregex \
--enable-zend-multibyte

make
make install

ああ、つかれた。