In Windows 8.1, use Wampserver2.5 + Composer to build the Laravel5.1 environment and import PhpStorm Windows 8.1 and use Wampserver2.5 + Composer to build the Laravel5.1 environment and import PhpStorm
Technical activity is a tough process ......
???????????????????????????????????????? ??????????
1. Installation Path and configuration of WampServer2.5:
Current latest version: wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-64b official website: Taobao. Note: The wampserver installation file contains two php. INI files. you must modify the php. ini file in the php directory.
2. install composer. in the installation, select the php.exe file location.
Official website: http://www.phpcomposer.com/
3. use composer to install Laravel5.1
Command line operation: C: \ Users \ Darren> d: D: \> cd DevToolKit \ WampServer2.5 \ wwwD: \ DevToolKit \ WampServer2.5 \ www> composer create-project laravel/laravel -- prefer-dist
After the installation is completed (it may take about 15 minutes, and my VPN is a little faster:
(1) modify D: \ DevToolKit \ WampServer2.5 \ www \ laravel \ config \ app. in php, the time zone is Shanghai: 'timezone '=> 'Asia/Shanghai'; (2) modify the vendor and storage directories under the laravel project to read/write properties (if not modified, leading to blank access to the home page). 4. modify httpd of apache. the conf file is as follows: (1) enable the URL rewriting module LoadModule rewrite_module modules/mod_rewrite.so
(This step is very important. if it is not enabled, 404 error will be reported for all access to the laravel custom route !)
(2) modify the port number to 8088.
(3) configure the access root directory to: D: \ DevToolKit \ WampServer2.5 \ www (4) and modify the following two places (mainly to change AllowOverride to All and add Allow from all ):
Article 1:
Options Indexes FollowSymLinks AllowOverride all Require local
Modify:
Options Indexes FollowSymLinks AllowOverride all Order Deny, Allow from all
Second:
AllowOverride none Require all deniedModify:
Options FollowSymLinks AllowOverride None Order deny, allow Allow from all Satisfy all
5. restart wampserver and access: http: // localhost: 8088/laravel/public
6. the installation code of laravel and phpstorm prompts the plug-in (1) to enter the directory of laravel and run the command: composer require barryvdh/laravel-ide-helper;
(2) add 'barryvdh \ LaravelIdeHelper \ IdeHelperServiceProvider: class' to the config/app Directory. in php, run the command: php artisan ide-helper: generate;
(3) modify the composer. json file in the current directory and add the following code:
"scripts":{ "post-update-cmd":[ "php artisan clear-compiled", "php artisan ide-helper:generate", "php artisan optimize"]}
7. install the laravel plug-in PhpStorm (version 7.1.3) and import the project