virtualbox/docker/VMs - Is it possible to use the VM's PHP from the host?


will

I have a question about VM with VirtualBox or any other VManager like Docker/Vagrant.

Is it possible to make my Windows executable in my computer using the "PHP" command?

i.e. if php --versionthe output of my call should be the version of PHP on my Ubuntu machine?

I've been searching the web but I think my glossary is missing the term used.

greeting,

Gabriele Martini

About VirtualBox: No, you can't run

php --version 

on the host system and get the version of php installed on the guest system.

You can download a php script from the virtual machine to the host system (via a web server or ftp) and then run it in the host system with the command php.

Alternatively, you can run php commands remotely on a virtual machine (but this is not exactly what you asked for).

Related


mysql connection from VM to host

clever host: Ubuntu 14.04 192.168.1.4 mysql database with: GRANT ALL PRIVILEGES ON . TO grails@'192.168.122.%' is identified by 'grails'; virtual machine Centos 6.6 192.168.122.111 Problem: The application (grails) does not see the mysql database located on th

How can I make a VirtualBox VM use the host's DNS?

amphibious I use VirtualBox for my VM. My office network setup is wireless, i.e. I'm connected to a company WiFi network which has a local DNS for resolving local names (eg something.mycompany.com pointing to 123.45.67.89 ). When I build a new VM, it can conne

Is it possible to host a php website with opencv?

Osteoporosis I want to create a website that requires OpenCV. I would like to know if it is possible to use OpenCV functionality in my website to host a website on the web? If yes, can you give me a simple tutorial? Because opencv needs to be installed on linu

Is it possible to create a VM that survives outage of host?

Petr This is just an academical question. Is there any way from technical point of view to setup virtualization subsystem that would be able to survive (VM's would be still accessible and fully operational) even if the some parts of the physical cluster which

Is it possible to create a VM that survives outage of host?

Petr This is just an academical question. Is there any way from technical point of view to setup virtualization subsystem that would be able to survive (VM's would be still accessible and fully operational) even if the some parts of the physical cluster which

Is it possible to use different graphics chips in host and VM?

enemy I'm looking for a way to configure a dual Windows/Linux system (one as the host and the other as a VM), where Linux uses my Intel HD chip and Windows uses my GTX 970. Virtual machine operating system. is it possible? If yes, what virtual machine software

mysql connection from VM to host

clever host: Ubuntu 14.04 192.168.1.4 mysql database with: GRANT ALL PRIVILEGES ON . TO grails@'192.168.122.%' is identified by 'grails'; virtual machine Centos 6.6 192.168.122.111 Problem: The application (grails) does not see the mysql database located on th

Access the VM using SSH from the VM host

dvory59 I have Linux workstation in which I run another Linux virtual machine. The point is that my friend wants to try sshto establish a connection directly to my virtual machine, but we can't get it to work. ssh -R 2223:linda@virtualMachine:221 linda@workSta

How can I make a VirtualBox VM use the host's DNS?

amphibious I use VirtualBox for my VM. My office network setup is wireless, i.e. I'm connected to a company WiFi network which has a local DNS for resolving local names (eg something.mycompany.com pointing to 123.45.67.89 ). When I build a new VM, it can conne

Is it possible to host a php website with opencv?

Osteoporosis I want to create a website that requires OpenCV. I would like to know if it is possible to use OpenCV functionality in my website to host a website on the web? If yes, can you give me a simple tutorial? Because opencv needs to be installed on linu

Is it possible to use different graphics chips in host and VM?

enemy I'm looking for a way to configure a dual Windows/Linux system (one as the host, the other as a VM), where Linux uses my Intel HD chip and Windows uses my GTX 970. Virtual machine operating system. is it possible? If yes, what virtual machine software is

Is it possible to create a VM that survives outage of host?

Petr This is just an academical question. Is there any way from technical point of view to setup virtualization subsystem that would be able to survive (VM's would be still accessible and fully operational) even if the some parts of the physical cluster which

Is it possible to create a VM that survives outage of host?

Petr This is just an academical question. Is there any way from technical point of view to setup virtualization subsystem that would be able to survive (VM's would be still accessible and fully operational) even if the some parts of the physical cluster which

mysql connection from VM to host

clever host: Ubuntu 14.04 192.168.1.4 mysql database with: GRANT ALL PRIVILEGES ON . TO grails@'192.168.122.%' is identified by 'grails'; virtual machine Centos 6.6 192.168.122.111 Problem: The application (grails) does not see the mysql database located on th