php<Directory /> #AllowOverride none #Require all denied Options All AllowOverride All Order deny,allow Allow from all </Directory>
編輯httpd-vhosts.confphp
phpNameVirtualHost *:80 <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "D:/soft/xampp/htdocs" ServerName localhost </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "D:/soft/wamp/www" ServerName vhallapp.com ServerAlias www.vhallapp.com ErrorLog "D:/soft/wamp/apacheerror.log" CustomLog "D:/soft/wamp/apacheaccess.log" common </VirtualHost>
編輯hosts127.0.0.1 www.app.com
5. 下載redis
http://pecl.php.net/package/redis/2.2.7/windows下載5.6版本dll文件
6. 編輯php.iniextension=php_redis.dll
7. 打開xdebughtml
php[XDebug] zend_extension = "D:\soft\xampp\php\ext\php_xdebug.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "D:\soft\xampp\tmp" xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable = 0 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.trace_output_dir = "D:\soft\xampp\tmp"
8.打開www.app.comlaravel
9.安裝laravelweb
使用 Composer 下載 Laravel 安裝包,輸入命令redis
composer global require "laravel/installer=~1.1"
可能要等很長的一段時間,若是想加快速度能夠更換國內的composercomposer config -g -e
完成後須要設置一下系統變量,在變量Path的值後追加(追加前確保變量值最後是以分號結尾)數據庫
C:/Users/用戶名/AppData/Roaming/Composer/vendor/bin;
設置好之後在想要建立項目的目錄下使用命令apache
laravel new blog
就能建立一個名字爲blog的項目了。windows
瀏覽器訪問www.app.com/blog/public 就能看到大大的laravel了~~~瀏覽器
ps:其實wamp支持多版本php,須要配置下,php5.4下載連接
複製php5.3目錄下的wampserver.conf到php5.4,命名php.ini-development 爲 phpForApache.ini,php框架
xdebug配置
zend_extension = "d:/wamp/bin/php/php5.4/zend_ext/php_xdebug-2.3.2-5.4-vc9.dll"
[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "d:/wamp/tmp"