Windows 10 + php7 + composer + laravelhomestead has been tossing this vagrant recently, but it is not difficult. it is mainly about work and home computer environment configuration. the vagrant box in the early stage is not very satisfied, but laravel/homestead has never been used. this is a comprehensive solution:
Python 7.0
Haha.
IfComposer-setup.exeInstallation), then I can only install php first.
- Php.net downloads php for windows and drops it to D: \ php.
- Download composer
- You can choose to download Composer-setup.exe
- You can also download the phar file directly.
After completing these two items, follow the Per Project Installation section of the homestead Installation tutorial:
- Create a project directory D: \ projects \ homesteadapp
- Run the command line to enter D: \ projects \ homesteadapp.Git bash
- Run the following commands in sequence: composer require laravel/homestead -- dev-> vendor \ bin \ homestead make. this will generate the standard (homestead) vagrant configuration, next, we will perform routine operations such as vagrant up.
Everything looks quite smooth ~
Actually not.
Note the following:
- Windows 10 requiresVCRUNTIME140.DLL
- Php needs to enable openssl when installing Composer-setup.exe
- Not just cancel php. open_ssl annotation in ini. you must comment out extension_dir = ext. otherwise, php will find the dll file in c: \ php, but it is not there, how do I know? Read this article
Common sense: modify the composer image library to China
Welfare: vagrant box add boxname is almost unfeasible for a well-known reason. here are two homestead boxes I have downloaded:
- Laravel/homestead Baidu Network Disk Password: su3l
- Laravel/homestead-7 Baidu Network Disk Password: ri82 note: php 7.0 inside
It seems like a flow account, but it has been a long time for me...
MakeupDon't forget to add both php and composer to environment variables.