./configure --prefix=/usr/local/php-5.3.5
--with-config-file-path=/usr/local/php-5.3.5/etc
--with-config-file-scan-dir=/usr/local/php-5.3.5/etc/conf.d
--enable-fpm
--with-fpm-user=www
--with-fpm-group=www
--with-pear
--with-curl
--with-gd
--with-jpeg-dir
--with-png-dir
--with-freetype-dir
--with-iconv
--with-mcrypt
--with-mhash
--with-zlib
--with-xmlrpc
--with-xsl
--with-openssl
--with-mysql
--with-mysqli
--with-pdo-mysql
--disable-debug
--enable-zip
--enable-sockets
--enable-soap
--enable-mbstring
--enable-magic-quotes
--enable-inline-optimization
--enable-memory-limit
--enable-xml
--enable-ftp
--enable-exif
--enable-wddx
--enable-bcmath
--enable-calendar
--enable-sqlite-utf8
--enable-shmop
--enable-dba
--enable-sysvsem
--enable-sysvshm
--enable-sysvmsg
make && make install