php-5.1.4

GDとかpdoとかもいれることにしたので
curlがmomongaのものだと古いらしく、curlは最新を/opt/curl下にいれました。
あと。devel系もろもろ
gd,gd-devel,freetype2-devel,libpng-devel,libjpeg-devel

./configure --prefix=/usr/local/stow/php-5.1.4 \
--enable-fastcgi \
--enable-cli \
--enable-discard-path \
--enable-force-cgi-redirect \
--enable-mbstring \
--enable-mbregex \
--enable-mbstr-enc-trans \
--enable-iconv \
--enable-trans-sid \
--with-pgsql=/usr/local \
--with-mysql=/usr/local \
--with-pdo-pgsql \
--with-pdo-mysql \
--with-zlib=/usr --with-zlib-dir=/usr \
--with-xml \
--enable-exif \
--enable-ftp \
--enable-sockets \
--with-openssl \
--enable-calendar \
--with-gd \
--with-freetype-dir=/usr \
--enable-gd-native-ttf \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--enable-soap \
--with-curl=/opt/curl \

ついでにlighthttpd.confを見直し

fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/local/bin/php",
"max-procs" => 1,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "10",
"PHP_FCGI_MAX_REQUESTS" => "3000"
),
"broken-scriptfilename" => "enable"
)
)
)

これで親プロセス1個で子プロセス10個で常駐化してる模様