1.php operational environment to build
It is built on win10 system using wamp environment wampserver3_x86_apache2.4.17_mysql5.7.9_php5.6.15.exe, integrated installation package apache mysql php
Run as administrator wamp, otherwise it will stop service starts at AUC
2. Deploy Laravel 5.4
Laravel 5.4 requires version 5.6.4 or later of php environment
Download the code solution Laravel 5.4 version from the git wamp compressed to the www directory
Download and install Composer-Setup.exe, because Laravel is required for installation of the composer way
After installing the composer, the installation command cmd command to switch to the use of wamp www directory:
composer install
Laravel need to automatically download related components
Visit http: // localhost / public / abnormal
The reason for the exception is not generated registered KEY
.Env.example need to modify the files in the directory www renamed .env, the name change will not be saved directly, using the cmd command to change the name:
rename .env.example .env
Finished modifying the command key is generated:
php artisan key:generate
End will perform base64: vU2QLhJoNqKCwq3UwYQVSge97dRag / e4Ff8 / 8dQhw7A = .env is added to the APP_KEY
Visit the website http: // localhost / public / what appears abnormal
The reason is not turned openssl function
Find php.ini
; Extension = php_openssl.dll to extension = php_openssl.dll
Restart Service
Accessing http: // localhost / public /
ok now accessible Laravel, that we Laravel 5.4 operating environment has been configured over.
turn:
https://www.cnblogs.com/mingyan/p/9493836.html