A
A
AeronUA2015-01-17 01:22:52
PHP
AeronUA, 2015-01-17 01:22:52

Nginx - PHP - MySQL. Can you help me sort it all out?

Help me understand the architecture of web applications and the order in which requests are processed on the server. If the application is running on Nginx - PHP - MySQL.
It would also be nice to know the role of each of the components.
Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Yarosh, 2015-01-17
@AeronUA

http request comes to the Nginx http server, then it is transmitted to php-fpm via a file (unix) socket, where there is already an initialized copy of the PHP script partially cached in Zend Opcache, or in XCache, the request is processed in it - routing is performed ( silex ' ohm) and queries in the database ( Doctrine 'om), after the database returns some result, it can be passed to the template engine ( Twig ), or presented as JSON 'a, and passed back to nginx with php-fpm' a, where the response is then sent to the browser and cached.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question