Laravel Installation in linux

In tutorial learn how to laravel install in linux/ubuntu using the command.

For managing dependencies, Laravel uses composer for manage dependecy libary so you have a Composer installed on your system before you install Laravel into linux system  and require php version-7.0 or more installed


Step 1 − Visit the following URL and download composer to install it on your system.

https://getcomposer.org/download/

and Here are command to install composer

go to your terminal and run commnd

Command : cd /home
in home directory

CMD:  php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

CMD: php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

Cmd: php composer-setup.php

You will have to follow the steps given below for installing Laravel onto your system −

Step 2 − After the Composer is installed,Now install the Laravel


Step 3 - Now you can create project of Laravel


//create project  to /var/www/html   project name panel

CMD : composer create-project --prefer-dist laravel/laravel panel

// go to the project folder and  run this command


CMD : php artisan serve


No comments:

Post a Comment

how to call ssh from vs code

 To call SSH from VS Code, you can use the built-in Remote Development extension. This extension allows you to open a remote folder or works...