Article


POS Laravel adminlte vuejs #1 Install laravel

#1 Instalasi laravel di ubuntu 

$ cd /var/www/

$ composer create-project --prefer-dist laravel/laravel laravue.local "5.8.*"

$ cd laravue.local

# Setup Virtual Host di Ubuntu 16.04
# Memberikan Izin Pada direktory

$ sudo chown -R $USER:$USER /var/www/laravue.local/
$ sudo chown -R www-data:www-data ./vendor
$ sudo chown -R www-data:www-data ./storage
$ sudo chown www-data:www-data -R /var/www/laravue.local
$ sudo chmod -R 775 /var/www/laravue.local/storage

# Membuat File VirtualHost yang Baru
$ sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/laravue.local.conf
$ sudo nano /etc/apache2/sites-available/laravue.local.conf


    ServerAdmin laravel@localhost
    ServerName laravue.local
    ServerAlias laravue.local
        DocumentRoot /var/www/laravue.local/public
                Options FollowSymLinks
                AllowOverride All
                Require all granted       
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Require all granted        
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

# Aktivasi Virtual Host
sudo a2ensite laravue.local.conf

# merestart Apache
sudo service apache2 reload

# Setting Local Hosts File
sudo nano /etc/hosts

tambahkan alamat web baru
127.0.0.1 laravue.local

 

 

 

Posted in Laravel, Linux on Aug 29, 2020