PHP Framework Laravel Learning an environment building

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.