I. Building the Environment
Use the wampServer2.5 + composer installation package under Windows systems.
1. Installing Wampserver
Download Address: HTTP://PAN.BAIDU.COM/S/15BGBC
Wampserver integrates Apache + PHP + MySQL One-click installation to avoid the hassle of installing configuration for each component
After installation, you need to add the path of PHP to the system environment variable
Modify the Apache httpd.conf file as follows:
LoadModule Rewrite_module modules/mod_rewrite.so
Selecting the Enable URL rewrite module, if not enabled, causes Laravel custom routing access to all 404 errors!
2. Installing composer
Download Address: https://getcomposer.org/download/
Composer is a tool that PHP uses to manage dependency (dependency) relationships.
You can declare your dependencies on the External tool Library (libraries) in your project, and Composer will help you install these dependent library files.
3. Download a laravel image file using composer
create-project laravel/laravel blog 5.0.22
下载完之后会在当前文件目录生成一个blog的文件夹,将此文件夹切换到wampServer的www/目录下,网站的根目录为xxxx/www/blog/public,部署虚拟主机需要另行配置。
4. Access Localhost/blog/public successfully in the browser!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The above describes the PHP framework Laravel learning an environment to build, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.