O
O
Olga2016-08-21 22:06:47
PHP
Olga, 2016-08-21 22:06:47

What is the best way to set up a web server on Debian 8?

Tell me which scheme is better to apply as a web server on Debian 8:
1. php + apache2 + nginx
2. php-fpm + nginx

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
nirvimel, 2016-08-21
@Imperial777

If we are not talking about a huge number of simultaneously processed requests, then the choice here comes down mainly to what is more familiar / more convenient to configure: Apache or Nginx.
Nginx + php-fpm - more economical in terms of memory consumption and OS threads, keeps more simultaneous connections in conditions of limited resources, due to this, many call this option faster (on single requests without load, the difference is, of course, imperceptible).
Apache + mod_php5 (or Apache + mod_proxy_fcgi + php-fpm) - many prefer it because they are used to the syntax of its config and .htaccess (which is absent in Nginx in this form).

D
D', 2016-08-21
@Denormalization

nginx + php fpm

X
xmoonlight, 2016-08-21
@xmoonlight

There is no single answer here.
Much depends on who will support the future infrastructure and what this web application was originally developed on (because there are many dependent rules in .htaccess that are unprofitable to rewrite in nginx).
If the product is developed and tested primarily under Apache (and, possibly, with some other Apache modules): definitely Apache. Otherwise - you need to think depending on the extensibility scheme, in providing support for the solution, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question