[PHP]-Laravel 5 's Hello Wold

Source: Internet
Author: User

Spit Groove

The whole day, laravel download trouble can go to die. First to install composer, and composer is a common wall, and then install git, install git also to register git, and so on ....

It's disgusting to finally give up this play. I'm a damn.

Finally here, find this:

Laravel 5 of the entire framework source code download:

Https://github.com/overtrue/latest-laravel

After downloading, unzip the laravel-master.tar.gz to the PHP project directory.

I'm here: F:\PhpProject\laravel5.

Laravel 5 Steps to run correctly:

Step One

1. Open the Apache httpd.conf file and open this module:

LoadModule Rewrite_module modules/mod_rewrite.so

This is the URL rewrite module

2. Set the directory's allowoverride to all

<directory/>    Options Indexes followsymlinks all        Orderallow,Deny    allow from all </Directory>

Step Two

Open Apache Virtual Host configuration file: httpd-vhosts.conf

Under the Conf\extra directory

1. Similarly, set the allowoverride in directory to all

    <directory/>        #  Listing Directory resources         Options Indexes followsymlinks        #  Disallow listing of directory resources        #Options followsymlinks        allowoverride all        Order allow ,        deny    allow from all </Directory>

2, the DocumentRoot point to the public directory of Laravel, such as:

DocumentRoot "F:/phpproject/laravel5/public"

Because the laravel is ultimately only public directory

Step Three

Launch Apache, Address bar input: http://localhost will see the following screen:

Mom B, awaited the crap out ...

Hello World

Open File: app\http\routes.php

Add code:

function () {    return ' Hello world ';});

Address field input: Http://localhost/hi

Appear:

The whole day, and finally the whole of a Hello wold,jb are folded.

Reference article:

Learning the routing problem of Laravel 404

Http://www.cnblogs.com/perseverancevictory/p/4264379.html

Laravel Video Hello World

http://v.youku.com/v_show/id_XNjgwNDg3OTQ4.html?from=s1.8-1-1.2

[PHP]-Laravel 5 's Hello Wold

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.