Install php5-fpm Debian

apt-get install php5 php5-gd php5-imagick php5-suhosin php5-cli php5-curl php5-mysql php5-mcrypt

Add Dotdebā€™s sources in your Debian /etc/apt/source.list

## PHP5-FPM

deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all
gpg --keyserver keys.gnupg.net --recv-key 89DF5277
gpg -a --export 89DF5277 | apt-key add -

Then install php5-fpm:

apt-get update
apt-get install php5-fpm

Settings in /etc/php5/fpm/pool.d/www.conf

;listen = 127.0.0.1:9000
listen = /var/run/php5-fpm.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0666
user = www-data
group = www-data
php_flag[display_errors] = off
php_admin_value[error_log] = /var/log/fpm-php.www.log
php_admin_flag[log_errors] = on
php_admin_value[error_reporting] = 0
php_admin_value[memory_limit] = 128M

in /etc/php5/fpm/php.ini add:

zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so
zend_optimizer.optimization_level = 15
zend_loader.enable=1