: This article describes how to build the laravel learning environment of the php Framework. if you are interested in the PHP Tutorial, refer to it. I. build an environment
Use the wampServer2.5 + composer installation package in windows.
1. install wampServer
: Http://pan.baidu.com/s/15Bgbc
WampServer integrates apache + php + mysql for one-click installation, avoiding the trouble of installation and configuration of various components
After installation, add the php path to the system environment variable.
Modify the httpd. conf file of apache as follows:
LoadModule rewrite_module modules/mod_rewrite.so
Select Enable URL rewriting. if the URL rewriting module is not enabled, the laravel custom route access error 404 is reported!
2. install composer
: Https://getcomposer.org/download/
Composer is a tool used by PHP to manage dependencies.
You can declare the dependent external library (libraries) in your project. Composer will help you install these dependent library files.
3. use composer to download a laravel image file
Composer create-project laravel/laravel blog 5.0.22
After the download is complete, a blog folder is generated in the current file directory, which is switched to the www/directory of wampServer. the root directory of the website is xxxx/www/blog/public, to deploy a VM, you need to configure it separately.
4. access localhost/blog/public in the browser!
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.
The above describes how to build the laravel learning environment of the php framework, including some content, and hope to help those who are interested in the PHP Tutorial.