T
T
T_y_l_e_r2017-02-17 09:03:59
PHP
T_y_l_e_r, 2017-02-17 09:03:59

Apache vs Ngnix+FastCGI vs Ngnix+Apache - which is more productive for php?

VPS is not very powerful, the script will be exclusively in php, no static.
1 user will produce at least 50 simultaneous requests to the php script.
There is no database.
Each php script gives some content, either it is html or a file (jpg,png rarely mp4 (2-3mb)).
If 100 people visit the site at the same time (attendance planned at the start), then the web server must simultaneously process 5000 requests.
In the future, static will appear, this will reduce the load by about 10%.
But in any case, the cache is also given through php, although it is possible that the script will simply generate a header with a redirect to a static file (have not decided yet).
What are the recipes for my case to use the performance of the server to the maximum?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Taran, 2017-02-17
@T_y_l_e_r

nginx+phpFPM - definitely

K
ky0, 2017-02-17
@ky0

Given the crookedness of the implementation (50 requests from one user), you will not feel the difference.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question