PHP Composer and Laravel installation
Instalation and configuration of Composer and Laravel on AWS Ubuntu VM:
1. In this project we will be using Laravel 8 which needs PHP version 7.3 to work properly.
Once we have PHP installed we can now install its dependency manager called Composer. This process is perfectly described here: https://getcomposer.org/download/ so by following those instructions we will set it up in no time.

2. When we are done with that and have our Composer installed we can now take care of Laravel installation. It can be done with line below:
composer global require laravel/installer

3. Now we will quickly permanently add the location of the vendor directory to the path:
sudo nano ~/.bash_profile
Type this at the end of the document:
export PATH="~/.config/composer/vendor/bin:$PATH"
4. Now we can create our new Laravel project and run it with artisan on a local server.
laravel new blog
cd blog
composer install
php artisan serve
We are now ready to start working on our app's content and to learn how Laravel really works in while-development environment!

Komentarze
Prześlij komentarz