phpをworker仕様に、、、

workerにしたかったので仕方なくコンパイル

wget http://jp2.php.net/get/php-5.5.2.tar.bz2/from/jp1.php.net/mirror
tar -xvjf php-5.5.2.tar.bz2
cd php-5.5.2
./configure --with-apxs2=/usr/sbin/apxs \
--with-config-file-path=/etc/httpd/conf/php \
--with-pear \
--with-tsm-pthreads \
--enable-maintainer-zts \
--enable-mbstring \
--enable-mbregex \
--enable-bcmath \
--enable-zip \
--with-mhash \
--with-openssl \
--with-curl \
--with-curlwrappers \
--with-mysql \
--with-mysqli \
--with-pdo-mysql \
--with-zlib \
--with-bz2 \
--with-xmlrpc \
--with-xsl \
--with-readline

make
make install

☆たりないものはいろいろyumで入れてしまう。
面倒だった。


しかし、、
Call-time pass-by-reference has been remove が多発したので、5.3.xxに入れなおした。
Call-time pass-by-reference has been deprecated となる。。。


tar -xvjf php-5.3.27.tar.bz2

./configure --with-apxs2=/usr/sbin/apxs \
--with-config-file-path=/etc/httpd/conf/php \
--with-libdir=lib64 \
--with-pear \
--with-tsm-pthreads \
--enable-maintainer-zts \
--enable-mbstring \
--enable-mbregex \
--enable-bcmath \
--enable-zip \
--with-mhash \
--with-openssl \
--with-curl \
--with-curlwrappers \
--with-mysql \
--with-mysqli \
--with-pdo-mysql \
--with-zlib \
--with-bz2 \
--with-xmlrpc \
--with-xsl \
--with-readline


iniは、productionを使う。
cp -p php.ini-production /etc/httpd/conf/php/php.ini