[SOLVED] Do you choose virtualization or container?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
@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.
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 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.
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.
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.
Last edited by sundialsvcs; 03-19-2024 at 10:37 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.