LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Do you choose virtualization or container? (https://www.linuxquestions.org/questions/linux-server-73/do-you-choose-virtualization-or-container-4175734461/)

business_kid 03-17-2024 05:14 AM

@Jason.nix: Why don't you stop just asking questions and try it? You seem to be dreaming about this because you're not actually doing anything we are aware of.

pan64 03-17-2024 06:48 AM

Quote:

Originally Posted by Jason.nix (Post 6490186)
Hello,
Suppose you want to create a separate virtual machine for each service such as Nginx and PHP. How can you tell Nginx virtual machine to use another virtual machine to compile .php files? is this possible?

How is it related to the original question?
The answer is: yes, it is possible.
Here is a howto: https://stackoverflow.com/questions/...fferent-server

sundialsvcs 03-18-2024 06:50 PM

Quote:

How can you tell Nginx virtual machine to use another virtual machine to compile .php files? is this possible?
Important clarification: "compile" should be: "run."

The scenario that you describe is called "FastCGI," and it describes a way that a web-server, such as "nginix," can pass "CGI requests" to another server, expecting that server to execute the requested scripts and return "the result."

You can achieve this outcome in several ways ... both "between [virtual ...] machines" and "within a single containerized environment."

And: "the web abounds" with existing explanations.

dugan 03-18-2024 07:23 PM

Quote:

Originally Posted by Jason.nix (Post 6490186)
Suppose you want to create a separate virtual machine for each service such as Nginx and PHP. How can you tell Nginx virtual machine to use another virtual machine to compile .php files? is this possible?

You mean, how do you set nginx up as a reverse proxy to the other web server that's actually serving up the PHP application? The short answer is: over networking. Each service is running on a machine that has its own IP, and each service has a port.

And btw, Jason.nix: don't be a help vampire.

sundialsvcs 03-19-2024 10:35 AM

Quote:

Originally Posted by dugan (Post 6490498)
The short answer is: over networking. Each service is running on a machine that has its own IP, and each service has a port.

And, very importantly, "containerization" can mimic that.

Containerization can give each application the apparently-closed environment that it "expects" – filesystem, network, CPUs and so on – without it actually being real. Usually, this is sufficient.

Turbocapitalist 03-25-2024 04:47 AM

Quote:

Originally Posted by pan64 (Post 6487132)
I work at a really huge company, like Microsoft or IBM. We produce software and we install our software into VMs.

I'll start another thread to ask about global SSH client configurations.


All times are GMT -5. The time now is 05:56 PM.