1. Build the environment
Use wampServer2.5 + composer installation package under Windows system.
1. Install wampServer
Download address: http://pan.baidu.com/s/15Bgbc
wampServer integrates apache + php + mysql for one-click installation, avoiding the trouble of installing and configuring each component
After installation, you need to add the path of php to the system environment variable
Modify the httpd.conf file of apache as follows:
LoadModule rewrite_module modules/mod_rewrite.so
Choose to enable the URL rewrite module. If it is not enabled, it will cause all laravel custom routing access to report 404 errors!
2. Install composer
Download address: https://getcomposer.org/download/
Composer is a tool used by PHP to manage dependency relationships.
You can declare the external libraries (libraries) you depend on in your project, and Composer will install these dependent library files for you.
3. Use composer to download a laravel image file
<code>composer <span><span>create</span>-project laravel/laravel blog <span>5.0</span><span>.22</span></span></code>
<code>下载完之后会在当前文件目录生成一个blog的文件夹,将此文件夹切换到wampServer的www/目录下, 网站的根目录为xxxx/www/blog/public,部署虚拟主机需要另行配置。 </code>
4. Access localhost/blog/public in the browser successfully!
Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
The above introduces the PHP framework laravel learning environment construction, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.