Php framework laravel learning environment setup

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

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.