How do I access or reference my php installation on homestead from inside the host.
I have Laravel homestead installed. I don't have PHP installed on my host pc. VScode keeps giving me this popup that it can't validate my php code since no PHP executable is set. I don't want to install PHP on my host PC. Is there a workaround?
Yh, as I already stated, installing WAMP or XAMPP will mean installing PHP on my host PC. I was looking at an instance where I can utilize the one installed on my homestead vm.
as I mentioned, this does not Install PHP on your Main Machine. It just comes bundled with WAMP. So it will not mess with anything else. It will not be running as a background process.
On the other hand, you can access your Virtual Machine like this:
Go to your Homestead Directory, by default ~\Homestead
From there, up the machine with vagrant up
After machine is up, you can vagrant ssh into the machine
From the virtual machine, navigate to your project, and you can execute any PHP-commands from there. - Note: You are in a Linux Environment here - You need to Run Linux Commands to Navigate, like ls instead of dir
@xmarks Your steps are how I should access my homestead vm. My question is I want to link Visula Studio code with the PHP executable on the homestead vm.