Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install laravel 7

composer create-project --prefer-dist laravel/laravel:^7.0 Your project name
Comment

laravel install

composer create-project laravel/laravel <example-app>
Comment

laravel installer

# Laravel installer
composer global require laravel/installer
# install laravel project using this command
laravel new example-app
Comment

laravel 4 installer

composer global require "laravel/installer=~4.0"
Comment

laravel install

composer create-project --prefer-dist laravel/laravel blog "5.6.*"
Comment

laravel install

To install laravel v9 you will need apache2, php8 and composerv2 (Ubuntu 20.04/Ubuntu 18.04)
sudo apt update
sudo apt upgrade

Install and start apache2
sudo apt install apache2
sudo service apache2 start
Open: http://localhost:80
sudo service apache2 stop

Install php8
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
sudo apt-get install php8.0 php8.0-cli php8.0-common php8.0-xml php8.0-curl
php -v

Enable mods
sudo a2enmod php8.0
sudo a2enmod headers
sudo a2enmod rewrite

Install composerv2
cd /home/user
curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
compsoer -V

Install laravel project
composer create-project laravel/laravel example-app
php artisan key:generate --ansi
php artisan serve

Configuration file for apache2 example
cd /etc/apache2
sudo a2dissite 000-default.conf
cd /sites-available
sudo touch appName.conf

sudo nano appName.conf
Copy, paste and configurate:
---------------------------------------------------------------------------------
<VirtualHost *:80>
	ServerName name.local

    // If project is based on multiple env (admin/frontend)
	SetEnv ACTIVE_MODULE frontend
	
	DocumentRoot "pathDirectory/laravel/public"
	<Directory "pathDirectory/laravel/public">
	    Options Indexes FollowSymLinks MultiViews
	    AllowOverride All
	    Require all granted
	    Order allow,deny
	    Allow from all
	</Directory>

	ErrorLog /var/log/apache2/fileName.err
	CustomLog /var/log/apache2/fileName combined
</VirtualHost>
---------------------------------------------------------------------------------

sudo a2ensite appName.conf
sudo service apache2 restart
or
sudo service apache2 start
Comment

laravel install

composer create-project laravel/laravel contoh-app
cd contoh-app
php artisan serve
Comment

laravel installer version

Laravel Installer Version Check 
laravel -version
ex. laravel -version
Result : Laravel Installer 4.1.1

Comment

PREVIOUS NEXT
Code Example
Shell :: how to delete all branches in git except master 
Shell :: which equivalent powershell 
Shell :: how to install react redux 
Shell :: install oh my zsh! 
Shell :: ubuntu port ping 
Shell :: look like hacker linux 
Shell :: centos remove directory and all files 
Shell :: add flathub repository fedora 
Shell :: bash for i in range 
Shell :: installer lamp ubuntui 
Shell :: how to create folder in github 
Shell :: list inactive services ubuntu 
Shell :: conda command not found 
Shell :: scp local to remote 
Shell :: check if word at end of string regex bash 
Shell :: linux samba service 
Shell :: delete a github repository using curl 
Shell :: how to reverse shell 
Shell :: install anbox terminal 
Shell :: Using git reset to Undo a Merge 
Shell :: push a branch with diffrent name 
Shell :: boostrap install angular 
Shell :: setup redis ubuntu 
Shell :: git merge branch without merge ocmmit 
Shell :: how to install jack client in ubuntu 
Shell :: grep exact match 
Shell :: git move branch to previous commit 
Shell :: pip install local directory 
Shell :: how to turn on tomcat server mac terminal 
Shell :: how to install react loader spinner 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =