Level 33
any solution?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
i need to instantiate/run google chrome headless on Vagrant Homestead, i have already installed google chrome on the host machine(Vagrant Homestead/VM),i can run google chrome if i do ssh and execute the command from within the VM, the problem is i can not figure out a way to execute the same command through shell_exec(),exec(),system(),passthru(). i can issue other commands and they work properly but running.
exec('chrome --headless --hide-scrollbars --remote-debugging-port=9222 --disable-gpu');
i am executing it like this, any idea or help on how to run chrome on vagrant/VM from php?
Please or to participate in this conversation.