Windows10 + php7 + composer + laravel/homestead

Source: Internet
Author: User
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:

  1. Windows 10 requiresVCRUNTIME140.DLL
  2. Php needs to enable openssl when installing Composer-setup.exe
  3. 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.