Quickly install and run Laravel 5.x on Windows

Source: Internet
Author: User

Original http://www.golaravel.com/post/install-and-run-laravel-5-x-on-windows/Install PHP

Note One: Laravel 5.0 started on the PHP version of the requirement is >=5.4 that Laravel 5.1 requires PHP version >=5.5.9 , so it is recommended that you try to install the latest version of 5.5.x.

download and set up PHP
  1. Go to http://windows.php.net/download/to download the latest version of PHP 5.5.x. If you are using a x64 system, it is recommended to download a version that supports x64. thread safeand non thread safe The representative is whether to support thread safety, which we choose non thread safe .

  2. Unzip the downloaded PHP installation package to any directory, recommend the C drive, the PHP installation path will be C:\php .

  3. Add the PHP installation path to the PATH environment variable. Because we're going to use PHP's command-line tool this time, this setting is important.

  4. Enter the PHP installation directory (for example C:\php ). Locate the php.ini-development file and copy it to the current directory and rename it to php.ini .

  5. php.inito open the file with the editor, modify the following configuration:
    Remove extension=php_mbstring.dll The preceding semicolon (888 rows or so)
    Remove extension=php_openssl.dll the preceding semicolon (893 rows or so)
    Remove extension_dir = "ext" the preceding semicolon (736 rows or so)
Download Laravel 5.1

Lravel provides a one-click installation package for all versions of Laravel 4.x and 5.x (Lumen also available!). ), go to the download page to download the latest version of Laravel v5.1.x:

http://www.golaravel.com/download/

Laravel GitHub package Download: https://codeload.github.com/laravel/laravel/

let Laravel run.
    1. To extract the downloaded Laravel one-click installation package to any directory, we assume that the root directory of the C drive is extracted, the final path is: C:\laravel-v5.1.3 .
    2. Open a new command prompt window and cd go to the Laravel installation directory:cd c:\laravel-v5.1.3
    3. Enter and execute php artisan serve the instruction, you can see the following prompt:

It means that Laravel has run!

    1. Open the browser, enter in the Address bar localhost:8000 , and enter to see if there is a familiar screen:)

What the hell is going on here?

In fact, starting with PHP version 5.4, PHP has built-in (built-in) a Web server, and Laravel's artisan command also supports this built-in Web server, which makes it easier for beginners to get started quickly and start Laravel. Of course, if you are deploying to a production server, you will want to install a Web server such as Apache or Nginx.

artisanThe serve command also supports two parameters:

    • hostSet the host address
    • portSet the port number that Web server listens on

Quickly install and run Laravel 5.x on Windows

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.