LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-17-2024, 05:14 AM   #16
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322

@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.
 
Old 03-17-2024, 06:48 AM   #17
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,852

Rep: Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310Reputation: 7310
Quote:
Originally Posted by Jason.nix View Post
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
 
1 members found this post helpful.
Old 03-18-2024, 06:50 PM   #18
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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.
 
Old 03-18-2024, 07:23 PM   #19
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by Jason.nix View Post
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.

Last edited by dugan; 03-18-2024 at 07:42 PM.
 
Old 03-19-2024, 10:35 AM   #20
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Quote:
Originally Posted by dugan View Post
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.
 
Old 03-25-2024, 04:47 AM   #21
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722Reputation: 3722
Quote:
Originally Posted by pan64 View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you know how to connect the desktop of this Docker container as a Singularity container through Remote Desktop? zzzhhh Linux - Containers 5 01-20-2024 02:44 AM
linux container host os and container os question jzoudavy Linux - Newbie 1 09-01-2015 05:21 AM
LXer: Inside the Open Container Project: How Docker plans to unite the container market LXer Syndicated Linux News 0 06-23-2015 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration