shopware5 / shopware-vagrant

A Vagrant setup ready for shopware development
MIT License
58 stars 30 forks source link

Not able to switch php version #22

Closed numediaweb closed 8 years ago

numediaweb commented 8 years ago

I tried switching the PHP version on the vagrant machine (after ssh)

changephp_7.0
changephp_5.6

And I get this error

vagrant@registerbyemail:~/bin$ changephp_5.6
: No such file or directory

Any hints? :)

larsbo commented 8 years ago

sounds like #9 Do you use windows? Did you pull the last version of shopware-vagrant?

numediaweb commented 8 years ago

I finally found that If you edited those files on a Windows machine, then you will need to remove CRLF characters on them

dos2unix /home/vagrant/bin/changephp_5.6 && dos2unix /home/vagrant/bin/changephp_7.0 && dos2unix /home/vagrant/bin/changephp_7.1 

This fixed it so it has no relation with this the vagrant setup in itself.

Thanks