Use Wampserver2.5 + Composer to build the Laravel5.1 environment in Windows8.1 and import PhpStorm

Source: Internet
Author: User
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:

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/
(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
Options Indexes FollowSymLinks AllowOverride all Order Deny, Allow from all
 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
Related Article

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: 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.