Installing PHP on Debian without Apache

When I recently went to install PHP on a server on which I did *not* want Apache, I learned that a simple, "apt-get install php5" will install Apache. A quick look at the depends, though, and the following sequence worked. Yes, I'm aware commands can be combined. I chose multiple steps.
sudo apt-get install php5-common
sudo apt-get install php5-cgi
sudo apt-get install php5
The php5-cgi package fulfills the depends that would otherwise be fulfilled by Apache. -jbn

Tags: