Answer the question
In order to leave comments, you need to log in
Which version to choose?
Hello. Sorry for such a dull title of the question :(.
I have such a question - I put nginx frontend apache backend. I did howto on this at the php installation stage, the author simply entered the yum install php command and immediately installed the latest version. Because I have Ubuntu 14.04 I went to Google and started looking for the command to install php.On the page help.ubuntu.ru/wiki/php5 I saw php cli, cgi, php-fpm and in general a module for apache.So
what are their differences and what is better install
Thank you very much.
Answer the question
In order to leave comments, you need to log in
You need to install php5-fpm and nginx, apache is not needed.
php cli - the ability to work from the command line;
cgi - one of the operating modes;
fpm - a modern engine for accelerated work (it can be connected directly to nginx, by the way; the main drawback is that the old htaccess rules do not work);
apache module - respectively, work as a module.
For your purpose, you need to install a module for Apache, it will pull all the necessary dependencies with it. Then, in which case, deliver the necessary php modules (such as pdo, gd, if they do not install themselves).
So, for Apache, install php5 (in fact, libapache2-mod-php5 will be installed according to dependencies, it is exactly what is needed here), so you will install PHP as a module for Apache2.
Although I would recommend throwing Apache2 to the dump, leaving only Nginx. In this case, you will only need php5-fpm.
cli and cgi in this case you absolutely do not need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question