#2. create user and group for fpm(fastcgi process manager)
groupadd fpm
useradd --shell /sbin/nologin -g fpm fpm
#3. download, configure and install php5.3.29
wgethttp://cn2.php.net/get/php-5.3.29.tar.gz/from/this/mirrortar zxvf mirror
cd php-5.3.29
./configure --prefix=/usr/local/php \
--enable-fpm \
--with-fpm-user=fpm \
--with-fpm-group=fpm \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--without-pdo-sqlite \
--without-sqlite3 \
--without-sqlite \
--with-mysql-sock=/tmp/mysql.sock \
--with-curl \
--enable-mbstring \
--with-mhash \
--with-mcrypt \
--with-openssl \
--with-gd \
--enable-sockets \
--with-gettext \
--with-zlib \
--enable-zip \
--enable-soap \
--with-xmlrpc
make && make install
#4. install apc
#5. install memcached