Install apache:
sudo apt-get install apache2
is really installed:
apache2 -v
install mysql server:
sudo apt-get install mysql-server
install mysql client:
sudo apt-get install mysql-client
install php:
sudo apt-get install php7.0-cli
Install extension modules required by php:
sudo apt-get install php7.0-mcrypt
sudo apt-get install php7.0-mysql
sudo apt-get install php7.0-gd
sudo apt-get install php7. 0-mbstring
sudo apt-get install php7.0-xml
sudo apt-get install php7.0-zip
sudo apt-get install php7.0-curl
sudo apt-get install php7.0-sockets
Install the php module that supports apache2:
sudo apt-get install libapache2-mod-php7.0 to
enable the rewrite function:
sudo a2enmod rewrite
to download the executable file of Composer:
php -r "readfile('https://getcomposer.org/installer');" | php
Add composer to the global configuration:
mv composer.phar /usr/local/bin/composer
Install laravel:
Add /.composer/vendor/bin to environment variables:
edit the vim /etc/environment file, add the directories that require environment variables
sudo apt-get install apache2
is really installed:
apache2 -v
install mysql server:
sudo apt-get install mysql-server
install mysql client:
sudo apt-get install mysql-client
install php:
sudo apt-get install php7.0-cli
Install extension modules required by php:
sudo apt-get install php7.0-mcrypt
sudo apt-get install php7.0-mysql
sudo apt-get install php7.0-gd
sudo apt-get install php7. 0-mbstring
sudo apt-get install php7.0-xml
sudo apt-get install php7.0-zip
sudo apt-get install php7.0-curl
sudo apt-get install php7.0-sockets
Install the php module that supports apache2:
sudo apt-get install libapache2-mod-php7.0 to
enable the rewrite function:
sudo a2enmod rewrite
to download the executable file of Composer:
php -r "readfile('https://getcomposer.org/installer');" | php
Add composer to the global configuration:
mv composer.phar /usr/local/bin/composer
Install laravel:
composer global require "laravel/installer"
Install the specified version of laravel:
composer create-project --prefer-dist laravel/laravel project name version number
Add /.composer/vendor/bin to environment variables:
edit the vim /etc/environment file, add the directories that require environment variables