Ryan Asked: 2011-03-05 08:58:39 +0800 CST2011-03-05 08:58:39 +0800 CST 2011-03-05 08:58:39 +0800 CST How do you Install PHP5 without installing Apache in ubuntu? 772 Is it possible to install PHP5 without installing apache, in Ubuntu? If so, how? linux ubuntu php apache-2.2 3 Answers Voted Best Answer EEAA 2011-03-05T09:04:06+08:002011-03-05T09:04:06+08:00 $ sudo apt-get install php5-cli Should do it. Benoit Mrx 2015-09-09T06:19:31+08:002015-09-09T06:19:31+08:00 Install php5 after php5-fpm if you plan to use nginx for example, because php5 needs one of either libapache2-mod-php5, libapache2-mod-php5filter, php5-cgi, or php5-fpm. Apt just picks the first package that satisfies the dependency. $ sudo apt-get install php5-fpm php5 JeffG 2011-03-05T09:00:33+08:002011-03-05T09:00:33+08:00 Yes, it is possible to install PHP5 without installing apache, in Ubuntu. According to this answer: https://serverfault.com/a/243301/232590 sudo apt-get install php5-cli
Should do it.
Install
php5
afterphp5-fpm
if you plan to use nginx for example, becausephp5
needs one of eitherlibapache2-mod-php5
,libapache2-mod-php5filter
,php5-cgi
, orphp5-fpm
. Apt just picks the first package that satisfies the dependency.Yes, it is possible to install PHP5 without installing apache, in Ubuntu.