A
A
Alexander Semenenko2017-11-22 11:30:16
linux
Alexander Semenenko, 2017-11-22 11:30:16

How does apache2, mysql, nginx, php, phpmysql work?

It needs to be implemented on 3 separate servers:
1) apache2 (backend)
2) nginx (frontend)
3) mysql
So that a web application like phpmyadmin can work. As I understand it, you still need to install php, or some php modules. Correctly I understand php is put on the server with apache2, and phpmyadmin is installed there? In general, the question is, where do we install php from these servers, where phpmyadmin, and what other packages may be needed? And if someone can draw a diagram of where which packages should be, I will be grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Wolf, 2017-11-22
@semenenko88

As I understand it, you still need to install php, or some php modules.
You need to install PHP only if your application will be written in this very PHP. Some PHP modules, without PHP itself, do not make much sense, they usually put PHP and some of its modules.
Correctly I understand php is put on the server with apache2, and phpmyadmin is installed there?
I suspect it's not correct. PHP can work, for example, in FCGI mode and there is no difference on which server it will stand - as such, you can put it on the 4th server, or on any of the 3 servers (to taste).
In general, the question is where of these servers we install php
With this we have already decided - anywhere.
where phpmyadmin
phpmyadmin is best placed in the same place where PHP itself will stand, although this is also not a mandatory requirement, but it is somehow more logical this way.
and what other packages might be needed
Mostly cellophane. Information about the rest of the missing packages can be seen in the logs and before installing them within a few seconds/minutes.
And if someone can draw a diagram of where which packages should be, I will be grateful.
Can I have a couple of examples of such a scheme? I have been working with Linux for a long time... but I still find it difficult to give unambiguous answers to such questions :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question