I'm trying to set up nginx with PHP5 and MySQL on my production VPS. The reason I chose nginx over Apache was because the VPS isn't high spec.
nginx is installed, and is successfully serving static pages like it should. Now I'm trying to install PHP5 and am running into troubles.
Following this guide: http://www.zalas.eu/setting-up-a-php-development-environment-with-nginx-on-ubuntu-1104
it says to run this command to install PHP5:
sudo apt-get install php5-fpm php5-cli php5-common php5-curl php5-gd \ php5-mcrypt php5-mysql php5-pgsql php5-sqlite php5-tidy php5-xmlrpc \ php5-xsl php5-intl php5-imagick php5-xdebug php-apc php-pear
When I do, I get this output:
root@lvps92-60-122-235:/tmp# sudo apt-get install php5-fpm php5-cli php5-common php5-curl php5-gd \ > php5-mcrypt php5-mysql php5-pgsql php5-sqlite php5-tidy php5-xmlrpc \ > php5-xsl php5-intl php5-imagick php5-xdebug php-apc php-pear Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package php5-fpm
I've already tried running
sudo apt-get update and it still fails. After Google'ing the problem, which usually fixes all trouble I have, there seems to be no fullproof solution :/
Has anyone done this before and knows how to get PHP5 working properly with nginx?