Home  >  Article  >  Backend Development  >  Manually build apache+mysql+php

Manually build apache+mysql+php

不言
不言Original
2018-05-03 14:11:281510browse

This article mainly introduces the manual construction of apache mysql php, which has certain reference value. Now I share it with everyone. Friends in need can refer to it.

Previous server construction was through "PHP study "One-click package construction. In order to have a deeper understanding of their combination, I decided to build it myself and have fun. Another reason is that laravel's migration file has a Json field (mysql>=5.7, a new type). Then the mysql version in study is too low, and I don’t want to modify its files.

The Hyper-V virtual machine that comes with win10 is used. The premise is that you need to Hyper-V yourself.

Control Panel--Programs and Features--Turn Windows features on and off


##Just check the box and restart.

After restarting, there will be more

in the start menu bar. Click on it and it will be


It should be noted that if you are installing mysql5.7.6

The commands to install and start the service are different from the previous version


The last step is to create laravel

Here I am using version 5.5, specify the installation version:

composer create-project laravel/laravel=5.5 demo --prefer-dist
配置.ENV数据库
你可以创建一个迁移文件,这里我修改的是已有的users文件,添加json类型


Execute php artisan migrate


Success~


The above is the detailed content of Manually build apache+mysql+php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn