PHP framework laravel learning 1 environment construction

WBOY
Release: 2016-07-30 13:32:01
Original
1441 people have browsed it

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>
Copy after login
<code>下载完之后会在当前文件目录生成一个blog的文件夹,将此文件夹切换到wampServer的www/目录下,
网站的根目录为xxxx/www/blog/public,部署虚拟主机需要另行配置。
</code>
Copy after login

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template