laravel Ubuntu

apt-get update -y
apt-get upgrade -y
apt-get install apache2 -y
service apache2 restart
apt-get install python-software-properties -y
sudo apt-get install software-properties-common -y
add-apt-repository ppa:ondrej/php
apt-get update
apt-get upgrade -y
apt-get install php7.1
apt-get install php7.1-xml
apt-get install php7.1-mbstring
apt-get install php7.1-mysql
apt-get install php7.1-json
apt-get install php7.1-curl
apt-get install php7.1-cli
apt-get install php7.1-common
apt-get install php7.1-mcrypt
apt-get install php7.1-gd
apt-get install libapache2-mod-php7.1
apt-get install php7.1-zip

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/bin/composer

composer create-project laravel/laravel /var/www/html/laravel

cd /etc/apache2/sites-available
cp 000-default.conf OLD000-default.conf
sed -i -e ‘s/\/var\/www\/html/\/var\/www\/html\/laravel\/public/g’ «000-default.conf»
service apache2 restart