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