Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting php environment variable on windows with vagrant

i'm trying to run "php artisan" comands on Windows, but the system returns an error that php variable path isn't set. The problem is that i don't have php installed directly on the Windows system, but it is installed on the vagrant box. Any ideas how to set the windows php environment variable to the vagrant boxe's php?

thanks

like image 561
codeOverflow Avatar asked May 13 '26 20:05

codeOverflow


1 Answers

If you use Vagrant, you need to set all variables there. To do this, you need to use SSH. You can try built-in vagrant ssh command or any SSH client for Windows (WinSCP for example, connect and then press Ctrl+T for WinSCP Terminal).

Default credentials for vagrant ssh are:

Host: 127.0.0.1
Login: vagrant
Password: vagrant
Port: 2222
like image 166
Alexey Mezenin Avatar answered May 16 '26 08:05

Alexey Mezenin