下载安装Laravel5.2
- 一键安装包下载:
- http://www.golaravel.com/download/
- github下载
- https://github.com/laravel/laravel
- - 直接下载zip包
- - SourceTree克隆下载
- https://github.com/laravel/laravel
Laravel初始化配置
- wamp版本需求(PHP 版本 >= 5.5.9|Wamp2.5)
-
开启rewrite和vhost
- D:\wamp\bin\apache\apache2.4.9\conf\httpd.conf
- LoadModule rewrite_module modules/mod_rewrite.so
- LoadModule vhost_alias_module modules/mod_vhost_alias.so
- Include conf/extra/httpd-vhosts.conf
-
<Directory /> AllowOverride none Require all denied </Directory>
- D:\wamp\bin\apache\apache2.4.9\conf\httpd.conf
- D:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf (添加)
-
<VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "项目位置/" ServerName xxx.com ErrorLog "logs/dummy-host2.example.com-error.log" CustomLog "logs/dummy-host2.example.com-access.log" common </VirtualHost>
- C:\Windows\System32\drivers\etc\hosts
-
127.0.0.1 xxx.com
-
-
- xxx.com/server.php