Laravel installation,
1. enable the apache module in front of the apache configuration file # LoadModule rewrite_module modules/mod_rewrite.so # Remove and add my E:/Apache/Apache24/htdocs/to the apache configuration file for the website directory, put it as you like. put it at the bottom of <Directory E:/Apache/Apache24/htdocs/> AllowOverride allOptions Indexes FollowSymLinksRequire all granted </Directory> 2. enable the PHP module in PHP. in; extension = php_mbstring.dll; extension = before php_openssl.dll; No., and save 3. install composer for Windows: 1. Global installation 1. Download and install composer (https: // g Etcomposer.org/composer-setup.exe) 2. Enter the composer command in the cmd command line. The correct result indicates that the composer is successfully installed. 3. Create a folder myproject and create composer under the folder. the json file contains: {"require" :{}} 4. Go to the myproject directory under the cmd command line, and run the composer install command. After the myproject folder contains the vendor directory. Ii. Local installation 1. Set the php system environment variable, create a folder named myproject, and enter the command in the cmd command line to switch to the myproject path, enter php-r "readfile ('https: // getcomposer.org/installer');" | php Note: If you receive the readfile error message, use the http link or in php. enable php_openssl.dll in ini. 2. After the execution is successful, a composer. phar file is displayed in the myproject folder. 3. Create the composer. json file under the myproject Folder: {"require" :{}} 4. Go to the myproject directory under the cmd command line. Then execute the php composer. phar install command, and the vendor directory will appear in the myproject folder. Linux installation process: 1. Execute the following command (install composer): curl-sS https://getcomposer.org/installer | php 2. Make the composer global call in the system: mv composer. phar/usr/local/bin/composer 3. verify whether the installation is successful. Run the following command composer 4. Then you can create a composer under any file. json, and enter the following command: {"require" :{}}. Then, you can run the composer command in this folder. The composer domestic image configuration opens the command line window (for windows Users) or the console (Linux or Mac users) and execute the following command: composer config-g repo. packagist composer https://packagist.phpcomposer.com switch to domestic image download It will become faster. The specified version of laravel is installed in the cmd or terminal directory where you want to install laravel. The following is the installation of the specified version of laravel: composer create-project laravel/laravel = 5. 0. * -- prefer-dist usage: composer create-project laravel/laravel -- prefer-dist will install the latest version
Reprinted please indicate the source!