Homestead: can not use php5.5, 5.6, 7.0 and 7.2

Created on 9 Feb 2018  路  7Comments  路  Source: laravel/homestead

Please note that the Homestead issue tracker is reserved for bug reports and enhancements. We are not always able to debug Vagrant, Provider or Operating System issues, but will do our best to help. Thank you!

Versions

  • Vagrant: 2.0.1
  • Provider: Virtualbox 5.2.4
  • Homestead: bash: homestead: command not found

Host operating system

Windows 10

Homestead.yaml

---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: c:/homestead_projects
      to: /home/vagrant/code

sites:
    - map: homestead.test
      to: /home/vagrant/code/public

databases:
    - homestead

Vagrant destroy & up output

https://gist.github.com/michaelnguyen547/9a200ced3f6ad7bdeed76c63d558a343

Expected behavior

Should be able to run PHP 5.6, 7.0, 7.1 and 7.2

Actual behavior

What actually happened? Please include as much detail as possible.
I can only run PHP 7.1 (which is default).

php5.5
php5.6
php7.0
php7.2
all give command not found

All 7 comments

Please post an entire log of vagrant destroy && vagrant up

your output does not look like a destroy and up. It's way too short for you to have done a destroy first.

please run a vagrant destroy && vagrant up first

damn, you beat me to it Joe.

vagrant destroy && vagrant up fixes the php issues. I dont know why.

Thanks for replies.

Destroy does not cause you to have to redownload the image.

I have this same problem on an Ubuntu 20.04 host, Virtualbox 6.1, Vagrant 2.2.10. Using homestead 10.1.1

Any of the php commands returns command not found. destroy && up didn't work in my case.
Although the "php7.0 artisan" for example, do work...

Any ideas?

I have this same problem on an Ubuntu 20.04 host, Virtualbox 6.1, Vagrant 2.2.10. Using homestead 10.1.1

Any of the php commands returns command not found. destroy && up didn't work in my case.
Although the "php7.0 artisan" for example, do work...

Any ideas?

Delete or rename aliases in your Homestead folder and run the init.sh or init.bat again to recreate your aliases file. Could be missing info?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gormus picture gormus  路  4Comments

daryn-k picture daryn-k  路  5Comments

leandroruel picture leandroruel  路  4Comments

svpernova09 picture svpernova09  路  5Comments

it-can picture it-can  路  3Comments