• Sales: 1-800-961-2888
  • Support: 1-800-961-4454

Installing NGINX and PHP-FPM


You've gotten your system ready to install PHP-FPM.

Now this is the most complicated and quite possibly the hardest piece to the setup.

Here is the overwhelming and complicated command set that you will need to enter in order to get NGINX and PHP-FPM installed on your Debian System.

apt-get -t squeeze-backports install nginx-extras; apt-get install php5 php5-fpm php5-common php5-curl php5-dev php5-gd php5-imagick php5-mcrypt php5-memcache php5-mysql php5-pspell php5-snmp php5-sqlite php5-xmlrpc php5-xsl php-pear libssh2-php php5-cli

At this time I create a system user for NGINX.

adduser --system --no-create-home nginx

This command simply creates a system user with no home directory. We will use this User later in our setup.

WOW, that was tough! I know you may be tired, so this is a good time to take a break.



© 2011-2013 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER

4 Comments

E: Unable to locate package php5-fpm

Makes it pretty tough to get the rest of the tutorial to work. I cut/pasted your exact command.


Thanks Brian. We'll talk to the author about updating the article, but for now an approach to get it installed would be to add the following line at the end of the /etc/apt/sources.list file:

deb http://packages.dotdeb.org stable all

Then run:

wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | sudo apt-key add -

Then run:

apt-get update

And after that, try the install command in the article.

I think php5-mhash is now part of php5-common

$ apt-get install php5 php5-fpm php5-common php5-curl php5-dev php5-gd php5-imagick php5-mcrypt php5-memcache php5-mysql php5-pspell php5-snmp php5-sqlite php5-xmlrpc php5-xsl php-pear libssh2-php php5-cli

Thanks Christian, looks that way. Fortunately apt selects php5-common automatically to replace php5-mhash, but we'll get that install line updated anyway.

Add new comment